{$atts['title']}

"; } $html = '
' . $title . '
' . do_shortcode($content) . '
'; return $html; } add_shortcode('start-plane', 'post_short_start_plane'); function post_short_start_plane($atts, $content = null, $code = "") { $html = '
' . do_shortcode($content) . '
'; return $html; } add_shortcode('icon-url', 'post_short_icon_url'); function post_short_icon_url($atts, $content = null, $code = "") { $wporg_atts = shortcode_atts([ 'target' => '', 'href' => '', ], $atts); if ($content == null) { $content = $wporg_atts['href']; } $html = '' . do_shortcode($content) . ''; return $html; } add_shortcode('zd-plane', 'post_short_zd_plane'); function post_short_zd_plane($atts, $content = null, $code = "") { if (isset($atts['title'])) { $title = $atts['title']; } else { $title = "折叠内容,点击展开"; } $html = '
' . $title . '
' . do_shortcode($content) . '
'; return $html; } add_shortcode('zd-plane', 'post_short_zd_plane'); add_shortcode('loginshow', 'post_short_loginshow'); function post_short_loginshow($atts, $content = null) { if (islogin()) { return $content; } else { return '
本内容需要登录后才能查看
'; } } add_shortcode('clickshow', 'post_short_clickshow'); function post_short_clickshow($atts, $content = null) { $wporg_atts = shortcode_atts([ 'type' => '1', ], $atts); if ($wporg_atts['type'] == 1) { return '' . do_shortcode($content) . ''; } else { return '
' . do_shortcode($content) . '
'; } } add_shortcode('c-alert', 'post_short_alert'); function post_short_alert($atts, $content = null) { $wporg_atts = shortcode_atts([ 'type' => 'info', ], $atts); if ($wporg_atts['type'] == 'warning') { return '
' . do_shortcode($content) . '
'; } elseif ($wporg_atts['type'] == 'success') { return '
' . do_shortcode($content) . '
'; } elseif ($wporg_atts['type'] == 'error') { return '
' . do_shortcode($content) . '
'; } else { return '
' . do_shortcode($content) . '
'; } } add_shortcode('c-downbtn', 'post_short_c_downbtn'); function post_short_c_downbtn($atts, $content = '资源文件') { $wporg_atts = shortcode_atts([ 'type' => 'default', 'pwd' => '', 'url' => '', ], $atts); if ($wporg_atts['type'] == 'bd') { $icons = ''; $source = '百度网盘'; } elseif ($wporg_atts['type'] == 'ty') { $icons = ''; $source = '天翼网盘'; } elseif ($wporg_atts['type'] == '360') { $icons = ''; $source = '360网盘'; } elseif ($wporg_atts['type'] == 'ct') { $icons = ''; $source = '诚通网盘'; } elseif ($wporg_atts['type'] == 'lz') { $icons = ''; $source = '蓝奏网盘'; } elseif ($wporg_atts['type'] == 'wy') { $icons = ''; $source = '微云网盘'; } elseif ($wporg_atts['type'] == 'github') { $icons = ''; $source = 'Github'; } else { $icons = ''; $source = '默认网盘'; } if ($wporg_atts['pwd'] != null) { $pwd = ' | 提取码:' . $wporg_atts['pwd'] . ' '; } else { $pwd = ''; } return '
' . $icons . '
来源:' . $source . $pwd . '
'; } add_shortcode('pwdshow', 'post_short_pwdshow'); function post_short_pwdshow($atts, $content = '') { $wporg_atts = shortcode_atts([ 'pwd' => '' ], $atts); if (isset($_POST['pwd']) && $_POST['pwd'] == $wporg_atts['pwd']) { return '
'.do_shortcode($content).'
'; } else { return '
本内容需要输入密码才能查看
'; } }