wordpress主题git后台主题选项净化

Git-alpha: theme-options.php (admin/theme-options.php):



主题选项

设置已保存。

'; if ($_GET['reset']) echo '

设置已重置。

'; if ($_GET['test']) echo '

如果您的邮箱收到测试邮件,则证明您的SMTP设置是没问题的。

'; ?>
'; foreach ( $panel as $option ) { $type = $option['type']; if ( $type == 'title' ) { ?> '; } echo '

' . $option['desc'] . '

'; ?>

$name) : ?>

$name ) : ?>

'; $index++; } ?>

1024小贴士

联系方式

  • QQ:865113728(推荐)
  • 邮箱:[email protected]
  • * 和主题无关的问题恕不回复

相关链接

第三方支持

  • 感谢以下组织或个人:
  • PayJs 、Eapay、WeAuth小程序、Cloud9 、Cloud Studio、Coding 、Gitee 、Github、Server酱、jsDelivr、V2EX
  • 露兜、畅萌、小影、大前端、知更鸟、yusi等等

新主题已启用。该主题支持选项,请访问主题选项页面进行配置。立即配置

'; } add_action('admin_footer', 'git_theme_activated_tip'); function git_add_theme_options_page() { global $theme_options; if ( isset($_POST['action']) && isset($_GET['page']) && $_GET['page'] == 'git-theme-options' ) { $action = $_POST['action']; switch ( $action ) { case 'update': $_POST['uid'] = uniqid(); update_option('git_options_setup', $_POST); git_update_options(); header('Location: admin.php?page=git-theme-options&update=true&panel=' . $_POST['panel']); break; case 'reset': delete_option('git_options_setup'); git_update_options(); header('Location: admin.php?page=git-theme-options&reset=true&panel=' . $_POST['panel']); break; case 'test': wp_mail( get_bloginfo( 'admin_email' ) ,'[TEST]SMTP测试邮件','SMTP测试内容,当您收到这封邮件的时候,证明您的网站SMTP配置已成功!'); header('Location: admin.php?page=git-theme-options&test=true&panel=' . $_POST['panel']); break; } exit; } add_menu_page( 'Git 主题选项', '主题选项', 'manage_options', 'git-theme-options', 'git_theme_options_page','dashicons-universal-access-alt' ); } add_action( 'admin_menu', 'git_add_theme_options_page' );

 

你可能感兴趣的:(WordPress)