當前位置: 首頁>>代碼示例>>PHP>>正文


PHP wooframework_get_theme_version_data函數代碼示例

本文整理匯總了PHP中wooframework_get_theme_version_data函數的典型用法代碼示例。如果您正苦於以下問題:PHP wooframework_get_theme_version_data函數的具體用法?PHP wooframework_get_theme_version_data怎麽用?PHP wooframework_get_theme_version_data使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了wooframework_get_theme_version_data函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: woo_version

function woo_version()
{
    $data = wooframework_get_theme_version_data();
    echo "\n<!-- Theme version -->\n";
    if (isset($data['is_child']) && true == $data['is_child']) {
        echo '<meta name="generator" content="' . esc_attr($data['child_theme_name'] . ' ' . $data['child_theme_version']) . '" />' . "\n";
    }
    echo '<meta name="generator" content="' . esc_attr($data['theme_name'] . ' ' . $data['theme_version']) . '" />' . "\n";
    echo '<meta name="generator" content="WooFramework ' . esc_attr($data['framework_version']) . '" />' . "\n";
}
開發者ID:brian3t,項目名稱:orchidmate,代碼行數:10,代碼來源:admin-init.php

示例2: register_settings_screen

 /**
  * Register the WooFramework admin menu.
  * @access  public
  * @since   6.0.0
  * @return  void
  */
 public function register_settings_screen()
 {
     $theme_data = wooframework_get_theme_version_data();
     $ct = wp_get_theme();
     $theme_name = apply_filters('wf_branding_menu_label', $ct->__get('Name'));
     $icon = apply_filters('wf_branding_icon', '');
     add_object_page(__('Settings', 'woothemes'), esc_html($theme_name), 'edit_theme_options', 'woothemes', array($this, 'settings_screen'), $icon);
     $wf_settings_screen_hook = add_submenu_page('woothemes', esc_html($theme_name), __('Settings', 'woothemes'), 'edit_theme_options', 'woothemes', array($this, 'settings_screen'));
     // Default
     // Load validation and save logic for the settings screen.
     add_action('load-' . $wf_settings_screen_hook, array($this, 'settings_screen_logic'));
     do_action('wf_settings_register_settings_screen');
 }
開發者ID:quyendam2612,項目名稱:quanao,代碼行數:19,代碼來源:class-wf-settings.php

示例3: wf_useful_links

/**
 * Display a list of useful links within the WordPress admin.
 * @since  6.0.0
 * @return void
 */
function wf_useful_links()
{
    $theme_data = wooframework_get_theme_version_data();
    do_action('wf_useful_links_before');
    $theme_name = strtolower($theme_data['theme_name']);
    $docs_url = get_option('woo_manual', 'http://docs.woothemes.com/document/' . urlencode(sanitize_title($theme_name)));
    $html = '<ul class="useful-links">' . "\n";
    do_action('wf_useful_links_list_start');
    $html .= '<li class="documentation"><a href="' . esc_url($docs_url) . '" target="_blank">' . __('Documentation', 'woothemes') . '</a></li>' . "\n";
    $html .= '<li class="changelog"><a href="' . esc_url(get_template_directory_uri() . '/changelog.txt') . '" target="_blank">' . __('Changelog', 'woothemes') . '</a></li>' . "\n";
    $html .= '<li class="support"><a href="' . esc_url('http://support.woothemes.com/') . '" target="_blank">' . __('Help', 'woothemes') . '</a></li>' . "\n";
    do_action('wf_useful_links_list_end');
    $html .= '</ul>' . "\n";
    echo $html;
    do_action('wf_useful_links_after');
}
開發者ID:Recongt,項目名稱:www-ecommerce-,代碼行數:21,代碼來源:admin-interface.php

示例4: wooframework_display_theme_version_data

 /**
  * Display the version data for the currently active theme.
  * @since  5.4.2
  * @return void
  */
 function wooframework_display_theme_version_data($echo = true)
 {
     $data = wooframework_get_theme_version_data();
     $html = '';
     // Theme Version
     if (true == $data['is_child']) {
         $html .= '<span class="theme">' . esc_html($data['child_theme_name'] . ' ' . $data['child_theme_version']) . '</span>' . "\n";
         $html .= '<span class="parent-theme">' . esc_html($data['theme_name'] . ' ' . $data['theme_version']) . '</span>' . "\n";
     } else {
         $html .= '<span class="theme">' . esc_html($data['theme_name'] . ' ' . $data['theme_version']) . '</span>' . "\n";
     }
     // Framework Version
     $html .= '<span class="framework">' . esc_html(sprintf(__('Framework %s', 'woothemes'), $data['framework_version'])) . '</span>' . "\n";
     if (true == $echo) {
         echo $html;
     } else {
         return $html;
     }
 }
開發者ID:davidHuanghw,項目名稱:david_blog,代碼行數:24,代碼來源:admin-functions.php

示例5: set_theme_data

 /**
  * Set the theme data into a local property.
  * @access  protected
  * @since   6.0.0
  * @return  void
  */
 protected function set_theme_data()
 {
     $this->_theme_data = wooframework_get_theme_version_data();
     $this->_theme_obj = wp_get_theme();
 }
開發者ID:jonpalma,項目名稱:bcc,代碼行數:11,代碼來源:class-wf-screen-admin-base.php

示例6: woo_theme_update_notice

 function woo_theme_update_notice()
 {
     $data = wooframework_get_theme_version_data();
     $local_version = $data['theme_version'];
     $update_data = woothemes_version_checker($local_version);
     if (!isset($update_data['version']) || !is_string($update_data['version'])) {
         return;
     }
     $html = '';
     if (is_array($update_data) && $update_data['is_update'] == true) {
         $html = '<div id="theme_update" class="updated fade"><p>' . sprintf(__('Theme update is available (v%s). %sDownload new version%s (%sSee Changelog%s)', 'woothemes'), $update_data['version'], '<a href="http://www.woothemes.com/products/">', '</a>', '<a href="http://www.woothemes.com/changelogs/' . $update_data['theme_name'] . '/changelog.txt" target="_blank" title="Changelog">', '</a>') . '</p></div>';
     }
     if ($html != '') {
         echo $html;
     }
 }
開發者ID:googlecode-mirror,項目名稱:wpmu-demo,代碼行數:16,代碼來源:admin-interface.php


注:本文中的wooframework_get_theme_version_data函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。