本文整理汇总了PHP中wpgrade::themename方法的典型用法代码示例。如果您正苦于以下问题:PHP wpgrade::themename方法的具体用法?PHP wpgrade::themename怎么用?PHP wpgrade::themename使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpgrade
的用法示例。
在下文中一共展示了wpgrade::themename方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
$widget_ops = array('classname' => 'widget--latest-comments', 'description' => __('The latest comments', 'rosa_txtd'));
parent::__construct('recent-comments', wpgrade::themename() . ' ' . __('Latest Comments', 'rosa_txtd'), $widget_ops);
$this->alt_option_name = 'widget_recent_comments';
add_action('comment_post', array($this, 'flush_widget_cache'));
add_action('transition_comment_status', array($this, 'flush_widget_cache'));
}
示例2: wpgrade_callback_update_notifier_bar_menu
/**
* Adds an update notification to the Admin Bar
*/
function wpgrade_callback_update_notifier_bar_menu()
{
if (wpgrade::option('themeforest_upgrade')) {
// stop if simplexml_load_string funtion isn't available
if (function_exists('simplexml_load_string')) {
global $wp_admin_bar, $wpdb;
// don't display notification in admin bar if it's disabled or
// the current user isn't an administrator
if (!is_super_admin() || !is_admin_bar_showing()) {
return;
}
$newversion = wpgrade_update_notifier_check_if_new_version();
// compare current theme version with the remote XML version
if ($newversion) {
$wp_admin_bar->add_menu(array('id' => 'update_notifier', 'title' => '<span>' . wpgrade::themename() . ' <span id="ab-updates">New Updates</span></span>', 'href' => get_admin_url() . 'index.php?page=theme-update-notifier'));
}
}
}
}
示例3: __construct
public function __construct()
{
parent::__construct('wpgrade_social_links', wpgrade::themename() . ' ' . __('Social Links', 'rosa_txtd'), array('description' => __("Display the social links defined in the theme's options", 'rosa_txtd')));
}
示例4:
optionsLink: "<?php
echo $options_url;
?>
",
envatoDetails: <?php
echo $envatoDetails;
?>
};
</script>
<div class="wrap">
<div id="icon-tools" class="icon32"></div>
<h2><?php
echo wpgrade::themename();
?>
Theme Updates</h2>
<?php
if (!(isset($_GET['wpgrade_update']) && $_GET['wpgrade_update'] == 'true')) {
?>
<div id="message" class="updated below-h2">
<p>
<strong><?php
echo $xml->message;
?>
</strong> You have version <?php
echo $theme_data->Version;
?>