📄 function.mtblogcclicenseimage.php
字号:
<?phpfunction smarty_function_MTBlogCCLicenseImage($args, &$ctx) { // status: complete // parameters: none $blog = $ctx->stash('blog'); $cc = $blog['blog_cc_license']; if (empty($cc)) return ''; if (preg_match('/(\S+) (\S+) (\S+)/', $cc, $matches)) return $matches[3]; # the third element is the image return 'http://creativecommons.org/images/public/' . ($cc == 'pd' ? 'norights' : 'somerights');}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -