'http://', ), $atts)); return '' . $content . ''; } add_shortcode('dl', 'gdk_DownloadUrl'); //添加钮git function gdk_GithubUrl($atts, $content = null) { extract(shortcode_atts(array( 'href' => 'http://', ), $atts)); return '' . $content . ''; } add_shortcode('gt', 'gdk_GithubUrl'); //添加钮Demo function gdk_DemoUrl($atts, $content = null) { extract(shortcode_atts(array( 'href' => 'http://', ), $atts)); return '' . $content . ''; } add_shortcode('dm', 'gdk_DemoUrl'); //使用短代码添加回复后可见内容开始 function gdk_reply_to_read($atts, $content = null) { extract(shortcode_atts(array( 'notice' => '
文件下载 | 文件名称:' . $file . ' | 文件大小:' . $size . ' |
下载声明:' . gdk_option('gdk_dltable_b') . ' | ||
下载地址:' . $content . ' |
'; $content .= get_the_excerpt(); $content .= '