本文整理匯總了PHP中td_util::tooltip_html方法的典型用法代碼示例。如果您正苦於以下問題:PHP td_util::tooltip_html方法的具體用法?PHP td_util::tooltip_html怎麽用?PHP td_util::tooltip_html使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類td_util
的用法示例。
在下文中一共展示了td_util::tooltip_html方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: layout
?>
</div>
</div>
<!-- custom sidebar -->
<div class="td-meta-box-row">
<span class="td-page-o-custom-label">
Custom sidebar:
<?php
td_util::tooltip_html('
<h3>Custom sidebar:</h3>
<p>From here you can set a custom sidebar for this page only.</p>
<ul>
<li><strong>This setting overrides</strong> the Theme panel setting from <i>Template settings > Page template</i></li>
<li><strong>On default</strong> - the template will load the sidebar that is set in the Theme panel: <i>Template settings > Page template</i></li>
<li>This setting is intended to be use for content pages, When this template detects
that Visual Composer is used, it will switch to a full width layout (with no sidebar). </li>
<li>If you want to use a sidebar with Visual Composer please use the Widgetised Sidebar block</li>
</ul>
', 'right');
?>
</span>
<?php
echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_page', 'item_id' => '', 'option_id' => 'td_sidebar', 'selected_value' => $mb->get_the_value('td_sidebar')));
?>
</div>
</div> <!-- /page option general -->
示例2:
<div class="td-box-section-separator"></div>
<!-- Category top posts style -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">Category top posts style</span>
<p>
Set top post style
<?php
td_util::tooltip_html('
<h3>Category top post styles:</h3>
<p>Highlight the latest posts on a category page</p>
<ul>
<li>This setting can be overwritten on a per category basis from the boxes below</li>
<li>Use this setting + the <i>grid style</i> setting to get the results that you want</li>
<li>For advanced users, here is the <a target="_blank" href="http://forum.tagdiv.com/api-category-top-section-style-introduction/">API documentation</a></li>
</ul>
', 'right');
?>
</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::visual_select_o(array('ds' => 'td_option', 'option_id' => 'tds_category_top_posts_style', 'values' => td_api_category_top_posts_style::_helper_to_panel_values()));
?>
</div>
</div>
<?php
示例3: array
</span>
<?php
echo td_panel_generator::visual_select_o(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'td_sidebar_position', 'values' => array(array('text' => '', 'title' => '', 'val' => '', 'class' => 'td-sidebar-position-default', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-default.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_left', 'class' => 'td-sidebar-position-left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-left.png'), array('text' => '', 'title' => '', 'val' => 'no_sidebar', 'class' => 'td-no-sidebar', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-full.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_right', 'class' => 'td-sidebar-position-right', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-right.png')), 'selected_value' => $mb->get_the_value('td_sidebar_position')));
?>
</div>
<!-- custom sidebar -->
<div class="td-meta-box-row">
<span class="td-page-o-custom-label">
Custom sidebar:
<?php
td_util::tooltip_html('
<h3>Custom sidebar:</h3>
<p>This setting allows you to load a custom sidebar on this product page only</p>
<ul>
<li><strong>This setting overrides</strong> the Theme panel setting from <i>Template settings > WooCommerce > Homepage + Archives</i></li>
<li><strong>On default</strong> - the global setting from the WooCommerce Homepage + Archives will apply</li>
</ul>
', 'right');
?>
</span>
<?php
echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'td_sidebar', 'selected_value' => $mb->get_the_value('td_sidebar')));
?>
</div>
示例4:
<?php
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_breadcrumbs_show_parent', 'true_value' => '', 'false_value' => 'hide'));
?>
</div>
</div>
<!-- show Breadcrumbs article title -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">SHOW ARTICLE TITLE</span>
<p>
Show or hide the article title on post pages
<?php
td_util::tooltip_html('
<h3>Show article title in breadcrumbs:</h3>
<p>If you do not require this for specific reasons, it can be disabled. This setting only affects the breadcrumbs. Not the article title of the post!</p>
', 'right');
?>
</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_breadcrumbs_show_article', 'true_value' => '', 'false_value' => 'hide'));
?>
</div>
</div>
<?php
echo td_panel_generator::box_end();
?>
示例5:
?>
>Hide title</option>
</select>
</div>
</div>
<!-- custom title for article list -->
<div class="td-meta-box-row">
<?php
$mb->the_field('list_custom_title');
?>
<span class="td-page-o-custom-label">
Article list title:
<?php
td_util::tooltip_html('
<h3>The title to use for the loop:</h3>
<p>It can be something like "Latest articles" etc.</p>
', 'right');
?>
</span>
<input type="text" name="<?php
$mb->the_name();
?>
" value="<?php
$mb->the_value();
?>
"/>
<span class="td-page-o-info">Custom title for the article list section</span>
</div>
<div class="td-meta-box-row td-meta-box-row-separator">
示例6:
<div class="td-box-section-separator"></div>
<!-- Category top posts style -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">分類頂部文章風格</span>
<p>
設置頂部文章風格
<?php
td_util::tooltip_html('
<h3>分類頂部文章風格:</h3>
<p>高亮分類頁最新文章</p>
<ul>
<li>此設置可以從以下框覆蓋每個分類基礎</li>
<li>使用此設置 + <i>網格風格</i> 設置獲取你想要的結果</li>
<li>對於高級用戶,這裏是<a target="_blank" href="http://forum.tagdiv.com/api-category-top-section-style-introduction/">API文檔</a></li>
</ul>
', 'right');
?>
</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::visual_select_o(array('ds' => 'td_option', 'option_id' => 'tds_category_top_posts_style', 'values' => td_api_category_top_posts_style::_helper_to_panel_values()));
?>
</div>
</div>
<div class="td-box-row">
示例7:
<p>
Google analytics helps track your site traffic
</p>
</div>
</div>
<!-- paste your code here -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">PASTE YOUR CODE HERE</span>
<p>
Google Analytics code
<?php
td_util::tooltip_html('
<h3>Google analytics tracking code:</h3>
<p>Paste here the Universal Analytics tracking code for this property. The code will be added to the body tag on all the sites pages</p>
', 'right');
?>
</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::textarea(array('ds' => 'td_option', 'option_id' => 'td_analytics'));
?>
</div>
</div>
<?php
echo td_panel_generator::box_end();
示例8:
<div class="td-inline-block-wrap">
<?php
echo td_panel_generator::visual_select_o(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'smart_list_template', 'values' => td_api_smart_list::_helper_td_smart_list_api_to_panel_values(), 'selected_value' => $mb->get_the_value('smart_list_template')));
?>
</div>
</div>
<!-- title tag -->
<div class="td-meta-box-row">
<span class="td-page-o-custom-label">
Title tags:
<?php
td_util::tooltip_html('
<h3>Smart lists title tags:</h3>
<p>Customize what tag is used for <i>Title</i> lookup. This setting is useful if for example, you already have articles that use H2 for items</p>
', 'right');
?>
</span>
<?php
$mb->the_field('td_smart_list_h');
?>
<div class="td-select-style-overwrite td-inline-block-wrap">
<select name="<?php
$mb->the_name();
?>
" class="td-panel-dropdown">
<option value="h1"<?php
$mb->the_select_state('h1');
?>
>Heading 1 ( H1 tag )</option>
示例9:
?>
>隱藏標題</option>
</select>
</div>
</div>
<!-- custom title for article list -->
<div class="td-meta-box-row">
<?php
$mb->the_field('list_custom_title');
?>
<span class="td-page-o-custom-label">
文章列表標題:
<?php
td_util::tooltip_html('
<h3>循環使用標題:</h3>
<p>它可以為某些東西,比如 "最新文章" 等.</p>
', 'right');
?>
</span>
<input type="text" name="<?php
$mb->the_name();
?>
" value="<?php
$mb->the_value();
?>
"/>
<span class="td-page-o-info">自定義文章列表部分標題</span>
</div>
<div class="td-meta-box-row td-meta-box-row-separator">
示例10:
<div class="td-inline-block-wrap">
<?php
echo td_panel_generator::visual_select_o(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'smart_list_template', 'values' => td_api_smart_list::_helper_td_smart_list_api_to_panel_values(), 'selected_value' => $mb->get_the_value('smart_list_template')));
?>
</div>
</div>
<!-- title tag -->
<div class="td-meta-box-row">
<span class="td-page-o-custom-label">
標題標簽:
<?php
td_util::tooltip_html('
<h3>智能列表標題標簽:</h3>
<p>自定義什麽標簽用於<i>Title</i>查找。例如,你已有文章為項目使用H2,這是很有用的</p>
', 'right');
?>
</span>
<?php
$mb->the_field('td_smart_list_h');
?>
<div class="td-select-style-overwrite td-inline-block-wrap">
<select name="<?php
$mb->the_name();
?>
" class="td-panel-dropdown">
<option value="h1"<?php
$mb->the_select_state('h1');
?>
>標題 1 ( H1 標簽 )</option>
示例11:
<?php
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_breadcrumbs_show_parent', 'true_value' => '', 'false_value' => 'hide'));
?>
</div>
</div>
<!-- show Breadcrumbs article title -->
<div class="td-box-row">
<div class="td-box-description">
<span class="td-box-title">顯示文章標題</span>
<p>
在文章頁顯示或隱藏文章標題
<?php
td_util::tooltip_html('
<h3>在麵包屑導航顯示文章標題:</h3>
<p>如果你不需要這個特定的原因,可以禁用。此設置隻影響麵包屑。不是文章的文章標題</p>
', 'right');
?>
</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_breadcrumbs_show_article', 'true_value' => '', 'false_value' => 'hide'));
?>
</div>
</div>
<?php
echo td_panel_generator::box_end();
?>
示例12: array
echo td_panel_generator::visual_select_o(array('ds' => 'td_page', 'item_id' => '', 'option_id' => 'td_sidebar_position', 'values' => array(array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-default.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-left.png'), array('text' => '', 'title' => '', 'val' => 'no_sidebar', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-full.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_right', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-right.png')), 'selected_value' => $mb->get_the_value('td_sidebar_position')));
?>
</div>
</div>
<!-- custom sidebar -->
<div class="td-meta-box-row">
<span class="td-page-o-custom-label">
自定義側邊欄:
<?php
td_util::tooltip_html('
<h3>自定義側邊欄:</h3>
<p>從這裏你可以僅為此頁麵設置自定義側邊欄</p>
<ul>
<li><strong>此設置覆蓋</strong>來自<i>模板設置 > 頁麵模板</i>的主題麵板。</li>
<li><strong>默認</strong> - 文章將在主分類設置看到,且它將嘗試從那裏獲取位置。如果主分類沒有自定義側邊伴位置,文章將從<i>模板設置 > 博客和文章模板</i>加載設置</li>
<li>此設置的目的是在內容頁使用,當此模板檢查到Visual Composer使用時,它將切換到全寬布局(無側邊欄)</li>
<li>如果你想使用Visual Composer帶側邊欄,請使用小工具化側邊欄區塊</li>
</ul>
', 'right');
?>
</span>
<?php
echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_page', 'item_id' => '', 'option_id' => 'td_sidebar', 'selected_value' => $mb->get_the_value('td_sidebar')));
?>
</div>
</div> <!-- /page option general -->
示例13: array
</span>
<?php
echo td_panel_generator::visual_select_o(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'td_sidebar_position', 'values' => array(array('text' => '', 'title' => '', 'val' => '', 'class' => 'td-sidebar-position-default', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-default.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_left', 'class' => 'td-sidebar-position-left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-left.png'), array('text' => '', 'title' => '', 'val' => 'no_sidebar', 'class' => 'td-no-sidebar', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-full.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_right', 'class' => 'td-sidebar-position-right', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-right.png')), 'selected_value' => $mb->get_the_value('td_sidebar_position')));
?>
</div>
<!-- custom sidebar -->
<div class="td-meta-box-row">
<span class="td-page-o-custom-label">
自定義側邊欄:
<?php
td_util::tooltip_html('
<h3>自定義側邊欄:</h3>
<p>此設置允許隻在此產品頁加載自定義側邊欄</p>
<ul>
<li><strong>此設置覆蓋</strong>來自<i>模板設置 > WooCommerce > 首頁 + 歸檔</i>的主題麵板設置</li>
<li><strong>默認</strong> - 來自WooCommerce 首頁 + 歸檔的全局設置將應用</li>
</ul>
', 'right');
?>
</span>
<?php
echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'td_sidebar', 'selected_value' => $mb->get_the_value('td_sidebar')));
?>
</div>