當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。