本文整理汇总了PHP中Options_Framework_Interface::optionsframework_tabs方法的典型用法代码示例。如果您正苦于以下问题:PHP Options_Framework_Interface::optionsframework_tabs方法的具体用法?PHP Options_Framework_Interface::optionsframework_tabs怎么用?PHP Options_Framework_Interface::optionsframework_tabs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options_Framework_Interface
的用法示例。
在下文中一共展示了Options_Framework_Interface::optionsframework_tabs方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: optionsframework_fields
//.........这里部分代码省略.........
$editor_settings = $value['settings'];
}
$editor_settings = array_merge($default_editor_settings, $editor_settings);
wp_editor($val, $value['id'], $editor_settings);
$output = '';
break;
// Info
// Info
case "info":
$id = '';
$class = 'section';
if (isset($value['id'])) {
$id = 'id="' . esc_attr($value['id']) . '" ';
}
if (isset($value['type'])) {
$class .= ' section-' . $value['type'];
}
if (isset($value['class'])) {
$class .= ' ' . $value['class'];
}
$output .= '<div ' . $id . 'class="' . esc_attr($class) . '">' . "\n";
if (isset($value['name'])) {
$output .= '<h4 class="heading">' . esc_html($value['name']) . '</h4>' . "\n";
}
if (isset($value['desc'])) {
$output .= '<div class="option"><div class="explain">' . wp_kses($value['desc'], $allowedtags) . '</div></div>' . "\n";
//$output .= $value['desc'] . "\n";
}
$output .= '</div>' . "\n";
break;
// Heading for Navigation
// Heading for Navigation
case "heading":
$counter++;
if ($counter >= 2) {
$output .= '</div>' . "\n";
}
$class = '';
$class = !empty($value['id']) ? $value['id'] : $value['name'];
$class = preg_replace('/[^a-zA-Z0-9._\\-]/', '', strtolower($class));
$output .= '<div id="options-group-' . $counter . '" class="group ' . $class . '">';
$output .= '<h3>' . esc_html($value['name']) . '</h3>' . "\n";
break;
// Custom Static Heading for Navigation
// Custom Static Heading for Navigation
case 'static_heading':
break;
//Custom Group Start
//Custom Group Start
case 'groupstart':
$id = '';
$group = '';
$class = 'section';
if (isset($value['id'])) {
$id = 'id="' . esc_attr($value['id']) . '" ';
}
if (isset($value['type'])) {
$class .= ' section-' . $value['type'];
}
if (isset($value['class'])) {
$class .= ' ' . $value['class'];
}
if (isset($value['group'])) {
$group .= '[' . $value['group'] . ']';
}
$output .= '<div ' . $id . 'class="' . esc_attr($class) . '">' . "\n";
if (isset($value['name'])) {
$output .= '<h4 class="group-heading">' . esc_html($value['name']) . '<span class="heading-arrow side"><i class="fa fa-angle-right"></i></span></h4>' . "\n";
}
$output .= '<div class="group-content">';
$output .= '<input class="section-order" type="hidden" name="' . esc_attr($option_name . $group . '[' . $value['id'] . ']') . '">' . "\n";
break;
// Button
// Button
case "button":
$output .= '<a id="' . esc_attr($value['id']) . '" class="button-primary" href="javascript:void(0);">' . esc_attr($value['button_name']) . '</a>' . "\n";
if (!empty($value['html'])) {
$output .= wp_kses_post($value['html']);
}
break;
//Custom Group End
//Custom Group End
case 'groupend':
$output .= '</div></div>' . "\n";
break;
}
if ($value['type'] != "heading" && ($value['type'] != "info" && $value['type'] != "title" && $value['type'] != 'groupstart' && $value['type'] != 'groupend')) {
$output .= '</div>';
if ($value['type'] != "checkbox" && $value['type'] != "editor") {
$output .= '<div class="explain">' . wp_kses($explain_value, $allowedtags) . '</div>' . "\n";
}
$output .= '</div></div>' . "\n";
}
echo $output;
}
// Outputs closing div if there tabs
if (Options_Framework_Interface::optionsframework_tabs() != '') {
echo '</div>';
}
}
示例2: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div class="clear"></div>
<div id="optionsframework-wrap" class="wrap tutannet-themeoption">
<div class="theme-header clearfix">
<div class="tutannet-logo">
<img src="<?php
echo get_template_directory_uri();
?>
/images/logo.png" alt="<?php
esc_attr_e('TuTanNet', 'tutannet');
?>
" />
<div class="theme-name">
<?php
$theme = wp_get_theme();
echo $theme->get('Name') . " " . $theme->get('Version');
?>
</div>
</div>
<?php
//$menu = $this->menu_settings();
?>
<!--<div class="big-title"><?php
//echo esc_html( $menu['page_title'] );
?>
</div>-->
</div>
<div class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</div>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<div class="save-message"><?php
settings_errors('options-framework');
?>
</div>
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'tutannet');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'tutannet');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'tutannet'));
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
<div class="clear"></div>
</div> <!-- / .wrap -->
<?php
}
示例3: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div class="clear"></div>
<div id="optionsframework-wrap" class="wrap apmag-themeoption">
<div class="theme-header clearfix">
<div class="accesspress-mag-logo">
<img src="<?php
echo get_template_directory_uri();
?>
/images/logo.png" alt="<?php
esc_attr_e('AccessPress Mag', 'accesspress-mag');
?>
" />
<div class="theme-name">
<?php
$theme = wp_get_theme();
echo $theme->get('Name') . " V" . $theme->get('Version') . __(' - Theme Option Panel', 'accesspress-mag');
?>
</div>
</div>
<div class="ak-socials">
<p><?php
_e('Like/Follow us for New Updates', 'accesspress-mag');
?>
</p>
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width&layout=button&action=like&show_faces=false&share=false&height=35&appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowTransparency="true"></iframe>
<a href="https://twitter.com/apthemes" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @apthemes</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<p>
<a target="_blank" href="<?php
echo esc_url('http://doc.accesspressthemes.com/accesspress-mag-pro-doc');
?>
"><?php
_e('Online Documentation', 'accesspress-mag');
?>
</a> |
<a target="_blank" href="<?php
echo esc_url('http://accesspressthemes.com/support');
?>
"><?php
_e('Support Forum', 'accesspress-mag');
?>
</a>
</p>
</div>
<?php
//$menu = $this->menu_settings();
?>
<!--<div class="big-title"><?php
//echo esc_html( $menu['page_title'] );
?>
</div>-->
</div>
<div class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</div>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<div class="save-message"><?php
settings_errors('options-framework');
?>
</div>
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'accesspress-mag');
//.........这里部分代码省略.........
示例4: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<h2><?php
echo esc_html($menu['page_title']);
?>
</h2>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="保存设置" />
<input type="submit" class="reset-button button-secondary" name="reset" value="重置" onclick="return confirm( '<?php
print esc_js('您确定要重置所有选项吗?');
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
</div> <!-- / .wrap -->
<?php
}
示例5: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap clearfix">
<?php
$menu = $this->menu_settings();
?>
<div class="theme-header clearfix">
<div class="accesspress-root-logo">
<img src="<?php
echo get_template_directory_uri();
?>
/inc/option-framework/images/logo.png" alt="<?php
esc_attr_e('AccessPress Themes', 'accesspress-store');
?>
" />
</div>
<div class="ak-socials">
<p><?php
_e('Follow us for new updates', 'accesspress-store');
?>
</p>
<div class="social-bttns">
</div>
</div>
</div>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<div id="optionsframework-metabox" class="metabox-holder">
<?php
settings_errors('options-framework');
?>
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'accesspress-store');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'accesspress-store');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress-store'));
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
</div> <!-- / .wrap -->
<div class="clearfix"></div>
<?php
}
示例6: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<h2><?php
echo esc_html($menu['page_title']);
?>
</h2>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'textdomain');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'textdomain');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'textdomain'));
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
</div> <!-- / .wrap -->
<?php
}
示例7: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div class="clear"></div>
<div id="optionsframework-wrap" class="wrap apmag-themeoption">
<div class="theme-header clearfix">
<div class="accesspress-mag-logo">
<img src="<?php
echo get_template_directory_uri();
?>
/images/logo.png" alt="<?php
esc_attr_e('AccessPress Mag', 'accesspress-mag');
?>
" />
<div class="theme-name">
<?php
$theme = wp_get_theme();
echo $theme->get('Name') . " V" . $theme->get('Version') . __(' - Theme Option Panel', 'accesspress-mag');
?>
</div>
</div>
<div class="ak-socials">
<p>
<a target="_blank" href="<?php
echo esc_url('http://accesspressthemes.com/accesspress-mag/');
?>
"><?php
_e('Demo', 'accesspress-mag');
?>
</a> |
<a target="_blank" href="<?php
echo esc_url('https://accesspressthemes.com/accesspress-mag-documentation');
?>
"><?php
_e('Documentation', 'accesspress-mag');
?>
</a> |
<!--<a target="_blank" href="<?php
//echo esc_url( 'https://wordpress.org/support/theme/accesspress-mag');
?>
"><?php
//_e( 'Support', 'accesspress-mag');
?>
</a>-->
<?php
echo sprintf(__('Any question!! Click <a href="%s" target="_blank">here</a> for Live Chat.', 'accesspress-mag'), esc_url('https://accesspressthemes.com/contact/'));
?>
</p>
</div>
<?php
//$menu = $this->menu_settings();
?>
<!--<div class="big-title"><?php
//echo esc_html( $menu['page_title'] );
?>
</div>-->
</div>
<div class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</div>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<div class="save-message"><?php
settings_errors('options-framework');
?>
</div>
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
//.........这里部分代码省略.........
示例8: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<h2><?php
echo esc_html($menu['page_title']);
?>
</h2>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<div style="padding-top:10px;font-size:15px;"><a href="<?php
echo esc_url(SKT_PRO_THEME_URL);
?>
" target="_blank"><?php
_e('Buy PRO version for only $39 with more features.', 'skt-white');
?>
</a></div>
<?php
if (isset($_GET['msg']) && !isset($_GET['settings-updated'])) {
?>
<div class="updated <?php
if ($_GET['msg'] == "success") {
echo "fade";
}
?>
settings-error" id="setting-error-save_options" style="display: block;">
<?php
if ($_GET['msg'] == "error") {
?>
<p style="color:#FF0000"><strong>Current active theme is not matching</strong></p>
<?php
} elseif ($_GET['msg'] == "success") {
?>
<p><strong>Option Imported successfully</strong></p>
<?php
}
?>
</div>
<?php
}
?>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox" style="width:72%; float:left;">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'skt-white');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'skt-white');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'skt-white'));
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
<div style="width:25%; float:right;" class="postbox-container side">
<div class="meta-box-sortables ui-sortable">
<div class="postbox">
<h3 class="hndle"><span><?php
//.........这里部分代码省略.........
示例9: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<h2><?php
echo esc_html($menu['page_title']);
?>
</h2>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'consultant');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'consultant');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'consultant'));
?>
' );" />
<div class="clear"></div>
<div id="go_pro">
<h1>Go for Pro Version!</h1>
<p>This is a free version of consultant. Get your own copy of professional version if you need to setup your theme with Unlimited homepage Slides , Full width page template, Forum support and much more. <a href="http://antthemes.com/?page_id=215" target="blank">Click Here to Learn More Now</a> </p>
</div>
</div>
</form>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
</div> <!-- / .wrap -->
<?php
}
示例10: optionsframework_fields
//.........这里部分代码省略.........
foreach ($attachments as $key => $attachment) {
$output .= '<option value="' . esc_attr($key) . '" ' . selected($background['attachment'], $key, false) . '>' . esc_html($attachment) . '</option>';
}
$output .= '</select>';
$output .= '</div>';
break;
// export
// export
case 'export':
$rows = '8';
if (isset($value['settings']['rows'])) {
$custom_rows = $value['settings']['rows'];
if (is_numeric($custom_rows)) {
$rows = $custom_rows;
}
}
$output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input builder_select" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . esc_textarea($value['export']) . '</textarea>';
break;
// import
// import
case 'import':
$rows = '8';
$output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '"></textarea>';
break;
// Editor
// Editor
case 'editor':
//$output .= '<div class="explain">' . wp_kses( $explain_value, $allowedtags ) . '</div>'."\n";
$output .= '<div class="vpanel_editor"></div>';
echo $output;
$textarea_name = esc_attr($option_name . '[' . $value['id'] . ']');
$default_editor_settings = array('textarea_name' => $textarea_name, 'media_buttons' => "vpanel_editor", 'tinymce' => array('plugins' => 'wordpress'));
$editor_settings = array();
if (isset($value['settings'])) {
$editor_settings = $value['settings'];
}
$editor_settings = array_merge($default_editor_settings, $editor_settings);
wp_editor($val, $value['id'], $editor_settings);
$output = '';
break;
// Content
// Content
case "content":
if (isset($value['content'])) {
$output .= $value['content'] . "\n";
}
break;
// Info
// Info
case "info":
$id = '';
$class = 'section';
if (isset($value['id'])) {
$id = 'id="' . esc_attr($value['id']) . '" ';
}
if (isset($value['type'])) {
$class .= ' section-' . $value['type'];
}
if (isset($value['class'])) {
$class .= ' ' . $value['class'];
}
$output .= '<div ' . $id . 'class="' . esc_attr($class) . '">' . "\n";
if (isset($value['name'])) {
$output .= '<h4 class="heading">' . $value['name'] . '</h4>' . "\n";
}
if (isset($value['desc'])) {
$output .= apply_filters('of_sanitize_info', $value['desc']) . "\n";
}
$output .= '</div>' . "\n";
break;
// Heading for Navigation
// Heading for Navigation
case "heading":
$counter++;
if ($counter >= 2) {
$output .= '</div>' . "\n";
}
$class = '';
$class = !empty($value['id']) ? $value['id'] : $value['name'];
$class = preg_replace('/[^a-zA-Z0-9._\\-]/', '', strtolower($class));
$output .= '<div id="options-group-' . $counter . '" class="group ' . $class . '">';
$output .= '<h3>' . esc_html($value['name']) . '</h3>' . "\n";
break;
}
if (isset($value['type'])) {
if ($value['type'] != "heading" && $value['type'] != "info" && $value['type'] != "content" && $value['type'] != 'hidden') {
$output .= '</div>';
if ($value['type'] != "checkbox" && $value['type'] != "editor") {
$output .= '<div class="explain vpanel_help"><div class="tooltip_s" original-title="' . wp_kses($explain_value, $allowedtags) . '"><i class="dashicons dashicons-info"></i></div></div>' . "\n";
}
$output .= '</div></div>' . "\n";
}
}
echo $output;
}
// Outputs closing div if there tabs
if (Options_Framework_Interface::optionsframework_tabs() != '') {
echo '</div>';
}
}
示例11: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
global $themename;
?>
<div id="optionsframework-wrap">
<form action="options.php" id="main_options_form" method="post">
<div class="optionsframework-header">
<a href="http://themeforest.net/item/ask-me-responsive-questions-answers-wordpress/7935874?ref=2codeThemes" target="_blank"></a>
<input type="submit" class="button-primary vpanel_save" name="update" value="<?php
esc_attr_e('Save Options', 'vbegy');
?>
">
<div class="vpanel_social">
<ul>
<li><a class="vpanel_social_f" href="https://www.facebook.com/2code.info" target="_blank"><i class="dashicons dashicons-facebook"></i></a></li>
<li><a class="vpanel_social_t" href="#" target="_blank"><i class="dashicons dashicons-twitter"></i></a></li>
<li><a class="vpanel_social_e" href="#" target="_blank"><i class="dashicons dashicons-email-alt"></i></a></li>
<li><a class="vpanel_social_s" href="#" target="_blank"><i class="dashicons dashicons-sos"></i></a></li>
</ul>
</div>
<div class="clear"></div>
</div>
<div class="optionsframework-content">
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="ajax-saving"><i class="dashicons dashicons-yes"></i><?php
_e("Saving", "vbegy");
?>
</div>
<div id="ajax-reset"><i class="dashicons dashicons-info"></i><?php
_e("Reseting Options", "vbegy");
?>
</div>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
<div class="clear"></div>
</div>
<div class="optionsframework-footer">
<input type="submit" class="button-primary vpanel_save" name="update" value="<?php
esc_attr_e('Save Options', 'vbegy');
?>
">
<div id="loading"></div>
<input type="submit" class="reset-button button-secondary" id="reset_c" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'vbegy');
?>
">
<div class="clear"></div>
</div>
</form>
</div> <!-- / .wrap -->
<?php
}
示例12: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<div class="theme-header clearfix">
<div class="accesspresslite-logo">
<img src="<?php
echo get_template_directory_uri();
?>
/inc/options-framework/images/logo.png" alt="<?php
esc_attr_e('AccessPress Lite', 'accesspress_parallax');
?>
" />
</div>
<div class="ak-socials">
</div>
</div>
<div class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</div>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'accesspress_parallax');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'accesspress_parallax');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress_parallax'));
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
<div class="update-banner">
<img src="<?php
echo get_template_directory_uri();
?>
/inc/options-framework/images/upgrade-top.jpg">
<div class="button-link">
<a href="<?php
echo esc_url('http://accesspressthemes.com/accesspress-parallax-pro/');
?>
" target="_blank"><img src="<?php
echo get_template_directory_uri();
?>
/inc/options-framework/images/demo-btn.png"></a>
<a href="<?php
echo esc_url('https://accesspressthemes.com/wordpress-themes/accesspress-parallax-pro/');
?>
" target="_blank"><img src="<?php
echo get_template_directory_uri();
?>
/inc/options-framework/images/upgrade-btn.png"></a>
</div>
<img src="<?php
echo get_template_directory_uri();
?>
/inc/options-framework/images/upgrade-bottom.jpg">
<div class="button-link">
//.........这里部分代码省略.........
示例13: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<h2><?php
echo esc_html($menu['page_title']);
?>
</h2>
<div class="proversion">
<h3><?php
_e('Upgrade to Pro version!', 'kage');
?>
</h3>
<a href="<?php
echo esc_url('http://www.pwtthemes.com/theme/kage-responsive-wordpress-theme');
?>
" target="_blank" class="upgradepro"><?php
_e('Upgrade to Pro', 'kage');
?>
</a>
<a href="<?php
echo esc_url('http://www.pwtthemes.com/demo/kage');
?>
" target="_blank" class="donate"><?php
_e('Demo', 'kage');
?>
</a>
<p><?php
_e('If you need assistance, please do not hesitate to', 'kage');
?>
<a href="<?php
echo esc_url('http://www.pwtthemes.com/contact');
?>
" target="_blank"><?php
_e('contact us', 'kage');
?>
</a></p>
</div>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'kage');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'kage');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'kage'));
?>
' );" />
<div class="clear"></div>
</div>
</form>
</div> <!-- / #container -->
</div>
<?php
do_action('optionsframework_after');
?>
</div> <!-- / .wrap -->
<?php
}
示例14: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-themepromo">
<div class="promo-inner">
<h3>Support</h3>
<div class="inside">
<p>The best way to contact me with <b>support questions</b> and <b>bug reports</b> is via our <a href="<?php
esc_attr_e('http://facebook.com/templatesnext/', 'textdomain');
?>
" target="_blank">facebook page</a>.</p>
<p>If you like i-craft please rate us at <a href="<?php
esc_attr_e('http://wordpress.org/support/view/theme-reviews/i-craft', 'textdomain');
?>
" target="_blank">WordPress.org</a> and like our <a href="<?php
esc_attr_e('http://facebook.com/templatesnext/', 'textdomain');
?>
" target="_blank">facebook page</a>. </p>
</div>
</div>
</div>
<div id="optionsframework-wrap" class="wrap">
<?php
$menu = $this->menu_settings();
?>
<div class="promo-2">
<div class="promo-wrap">
<a href="<?php
esc_attr_e('http://templatesnext.org/icraft/', 'textdomain');
?>
" target="_blank">i-craft Demo</a>
<a href="<?php
esc_attr_e('http://templatesnext.org/icraft/docs', 'textdomain');
?>
">Documentation</a>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="M2HN47K2MQHAN">
<table>
<tr><td><input type="hidden" name="on0" value="If you like my work, buy me">If you like my work, buy me</td></tr><tr><td><select name="os0">
<option value="a cup of coffee">1 cup of coffee $10.00 USD</option>
<option value="2 cup of coffee">2 cup of coffee $20.00 USD</option>
<option value="3 cup of coffee">3 cup of coffee $30.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</div>
</div>
<h2><?php
echo esc_html($menu['page_title']);
?>
</h2>
<h2 class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</h2>
<?php
settings_errors('options-framework');
?>
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'theme-textdomain');
?>
" />
//.........这里部分代码省略.........
示例15: options_page
/**
* Builds out the options panel.
*
* If we were using the Settings API as it was intended we would use
* do_settings_sections here. But as we don't want the settings wrapped in a table,
* we'll call our own custom optionsframework_fields. See options-interface.php
* for specifics on how each individual field is generated.
*
* Nonces are provided using the settings_fields()
*
* @since 1.7.0
*/
function options_page()
{
?>
<div id="optionsframework-wrap" class="wrap clearfix">
<?php
$menu = $this->menu_settings();
?>
<div class="theme-header clearfix">
<div class="accesspress-root-logo">
<img src="<?php
echo get_template_directory_uri();
?>
/inc/panel/images/logo.png" alt="<?php
esc_attr_e('AccessPress Themes', 'accesspress-root');
?>
" />
</div>
<div class="ak-socials">
<p></p>
<div class="social-bttns">
</div>
</div>
</div>
<div class="optionsframework-holder">
<div class="nav-tab-wrapper">
<?php
echo Options_Framework_Interface::optionsframework_tabs();
?>
</div>
<div id="optionsframework-metabox" class="metabox-holder">
<?php
settings_errors('options-framework');
?>
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<?php
settings_fields('optionsframework');
?>
<?php
Options_Framework_Interface::optionsframework_fields();
/* Settings */
?>
<div id="optionsframework-submit" class="clearfix">
<input type="submit" class="button-primary" name="update" value="<?php
esc_attr_e('Save Options', 'accesspress-root');
?>
" />
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php
esc_attr_e('Restore Defaults', 'accesspress-root');
?>
" onclick="return confirm( '<?php
print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress-root'));
?>
' );" />
</div>
</form>
</div> <!-- / #container -->
</div>
<div class="upgrade-pro">
<h3><?php
_e('Upgrade to Root Pro', 'accesspress-root');
?>
</h3>
<div class="update-banner">
<img src="<?php
echo get_template_directory_uri();
?>
/inc/panel/images/upgrade-top.jpg">
</div>
<div class="button-link">
<a href="<?php
echo esc_url('https://accesspressthemes.com/accesspress-root-pro/');
?>
" target="_blank"><img src="<?php
echo get_template_directory_uri();
?>
/inc/panel/images/demo-btn.png"></a>
<a href="<?php
echo esc_url('https://accesspressthemes.com/wordpress-themes/accesspress-root-pro/');
?>
" target="_blank"><img src="<?php
//.........这里部分代码省略.........