function optionsframework_page() { $return = optionsframework_fields(); settings_errors(); ?> <div class="wrap"> <div class="icon32" id="options_ico"><br /></div> <?php //screen_icon( 'themes' ); ?> <h2 class="nav-tab-wrapper"> <?php echo $return[1]; ?> </h2> <div class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php echo $return[0]; /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> <p>Brought to you by <a href="http://320press.com" target="_blank">320press</a>.</p> </div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { // Get the theme name so we can display it up top $themename = get_theme_data(STYLESHEETPATH . '/style.css'); $themename = $themename['Name']; settings_errors(); ?> <div class="wrap"> <?php screen_icon('themes'); ?> <h2><?php esc_html_e('Theme Options'); ?> </h2> <div id="of_container"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <div id="header"> <div class="logo"> <h2><?php esc_html_e($themename); ?> </h2> </div> <div class="clear"></div> </div> <div id="main"> <?php $return = optionsframework_fields(); ?> <div id="of-nav"> <ul> <?php echo $return[1]; ?> </ul> </div> <div id="content"> <?php echo $return[0]; /* Settings */ ?> </div> <div class="clear"></div> </div> <div class="of_admin_bar"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!')); ?> ' );" /> </div> <div class="clear"></div> </form> </div> <!-- / #container --> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <div id="optionsframework-wrap" class="wrap"> <div class="proversion"> <h3>Upgrade to Pro version!</h3> <a href="<?php echo esc_url('http://www.pwtthemes.com/theme/hannari-responsive-wordpress-theme'); ?> " target="_blank" class="upgradepro">Upgrade to Pro</a> <a href="<?php echo esc_url('http://www.pwtthemes.com/demo/hannari'); ?> " target="_blank" class="donate">Demo</a> <p>If you need assistance, please do not hesitate to <a href="<?php echo esc_url('http://www.pwtthemes.com/contact'); ?> " target="_blank">contact us</a></p> </div> <div class="logooption"><img src="<?php echo OPTIONS_FRAMEWORK_DIRECTORY; ?> images/pwt.png"/></div> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { ?> <div id="optionsframework-wrap" class="wrap"> <?php screen_icon('themes'); ?> <h2 class="nav-tab-wrapper"> <?php echo 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 optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('保存设置', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('恢复默认', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('如果单击“确定”会导致之前所有的设置都丢失,确定要这样做吗?', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <div id="optionsframework-wrap" class="wrap"> <div class="extern-links"> <?php $support_link = '//info.template-help.com/help/cms-blog-templates/wordpress/wordpress-tutorials/'; $doc_link = '//info.template-help.com/help/quick-start-guide/wordpress-themes/master/index_en.html'; if (class_exists('Woocommerce')) { $doc_link = '//www.templatemonster.com/help/quick-start-guide/woocommerce-themes/master/index_en.html'; } elseif (function_exists('jigoshop_init')) { $doc_link = '//www.templatemonster.com/help/quick-start-guide/jigoshop-themes/master/index_en.html'; } $language = get_bloginfo("language"); switch ($language) { case 'ru-RU': $support_link = '//info.template-help.com/help/ru/cms-blog-templates/wordpress/wordpress-tutorials/'; break; case 'es-ES': $support_link = '//info.template-help.com/help/es/cms-blog-templates/wordpress/wordpress-tutorials/'; break; case 'de-DE': $support_link = '//info.template-help.com/help/de/cms-blog-templates/wordpress/wordpress-tutorials/'; break; } echo '<a class="icon-a icon-support" href="' . $support_link . '" target="_blank"><span class="icon"><span>' . theme_locals("support") . '</span></span></a>'; echo "<a class='icon-a icon-documentation' href='" . $doc_link . "' target='_blank'><span class='icon'><span>" . theme_locals('documentation') . "</span></span></a>"; ?> </div> <div class="clear"></div> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php echo theme_locals("save_options"); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php echo theme_locals("restore_defaults"); ?> " onclick="return confirm( '<?php echo theme_locals("restore_defaults_desc"); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { // Get the theme name so we can display it up top $theme = of_get_theme_info(); if ($theme->parent()) { $theme = $theme->parent(); } $themeName = $theme['Name']; $themeVersion = $theme['Version']; settings_errors(); ?> <div class="wrap"> <?php screen_icon('themes'); ?> <div id="of_container"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <div id="header"> <div class="logo"> <h2><?php esc_html_e($themeName); ?> <?php esc_html_e('Options'); ?> <small>(v<?php esc_html_e($themeVersion); ?> )</small></h2> </div> <div class="site5author"> <h2><a href="http://www.s5themes.com"><?php esc_attr_e('A Theme by', 'site5framework'); ?> <strong><?php esc_attr_e('S5themes.com', 'site5framework'); ?> </strong></a></h2> </div> <div class="clear"></div> </div> <div id="main"> <?php $return = optionsframework_fields(); ?> <div id="of-nav"> <ul> <?php echo $return[1]; ?> </ul> </div> <div id="content"> <?php echo $return[0]; /* Settings */ ?> </div> <div class="clear"></div> </div> <div class="of_admin_bar"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'site5framework'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'site5framework'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'site5framework')); ?> ' );" /> </div> <div class="clear"></div> </form> </div> <!-- / #container --> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { $return = optionsframework_fields(); settings_errors(); ?> <div id="go_pro"> <h1>Go for Pro Version!</h1> <p>This is a free version of discover. Get your own copy of professional version if you need Unlimited Sliders , Full Width page template, Forum support and much more. <a href="http://antthemes.com/?page_id=1963" target="blank">Click Here to Learn More Now</a> </p> </div> <div class="wrap"> <?php screen_icon('themes'); ?> <h2 class="nav-tab-wrapper"> <?php echo $return[1]; ?> </h2> <div class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php echo $return[0]; /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'discover')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors('options-framework'); ?> <div id="optionsframework-wrap" class="wrap"> <!--?php echo get_screen_icon( $screen = 'settings'); ?--> <div class="framework-info"> <h1><?php bloginfo('name'); $my_theme_version = wp_get_theme(); ?> </h1> <span>Administration Panel<?php echo " | version " . $my_theme_version->get('Version'); ?> </span> </div> <div class="clear"></div> <div style="float:left; width:220px; background:#86badf; margin-top:12px; margin-right:12px; "> <ul style="background:#86badf;" class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </ul> </div> <div style="float:left;" id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form class="jqtransform" action="options.php" method="post"> <div id="optionsframework-submit-top"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', HS_CURRENT_THEME); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', HS_CURRENT_THEME); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', HS_CURRENT_THEME)); ?> ' );" /> <div class="clear"></div> </div> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', HS_CURRENT_THEME); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', HS_CURRENT_THEME); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', HS_CURRENT_THEME)); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> <div style="clear:both;"></div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors('options-framework'); ?> <div class="donate-info"> <strong><?php _e('To Activate All Features, Please Upgrade to Pro version!', 'invert'); ?> </strong><br/> <?php $sktlink = "https://sketchthemes.com/premium-themes/multipurpose-business-wordpress-theme-for-corporate-agency/"; $skttest_drive = "http://trial.sketchthemes.com/wp-signup.php"; ?> <a title="<?php esc_attr_e('Upgrade to Pro', 'invert'); ?> " href="<?php echo esc_url($sktlink); ?> " target="_blank" class="upgrade"><?php _e('Upgrade to Pro', 'invert'); ?> </a> <a title="<?php esc_attr_e('Setup Instructions', 'invert'); ?> " href="<?php echo get_template_directory_uri() . '/Installation_Instructions.txt'; ?> " target="_blank" class="donate"><?php _e('Setup Instructions', 'invert'); ?> </a> <?php $sktratelink = "http://wordpress.org/support/view/theme-reviews/invert-lite"; ?> <a title="<?php esc_attr_e('Rate Invert Lite', 'invert'); ?> " href="<?php echo esc_url($sktratelink); ?> " target="_blank" class="review"><?php _e('Rate Invert Lite', 'invert'); ?> </a> <a title="<?php _e('Test Drive', 'invert'); ?> " href="<?php echo esc_url($skttest_drive); ?> " target="_blank" class="review"><?php _e('Theme Test Drive', 'invert'); ?> </a> </div> <div id="optionsframework-wrap"> <?php if (isset($invert_themename)) { ?> <h2><?php _e('Theme Options ', 'invert'); echo $invert_themename; ?> </h2> <?php } ?> <!--<h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2>--> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <div id="skt-of-header"><div class="skt-of-logo"></div><h2><?php esc_attr_e('SketchThemes Admin Panel', 'optionsframework'); ?> </h2></div> <div id="skt-of-body"> <div id="skt-of-sidebar" class="nav-tab-wrapper"><?php echo optionsframework_tabs(); ?> </div> <div id="skt-of-content"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> </div> <!-- / #skt-of-content --> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'optionsframework'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'optionsframework'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'invert')); ?> ' );" /> <div class="clear"></div> </div> <!-- / #optionsframework-submit --> </div> <!-- / #skt-of-body --> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <?php $theme = wp_get_theme(); if ($theme->name == 'Corpo') { ?> <div id="optionsframework-themepromo"> <h2><?php _e('Upgrade to Corpo Pro!', 'corpo'); ?> </h2> <p><?php _e('All Corpo features plus <b>custom typography, unlimited colors, filterable portfolio</b> and more!', 'corpo'); ?> <a href="http://webtuts.pl/corpo-pro/"><?php _e('Buy now!', 'corpo'); ?> </a></p> </div> <?php } ?> <div id="optionsframework-wrap" class="wrap"> <?php screen_icon('themes'); ?> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { // Get the theme name so we can display it up top $theme_data; if (function_exists('wp_get_theme')) { $theme_data = wp_get_theme('theme-name'); } else { $theme_data = (object) wp_get_theme(get_template_directory() . '/style.css'); } $themename = $theme_data->Name; settings_errors(); ?> <div class="wrap"> <div id="of_container"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <div id="header"> <div id="header_left"> <!--<div id="header_left"><h1> Theme Options </h1> </div>--> <div class="panel_logo"> <?php $bloginfo_link = get_template_directory_uri(); $logo = $bloginfo_link . '/includes/admin/images/panel_logo.png'; ?> <img src="<?php echo $logo; ?> " alt="" /> </div> </div> <div id="header_right"> <div class="documentation"> Need help? <a href="http://www.files.red-sun-design.com/lemonchili/readme/readme.html" target="_blank"> <?php _e('Documentation', 'gxg_textdomain'); ?> </a> </div> </div> </div> <div class="headerbottom"></div> <div class="clear"></div> <div id="main"> <?php $return = optionsframework_fields(); ?> <div id="of-nav"> <ul> <?php echo $return[1]; ?> </ul> <ul id="navibottom"></ul> <ul id="shadow"></ul> </div> <div id="content"> <?php echo $return[0]; /* Settings */ ?> </div> <div class="clear"></div> </div> <div class="of_admin_bar"> <div id="bottom_left"> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'gxg_textdomain'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'gxg_textdomain')); ?> ' );" /> </div> <div id="bottom_right"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'gxg_textdomain'); ?> " /> </div> </div> <div class="clear"></div> </form> </div> <!-- / #container --> </div> <!-- / .wrap --> <?php }
function wrockmetro_optionsframework_page() { $return = optionsframework_fields(); settings_errors(); ?> <?php get_template_part('/includes/wrock'); ?> <div class="wrap"> <?php $options = get_option('of_template'); $themename = get_option('of_themename'); ?> <div id="header"> <div class="logo"> <h2><?php echo $themename; ?> <?php _e('Options', 'wrockmetro'); ?> </h2> </div> <a href="<?php echo esc_url(__('http://www.wrock.org/wrock-metro', 'wrockmetro')); ?> " target="_new"> <div class="icon-option"> </div> </a> </div> <div class="metabox-holder"> <div id="optionsframework"> <form action="options.php" method="post"> <ul class="nav-tab-wrapper"> <?php echo $return[1]; ?> </ul> <div class="content"> <?php settings_fields('optionsframework'); ?> <?php echo $return[0]; /* Settings */ ?> </div> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js('Click OK to reset. Any theme settings will be lost!'); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> </div> <!-- / .wrap --> <?php }
/** * Display Meta Box * * @since 1.0.0 */ function themeblvd_ltp_display_meta_box() { global $post; // Current Value $value = get_post_meta($post->ID, '_tb_custom_layout', true); $settings = array('_tb_custom_layout' => $value); // Custom Layouts for options array $select = array('' => '-- ' . __('No Custom Templates', 'theme-blvd-layouts-to-posts') . ' --'); $layouts = get_posts('post_type=tb_layout&orderby=title&order=ASC&numberposts=-1'); if ($layouts) { $select = array('' => '-- ' . __('None', 'theme-blvd-layouts-to-posts') . ' --'); foreach ($layouts as $layout) { $select[$layout->post_name] = $layout->post_title; } } $options = array(array('id' => '_tb_placeholder', 'std' => 1, 'type' => 'hidden'), array('id' => '_tb_custom_layout', 'desc' => __('If you\'d like to replace this post with a template from the Layout Builder, you can select one from the dropdown menu.', 'theme-blvd-layouts-to-posts'), 'type' => 'select', 'options' => $select)); if (version_compare(TB_FRAMEWORK_VERSION, '2.5.0', '<')) { unset($options[0]); } // Start output echo '<div id="optionsframework" class="tb-meta-box side">'; // Display options form // @todo - After framework v2.2 is released, we can // clean this up and not to have to check for the // different functions, simply requiring the user // to update their theme. if (function_exists('themeblvd_option_fields')) { // Options form for TB framework v2.2+ $form = themeblvd_option_fields('themeblvd_ltp', $options, $settings, false); echo $form[0]; } else { if (function_exists('optionsframework_fields')) { // Options form for TB framework v2.0 - v2.1 $form = optionsframework_fields('themeblvd_ltp', $options, $settings, false); echo $form[0]; } } // End output echo '</div><!-- .tb-meta-box (end) -->'; }
function optionsframework_page() { settings_errors(); ?> <?php $theme = wp_get_theme(); if ($theme->name == 'Delicacy') { ?> <!-- XTEC ************ ELIMINAT - Treure el boto de compra 2013.09.05 @jmiro227 <div id="optionsframework-themepromo"> <h2><?php _e('Upgrade to Delicacy Pro!', 'delicacy'); ?> </h2> <p><?php _e('All Delicacy features plus <b>responsive design</b>, unlimited <b>color schemes</b> and <b>lifetime updates</b>.', 'more'); ?> <a href="http://webtuts.pl/delicacy-pro/"><?php _e('Buy now!', 'delicacy'); ?> </a></p> </div> ************ FI --> <?php } ?> <div id="optionsframework-wrap" class="wrap"> <?php screen_icon('themes'); ?> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { //$return = optionsframework_fields(); ?> <div class="options_wrap"> <div class="wrap"> <div class="clear"></div> <form method="post"> <?php /* Top buttons */ ?> <div id="optionsframework-submit"> <div class="optionsframework-submit-inner"> <span><?php echo get_screen_icon($screen = 'settings'); ?> <div class="options-title">Theme Options</div> <input type="submit" class="button-primary topbutton-right" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> </span> <div class="clear"></div> <?php settings_errors(); ?> </div> </div> <div class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </div> <div class="metabox-holder"> <div id="optionsframework" class="postbox"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <?php /* Bottom buttons */ ?> <div id="optionsframework-reset"> <?php echo '<input type="hidden" name="mtheme_options_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />'; ?> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'mthemelocal')); ?> ' );" /> <div class="clear"></div> </div> </div> <!-- / #container --> </div> </form> </div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { if (isset($_GET['settings-updated']) && 'true' == $_GET['settings-updated'] && of_get_option('misc-static_css', false) && optionsframework_create_stylesheet()) { return; } $return = optionsframework_fields(); settings_errors(); ?> <div class="wrap"> <?php screen_icon('themes'); ?> <h2 class="nav-tab-wrapper"> <?php echo $return[1]; ?> </h2> <div class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php echo $return[0]; /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php echo esc_attr(_x('Save Options', 'optionsframework', LANGUAGE_ZONE)); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php echo esc_attr(_x('Restore Defaults', 'optionsframework', LANGUAGE_ZONE)); ?> " onclick="return confirm( '<?php print esc_js(_x('Click OK to reset. Any theme settings will be lost!', 'optionsframework', LANGUAGE_ZONE)); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> </div> <!-- / .wrap --> <?php }
if (!function_exists('optionsframework_add_page')) { function optionsframework_add_page() { $of_page = add_theme_page('Theme Options', '', 'edit_theme_options', 'options-framework', 'optionsframework_page'); // Adds actions to hook in the required css and javascript add_action("admin_print_styles-{$of_page}", 'optionsframework_load_styles'); add_action("admin_print_scripts-{$of_page}", 'optionsframework_load_scripts'); } } /* Loads the CSS */ function optionsframework_load_styles() { wp_enqueue_style('admin-style', OPTIONS_FRAMEWORK_DIRECTORY . 'css/admin-style.css'); wp_enqueue_style('color-picker', OPTIONS_FRAMEWORK_DIRECTORY . 'css/colorpicker.css'); wp_enqueue_style('engage.itoggle', OPTIONS_FRAMEWORK_DIRECTORY . 'css/engage.itoggle.css'); $allowed_tags = array('link' => array('rel' => array(), 'href' => array(), 'type' => array(), 'media' => array()), 'script' => array('type' => array())); $_html = ''; $_html .= '<link rel="stylesheet" href="' . esc_url(site_url()) . '/' . WPINC . '/js/thickbox/thickbox.css" type="text/css" media="screen" />' . "\n"; $_html .= '<script type="text/javascript"> var tb_pathToImage = "' . esc_url(site_url()) . '/' . WPINC . '/js/thickbox/loadingAnimation.gif"; var tb_closeImage = "' . esc_url(site_url()) . '/' . WPINC . '/js/thickbox/tb-close.png"; </script>' . "\n"; echo wp_kses($_html, $allowed_tags, array('http', 'https')); } /* Loads the javascript */ function optionsframework_load_scripts() { // Inline scripts from options-interface.php add_action('admin_head', 'of_admin_head'); // Enqueued scripts wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('color-picker', OPTIONS_FRAMEWORK_DIRECTORY . 'js/colorpicker.js', array('jquery')); wp_enqueue_script('options-custom', OPTIONS_FRAMEWORK_DIRECTORY . 'js/options-custom.js', array('jquery')); wp_enqueue_script('engage.itoggle', OPTIONS_FRAMEWORK_DIRECTORY . 'js/engage.itoggle.js', array('jquery')); wp_enqueue_script('easing', OPTIONS_FRAMEWORK_DIRECTORY . 'js/easing.js', array('jquery')); wp_enqueue_script('of-medialibrary-uploader', OPTIONS_FRAMEWORK_DIRECTORY . 'js/of-medialibrary-uploader.js', array('jquery', 'thickbox')); wp_enqueue_script('media-upload'); } function of_admin_head()
function optionsframework_page() { $return = optionsframework_fields(); settings_errors(); ?> <div class="wrap"> <div class="metabox-holder"> <div class="blueprint-header"> <div class="blueprint-logo"></div> <div class="builder-options">Theme Options</div> <div class="version"> <p>Builder Version: 1.0.0</p> </div> </div> <div class="side-nav nav-tab-wrapper"> <ul> <?php echo $return[1]; ?> <li class="side-bar-nav-item"> <?php $jquery_click_hook = "of-option-" . preg_replace('/[^a-zA-Z0-9._\\-]/', '', strtolower('Import/Export')); ?> <a id="<?php echo esc_attr($jquery_click_hook); ?> -tab" class="nav-tab" title="<?php echo esc_attr('Import/Export'); ?> " href="<?php echo esc_attr('#' . $jquery_click_hook); ?> "> <?php echo esc_html('Import/Export'); ?> </a> </li> </ul> </div> <div id="optionsframework" class="postbox" > <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php echo $return[0]; /* Settings */ ?> <?php echo build_import_export(); ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php echo 'Save Options'; ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php echo 'Restore Defaults'; ?> " onclick="return confirm( '<?php print esc_js('Click OK to reset. Any theme settings will be lost!'); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <div class="wrap"> <div class="metabox-holder"> <div id="optionsframework"> <div class="new_options_container"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <div class="new_options_container_top"> <div class="new_options_container_top_logo"> <a href="http://www.themealley.com/"><img src="<?php echo get_stylesheet_directory_uri(); ?> /images/logo.png" /></a> </div> <div class="new_options_container_top_upgrade"> <a href="https://www.themealley.com/magazine/"><img src="<?php echo get_stylesheet_directory_uri(); ?> /images/probanner.png" /></a> </div> <div class="new_options_container_top_twit"> <a href="https://twitter.com/ThemeAlley"><img src="<?php echo get_stylesheet_directory_uri(); ?> /images/twitfollow.png" /></a> </div> </div> <div id="countrytabs" class="new_options_container_middle"> <ul class="shadetabs"> <li class="big"><a href="#country1"><h6><?php echo __('General', 'Destro'); ?> </h6><p><?php echo __('Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country2"><p><?php echo __('Social Settings', 'Destro'); ?> </p></a></li> <li class="big"><a href="#country3"><h6><?php echo __('Slider', 'Destro'); ?> </h6><p><?php echo __('Settings', 'Destro'); ?> </p></a></li> <li class="big"><a href="#country4"><h6><?php echo __('Layout', 'Destro'); ?> </h6><p><?php echo __('Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country6"><p><?php echo __('MagPro Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country12"><p><?php echo __('VideoMag Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country7"><p><?php echo __('Mag Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country8"><p><?php echo __('MagLite Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country13"><p><?php echo __('MagThree Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country14"><p><?php echo __('MagFour Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country15"><p><?php echo __('MagFive Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country16"><p><?php echo __('MagSix Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country17"><p><?php echo __('MagSeven Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country18"><p><?php echo __('MagEight Settings', 'Destro'); ?> </p></a></li> <li class="small"><a href="#country9"><p><?php echo __('Standard Blog Settings', 'Destro'); ?> </p></a></li> <li class="big"><a href="#country5"><h6><?php echo __('Sidebar', 'Destro'); ?> </h6><p><?php echo __('Settings', 'Destro'); ?> </p></a></li> <li class="big"><a href="#country10"><h6><?php echo __('AD', 'Destro'); ?> </h6><p><?php echo __('Settings', 'Destro'); ?> </p></a></li> <li class="big"><a href="#country11"><h6><?php echo __('Footer', 'Destro'); ?> </h6><p><?php echo __('Settings', 'Destro'); ?> </p></a></li> </ul> <div class="shadetabscontent"> <?php optionsframework_fields(); /* Settings */ ?> </div> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery.noConflict(); jQuery('#countrytabs').tabs(); }); </script> <div class="new_options_container_bottom"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'Destro')); ?> ' );" /> </div> </form> </div> </div> </div> </div> <?php }
function optionsframework_page() { settings_errors(); ?> <div id="optionsframework-wrap" class="wrap"> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div style="padding-bottom:10px;"><a href="<?php echo 'http://www.sktthemes.net/shop/skt_parallax_me_pro/'; ?> " target="_blank">Buy PRO version for only $39 with more features.</a></div> <div style="clear:both"></div> <div id="optionsframework" class="postbox" style="width:72%; float:left;" > <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <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>Our Themes</span></h3> <div class="inside"> <p><a target="_blank" href="http://www.sktthemes.net/themes"><img style="max-width:100%" src="<?php echo get_template_directory_uri(); ?> /images/sktskill.jpg"></a></p> </div> </div> <div class="postbox"> <h3 class="hndle"><span>Support</span></h3> <div class="inside"> <p><em>For support email us at <strong>support@sktthemes.com</strong></em></p> </div> </div> </div> </div> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <div class="wrap"> <div class="metabox-holder"> <div id="optionsframework"> <div class="new_options_container"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <div class="new_options_container_top"> <div class="new_options_container_top_logo"> <a href="http://www.themealley.com/"><img src="<?php echo get_template_directory_uri(); ?> /images/logo.png" /></a> </div> <div class="new_options_container_top_twit"> <div class="new_options_container_top_twit_bookmark"> <div class="new_options_container_top_twit_bookmarkf"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-href="http://www.facebook.com/ThemeAlley" data-send="false" data-layout="box_count" data-width="450" data-show-faces="false"></div> </div> <div class="new_options_container_top_twit_bookmarkt"> <a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-url="https://www.themealley.com/" data-count="vertical" data-text="Responsive WordPress Themes">Tweet</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="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> <div class="new_options_container_top_twit_bookmarkg"> <!-- Place this tag where you want the +1 button to render --> <g:plusone size="tall" href="https://www.themealley.com/"></g:plusone> <!-- Place this render call where appropriate --> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div> </div> </div> <div class="new_options_container_top_rate"> <a href="http://www.themealley.com/business/?a_aid=tskk&a_bid=550dad4a&chan=<?php echo wp_get_theme(); ?> "> <img src="<?php echo get_template_directory_uri(); ?> /images/rate.png" /> </a> </div> </div> <div id="countrytabs" class="new_options_container_middle"> <ul class="shadetabs"> <li class="big"><a href="#country1"><h6><?php echo __('General', 'alexandria'); ?> </h6><p><?php echo __('Settings', 'alexandria'); ?> </p></a></li> <li class="small"><a href="#country2"><p><?php echo __('Social Settings', 'alexandria'); ?> </p></a></li> <li class="big"><a href="#country10"><h6><?php echo __('Logo Section', 'alexandria'); ?> </h6><p><?php echo __('Settings', 'alexandria'); ?> </p></a></li> <li class="big"><a href="#country3"><h6><?php echo __('Header', 'alexandria'); ?> </h6><p><?php echo __('Settings', 'alexandria'); ?> </p></a></li> <li class="small"><a href="#country6"><p><?php echo __('Header One Settings', 'alexandria'); ?> </p></a></li> <li class="big"><a href="#country4"><h6><?php echo __('Layout', 'alexandria'); ?> </h6><p><?php echo __('Settings', 'alexandria'); ?> </p></a></li> <li class="small"><a href="#country5"><p><?php echo __('Biz One Settings', 'alexandria'); ?> </p></a></li> <li class="small"><a href="#country7"><p><?php echo __('Biz Two Settings', 'alexandria'); ?> </p></a></li> <li class="small"><a href="#country9"><p><?php echo __('Standard Blog Settings', 'alexandria'); ?> </p></a></li> <li class="big"><a href="#country19"><h6><?php echo __('Portfolio', 'alexandria'); ?> </h6><p><?php echo __('Settings', 'alexandria'); ?> </p></a></li> <li class="big"><a href="#country11"><h6><?php echo __('Footer', 'alexandria'); ?> </h6><p><?php echo __('Settings', 'alexandria'); ?> </p></a></li> </ul> <div class="shadetabscontent"> <?php optionsframework_fields(); /* Settings */ ?> </div> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery.noConflict(); jQuery('#countrytabs').tabs(); }); </script> <div class="new_options_container_bottom"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e(__('Save Options', 'alexandria')); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e(__('Restore Defaults', 'alexandria')); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'alexandria')); ?> ' );" /> </div> </form> </div> </div> </div> </div> <?php }
function optionsframework_page() { $return = optionsframework_fields(); settings_errors(); ?> <div class="wrap"> <?php echo get_screen_icon($screen = 'settings'); ?> <h2 class="themeoptions"> Theme Options</h2> <div class="extern-links"> <a class="icon-a icon-gallery" href='http://themeforest.net/user/2winFactor/portfolio?ref=2winfactor' target="_blank" ><span class="icon"><span>Themes</span></span></a> <a class="icon-a icon-support" href='http://www.themewich.com' target="_blank" ><span class="icon"><span>Support Forum</span></span></a> <a class="icon-a icon-documentation" href='<?php echo get_template_directory_uri(); ?> /pdf/documentation.pdf' target="_blank" ><span class="icon"><span>Documentation</span></span></a> </div> <br class="clear" /> <h2 class="nav-tab-wrapper"> <?php echo $return[1]; ?> </h2> <div class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php /* Top buttons */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'framework')); ?> ' );" /> <div class="clear"></div> </div> <?php echo $return[0]; /* Settings */ ?> <?php /* Bottom buttons */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'framework')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <div id="optionsframework-wrap" class="wrap"> <?php screen_icon('ibuddy'); ?> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <h3 id="ibuddy-doc">Need help? Check out the theme <a href="<?php echo get_template_directory_uri() . '/documentation/'; ?> " target="_blank">Documentation</a>.</h3> <h3 id="ibuddy-thank">You wanna say thanks, please consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=L46CFL4B4UWSJ&lc=US&item_name=Ayman%20Al%20Zarrad&no_note=0&cn=Add%20special%20instructions%20to%20seller%3a&no_shipping=2¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank">Donation</a>.</h3> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { $imagepath = get_stylesheet_directory_uri() . '/inc/images/'; ?> <div class="option_main_wrap"> <div class="message_alert"> <?php settings_errors(); ?> </div> <div class="option_wrap"> <?php $my_theme = wp_get_theme(); ?> <div class="manu_wraper"> <div class="logo"> <a href="<?php echo $my_theme->get('ThemeURI'); ?> " target="_blank"><img src="<?php echo $imagepath; ?> logo.png"></a> </div> <!--End Logo--> <ul class="option-tab-wrapper nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </ul> </div> <!--End Left--> <?php //screen_icon( 'themes' ); ?> <form action="options.php" method="post"> <div class="content_wraper"> <div class="links"> <div class="author_theme"> <img src="<?php echo get_stylesheet_directory_uri(); ?> /screenshot.png" /> <?php echo '<h2><a href="' . $my_theme->get('ThemeURI') . '">' . $my_theme->{'Name'} . "</a></h2>"; echo "<p>" . $my_theme->{'Description'} . "<p>"; echo "<p class='version'>Version: " . $my_theme->{'Version'} . "<p>"; ?> </div> <div class="save_theme"> <input type="submit" class="button-primary top-button" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> </div> </div> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </div> <!-- / #container --> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> </form> <?php }
function optionsframework_page() { $return = optionsframework_fields(); settings_errors(); ?> <div class="wrap"> <?php echo get_screen_icon($screen = 'settings'); ?> <div class="extern-links"> <a class="icon-a icon-gallery" href='#' ><span class="icon"><span>Themes gallery</span></span></a> <a class="icon-a icon-support" href='#' ><span class="icon"><span>Support</span></span></a> <a class="icon-a icon-documentation" href='#' ><span class="icon"><span>Documentation</span></span></a> </div> <br class="clear" /> <h2 class="nav-tab-wrapper"> <?php echo $return[1]; ?> </h2> <div class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php /* Top buttons */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!')); ?> ' );" /> <div class="clear"></div> </div> <?php echo $return[0]; /* Settings */ ?> <?php /* Bottom buttons */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors('options-framework'); ?> <div class="donate-info"> <strong><?php _e('To Activate All Features, Please Upgrade to Pro version!', 'advertica-lite'); ?> </strong><br/> <?php $sktlink = "http://www.sketchthemes.com/themes/advertica-the-uber-clean-multipurpose-wordpress-theme/"; $skttest_drive = "http://trial.sketchthemes.com/wp-signup.php"; ?> <a title="<?php esc_attr_e('Upgrade to Pro', 'advertica-lite'); ?> " href="<?php echo esc_url($sktlink); ?> " target="_blank" class="upgrade"><?php _e('Upgrade to Pro', 'advertica-lite'); ?> </a> <a title="<?php esc_attr_e('Setup Instructions', 'advertica-lite'); ?> " href="<?php echo get_template_directory_uri() . '/Installation_Instructions.txt'; ?> " target="_blank" class="donate"><?php _e('Setup Instructions', 'advertica-lite'); ?> </a> <?php $sktratelink = "http://wordpress.org/support/view/theme-reviews/advertica-lite"; ?> <a title="<?php esc_attr_e('Rate Advertica Lite', 'advertica-lite'); ?> " href="<?php echo esc_url($sktratelink); ?> " target="_blank" class="review"><?php _e('Rate Advertica Lite', 'advertica-lite'); ?> </a> <a title="<?php _e('Test Drive', 'convac-lite'); ?> " href="<?php echo esc_url($skttest_drive); ?> " target="_blank" class="review"><?php _e('Theme Test Drive', 'convac-lite'); ?> </a> <div id="social-share"> <div class="fb-like"> <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FSketchThemes&width&layout=button_count&action=like&show_faces=true&share=false&height=21&appId=333709623346310" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe> </div> <div class="tw-follow" ><a href="https://twitter.com/sketchthemes" class="twitter-follow-button" data-show-count="false" data-size="small">Follow @sketchthemes</a></div> <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> </div> </div> <div id="optionsframework-wrap"> <?php if (isset($advertica_themename)) { ?> <h2><?php _e('Theme Options ', 'advertica-lite'); echo $advertica_themename; ?> </h2> <?php } ?> <!--<h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2>--> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <div id="skt-of-header"><div class="skt-of-logo"></div><h2>SketchThemes Admin Panel</h2></div> <div id="skt-of-body"> <div id="skt-of-sidebar" class="nav-tab-wrapper"><?php echo optionsframework_tabs(); ?> </div> <div id="skt-of-content"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> </div> <!-- / #skt-of-content --> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'optionsframework'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'optionsframework'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'advertica-lite')); ?> ' );" /> <div class="clear"></div> </div> <!-- / #optionsframework-submit --> </div> <!-- / #skt-of-body --> <input type="submit" id="advertica_submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'advertica-lite'); ?> " /> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { settings_errors(); ?> <div id="optionsframework-wrap" class="wrap"> <div class="extern-links"> <?php $locals = ""; if(get_bloginfo("language")=="ru_RU" || get_bloginfo("language")=="es_ES" || get_bloginfo("language")=="de_DE"){ $locals = substr(get_bloginfo("language"), 0, 2)."/"; } echo '<a class="icon-a icon-support" href="http://info.template-help.com/help/'.$locals.'cms-blog-templates/wordpress/wordpress-tutorials/" ><span class="icon"><span>'.theme_locals("support").'</span></span></a>'; echo '<a class="icon-a icon-documentation" href="http://info.template-help.com/help/'.$locals.'wordpress-quick-start-guide.html" ><span class="icon"><span>'.theme_locals("documentation").'</span></span></a>'; ?> </div> <div class="clear"></div> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php echo theme_locals("save_options"); ?>" /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php echo theme_locals("restore_defaults"); ?>" onclick="return confirm( '<?php echo theme_locals("restore_defaults_desc"); ?>' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
/* Add a subpage called "Theme Options" to the appearance menu. */ if (!function_exists('optionsframework_add_page')) { function optionsframework_add_page() { $of_page = add_theme_page('Theme Options', '', 'edit_theme_options', 'options-framework', 'optionsframework_page'); // Adds actions to hook in the required css and javascript add_action("admin_print_styles-{$of_page}", 'optionsframework_load_styles'); add_action("admin_print_scripts-{$of_page}", 'optionsframework_load_scripts'); } } /* Loads the CSS */ function optionsframework_load_styles() { wp_enqueue_style('admin-style', OPTIONS_FRAMEWORK_DIRECTORY . 'css/admin-style.css'); wp_enqueue_style('color-picker', OPTIONS_FRAMEWORK_DIRECTORY . 'css/colorpicker.css'); wp_enqueue_style('engage.itoggle', OPTIONS_FRAMEWORK_DIRECTORY . 'css/engage.itoggle.css'); $_html = ''; $_html .= '<link rel="stylesheet" href="' . site_url() . '/' . WPINC . '/js/thickbox/thickbox.css" type="text/css" media="screen" />' . "\n"; $_html .= '<script type="text/javascript"> var tb_pathToImage = "' . site_url() . '/' . WPINC . '/js/thickbox/loadingAnimation.gif"; var tb_closeImage = "' . site_url() . '/' . WPINC . '/js/thickbox/tb-close.png"; </script>' . "\n"; echo $_html; } /* Loads the javascript */ function optionsframework_load_scripts() { // Inline scripts from options-interface.php add_action('admin_head', 'of_admin_head'); // Enqueued scripts wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('color-picker', OPTIONS_FRAMEWORK_DIRECTORY . 'js/colorpicker.js', array('jquery')); wp_enqueue_script('options-custom', OPTIONS_FRAMEWORK_DIRECTORY . 'js/options-custom.js', array('jquery')); wp_enqueue_script('engage.itoggle', OPTIONS_FRAMEWORK_DIRECTORY . 'js/engage.itoggle.js', array('jquery')); wp_enqueue_script('easing', OPTIONS_FRAMEWORK_DIRECTORY . 'js/easing.js', array('jquery'));
function optionsframework_page() { settings_errors(); ?> <div id="optionsframework-wrap" class="wrap"> <?php screen_icon('themes'); ?> <h2 class="nav-tab-wrapper"> <?php echo optionsframework_tabs(); ?> </h2> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework" class="postbox"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'options_framework_theme'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'options_framework_theme'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme')); ?> ' );" /> <div class="clear"></div> </div> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }
function optionsframework_page() { if (presscore_options_debug()) { $wrap_class = ' of-debug'; } else { $wrap_class = ''; } ?> <div id="optionsframework-wrap" class="wrap<?php echo esc_attr($wrap_class); ?> "> <h1><?php echo esc_html(get_admin_page_title()); ?> </h1> <?php settings_errors('options-framework'); ?> <h2 class="nav-tab-wrapper hide-if-js"><?php echo optionsframework_tabs(); ?> </h2> <?php do_action('optionsframework_before'); ?> <div id="optionsframework-metabox" class="metabox-holder"> <div id="optionsframework"> <form action="options.php" method="post"> <?php settings_fields('optionsframework'); ?> <?php optionsframework_fields(); /* Settings */ ?> <div id="submit-wrap"> <div id="optionsframework-submit"> <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e('Save Options', 'the7mk2'); ?> " /> <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e('Restore Defaults', 'the7mk2'); ?> " onclick="return confirm( '<?php print esc_js(__('Click OK to restore default settings on this page!', 'the7mk2')); ?> ' );" /> <div class="clear"></div> </div> </div> <?php do_action('optionsframework_after_options'); ?> </form> </div> <!-- / #container --> </div> <?php do_action('optionsframework_after'); ?> </div> <!-- / .wrap --> <?php }