当前位置: 首页>>代码示例>>PHP>>正文


PHP wpgrade::themename方法代码示例

本文整理汇总了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'));
 }
开发者ID:qhuit,项目名称:Tournesol,代码行数:8,代码来源:wpgrade_latest_comments.php

示例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'));
            }
        }
    }
}
开发者ID:pwzCypher,项目名称:wp-push,代码行数:22,代码来源:callbacks.php

示例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')));
 }
开发者ID:pwzCypher,项目名称:wp-push,代码行数:4,代码来源:wpgrade_social_links_widget.php

示例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;
    ?>
开发者ID:qhuit,项目名称:Tournesol,代码行数:31,代码来源:update-notifier.php


注:本文中的wpgrade::themename方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。