本文整理汇总了PHP中cr_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP cr_get_option函数的具体用法?PHP cr_get_option怎么用?PHP cr_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cr_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: circleflip_wc_shop_columns
function circleflip_wc_shop_columns($columns)
{
if (cr_get_option('woocommerce_shop_sidebar')) {
return 2;
}
return 3;
}
示例2: __construct
public function __construct($id_base = false, $block_options = array())
{
parent::__construct('cr_gmap_block', array('tab' => 'Content', 'name' => __('Google Map', 'circleflip'), 'desc' => _x('Adds a dynamic/static google map', 'google maps block description', 'circleflip'), 'size' => 'span6', 'image' => 'google_map.png', 'imagedesc' => 'map.jpg', '_data' => array('settings' => array('mapType' => 'dynamic', 'filters' => false, 'expandable' => false, 'height' => 300, 'filterLabel' => 'Filter'), 'locations' => array())));
$api_key = cr_get_option('google_api_key', self::API_KEY);
add_action('circleflip_aq-page-builder-admin-enqueue', array($this, 'admin_enqueue'));
add_action('circleflip_aq-page-builder-admin-enqueue', array($this, 'print_templates'));
}
示例3: block
function block($instance)
{
extract($instance);
if ($entrance_animation == 'default') {
$entrance_animation = cr_get_option('block_animations');
}
echo '<div class="blockquote ' . esc_attr($entrance_animation) . ' animateCr">' . wpautop(do_shortcode(htmlspecialchars_decode($text))) . '</div>';
}
示例4: block
function block($instance)
{
$defaults = array('text' => '', 'entrance_animation' => '', 'textMarginBottom' => '20');
$instance = wp_parse_args($instance, $defaults);
extract($instance);
if ($entrance_animation == 'default') {
$entrance_animation = cr_get_option('block_animations');
}
echo wpautop('<div class="animateCr ' . esc_attr($entrance_animation) . '" style="margin-bottom:' . esc_attr($textMarginBottom) . 'px;">' . do_shortcode(htmlspecialchars_decode($text)) . '</div>');
}
示例5: block
function block($instance)
{
extract($instance);
if ($entrance_animation == 'default') {
$entrance_animation = cr_get_option('block_animations');
}
echo '<div class="animateCr ' . esc_attr($entrance_animation) . '"><div class="embedBlock iframe_container">' . apply_filters('the_content', $text) . '</div></div>';
?>
<?php
}
示例6: start_el
/**
* @see Walker_Nav_Menu::start_el()
*/
function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0)
{
global $wp_query;
$indent = $depth ? str_repeat("\t", $depth) : '';
$li_attributes = $class_names = $value = '';
$classes = empty($item->classes) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
if ($args->has_children) {
if (cr_get_option('header_builder') == 0) {
$classes[] = 1 > $depth ? 'dropdown' : 'dropdown-submenu';
$li_attributes .= ' data-dropdown="dropdown"';
} else {
$classes[] = 'menu-parent';
}
}
$class_names = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item, $args));
$class_names = $class_names ? ' class="' . esc_attr($class_names) . '"' : '';
$id = apply_filters('nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args);
$id = $id ? ' id="' . esc_attr($id) . '"' : '';
$output .= $indent . '<li' . $id . $value . $class_names . $li_attributes . '>';
$attributes = $item->attr_title ? ' title="' . esc_attr($item->attr_title) . '"' : '';
$attributes .= $item->target ? ' target="' . esc_attr($item->target) . '"' : '';
$attributes .= $item->xfn ? ' rel="' . esc_attr($item->xfn) . '"' : '';
$attributes .= $item->url ? ' href="' . esc_attr($item->url) . '"' : '';
if (cr_get_option('header_builder') == 0) {
$attributes .= $args->has_children ? ' class="dropdown-toggle"' : '';
}
$arrowAicon;
if (cr_get_option('header_builder') == 0) {
if (defined('ICL_LANGUAGE_CODE') && 'ar' === ICL_LANGUAGE_CODE) {
$arrowAicon = ' <span class="icon-left-open menuArrowRight"></span>';
} else {
$arrowAicon = ' <span class="icon-right-open menuArrowRight"></span>';
}
} else {
if (defined('ICL_LANGUAGE_CODE') && 'ar' === ICL_LANGUAGE_CODE) {
$arrowAicon = ' <i class="icon-left-open sub-arrow"></i>';
} else {
$arrowAicon = ' <i class="icon-right-open sub-arrow"></i>';
}
}
$item_output = $args->before . '<a' . $attributes . '>';
$item_output .= $args->link_before . apply_filters('the_title', $item->title, $item->ID) . $args->link_after;
if (cr_get_option('header_builder') == 0) {
$item_output .= ($args->has_children and 1 > $depth) ? ' <b class="icon-down-open menuArrowDown"></b>' : '';
} else {
$item_output .= ($args->has_children and 1 > $depth) ? ' <i class="icon-down-open parent-arrow"></i>' : '';
}
$item_output .= ($args->has_children and 1 <= $depth) ? $arrowAicon : '';
$item_output .= '</a>' . $args->after;
$output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args);
}
示例7: block
public function block($instance)
{
extract($instance);
if ($entrance_animation == 'default') {
$entrance_animation = cr_get_option('block_animations');
}
$this->enqueue_view_Dropcap_script();
if ($shape == '0') {
echo '<div class="dropcapText animateCr ' . esc_attr($entrance_animation) . '">' . $text . '</div>';
} else {
if ($shape == '1') {
echo '<div class="dropcapLight animateCr ' . esc_attr($entrance_animation) . '">' . $text . '</div>';
}
}
}
示例8: circleflip_cp_loadmore
function circleflip_cp_loadmore()
{
add_filter('circleflip_post_format_gallery_html', 'circleflip_gallery_circleformat', 10, 5);
add_filter('circleflip_post_format_video_html', 'circleflip_video_circleformat', 10, 5);
add_filter('circleflip_post_format_standard_html', 'circleflip_standard_circleformat', 10, 5);
add_filter('circleflip_post_format_audio_html', 'circleflip_audio_circleformat', 10, 5);
add_filter('circleflip_post_format_media_size', 'circleflip_full_video_size', 10, 5);
add_filter('circleflip_post_format_meta', 'circleflip_gallery_layout', 10, 5);
$post_or_portfolio = isset($_POST['post_or_portfolio']) && 'portfolio' == $_POST['post_or_portfolio'] ? 'circleflip-portfolio' : 'post';
$cat_key = 'post' == $post_or_portfolio ? 'cat' : 'tax_query';
if ('circleflip-portfolio' == $post_or_portfolio) {
$tax_query = array(array('taxonomy' => 'circleflip-portfolio-cats', 'field' => 'id', 'terms' => isset($_POST['cat_id']) ? explode(',', $_POST['cat_id']) : array()));
} else {
$tax_query = isset($_POST['cat_id']) ? $_POST['cat_id'] : '';
}
switch ($_POST['post_type']) {
// Latest
case '0':
$args = array('posts_per_page' => $_POST['postsnumber'], $cat_key => $tax_query, 'post_type' => $post_or_portfolio, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $_POST['pageNumber'], 'post_status' => 'publish');
break;
// Popular
// Popular
case '1':
$args = array('posts_per_page' => $_POST['postsnumber'], 'post_type' => $post_or_portfolio, 'orderby' => 'post__in', 'post_status' => 'publish', $cat_key => $tax_query, 'post__in' => $wpdb->get_col("SELECT post_id, COUNT(*) as total FROM views_count WHERE 1 = 1 GROUP BY post_id ORDER BY total {$post_order}"), 'paged' => $_POST['pageNumber'], 'order' => 'DESC');
break;
default:
$args = array('posts_per_page' => $_POST['postsnumber'], $cat_key => $tax_query, 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC', 'paged' => $_POST['pageNumber'], 'post_status' => 'publish');
break;
}
if (empty($_POST['cat_id'])) {
unset($args[$cat_key]);
}
$output = circleflip_query($args);
foreach ($output as $post) {
if (has_post_thumbnail($post->ID)) {
$image_id = get_post_thumbnail_id($post->ID);
$image_attributes = wp_get_attachment_image_src($image_id, 'circle-posts');
$image = '<div class="circleAnimationImage" style="background-image: url(' . $image_attributes[0] . ')"></div>';
} else {
$image = '<div class="circleAnimationImage" style="background-image: url(' . cr_get_option('post_default', '') . ')"></div>';
}
$post->postData = '<div class="' . $_POST['layout'] . ' circlePost animate_CF"><div class="circleAnimation ' . $_POST['animation'] . '">' . $image . '<div class="circleAnimation ' . $_POST['animation'] . '">' . circleflip_get_post_format_media($post->ID, 'circle-posts', 'my_unique_circle_posts') . '</div></div></div>';
}
echo json_encode($output);
die;
}
示例9: block
function block($instance)
{
$defaults = array('tabs' => array(1 => array('question' => 'Question', 'answer' => 'Answer', 'category' => 'Category', 'entrance_animation' => '')), 'type' => 'tab', 'entrance_animation' => '');
$instance = wp_parse_args($instance, $defaults);
extract($instance);
$this->enqueue_scripts();
$nav_categories = array();
foreach ($tabs as $tab) {
$nav_categories = array_merge($nav_categories, explode(',', $tab['category']));
}
$nav_categories = array_map('strtolower', $nav_categories);
$nav_categories = array_map('trim', $nav_categories);
$nav_categories = array_unique($nav_categories);
if ($entrance_animation == 'default') {
$entrance_animation = cr_get_option('block_animations');
}
?>
<div class="animateCr <?php
echo esc_attr($entrance_animation);
?>
">
<div class="row faqContainer">
<!-- CATEGORY FILTERS -->
<ul class="<?php
echo esc_attr($size);
?>
clearfix filter-options">
<li class="active faqNavList" data-dimension="category" data-filter="*"><?php
echo _e('All', 'circleflip-builder');
?>
</li>
<?php
foreach ($nav_categories as $v) {
?>
<?php
$categories = array_map('strtolower', explode(',', $v));
?>
<?php
$categories = array_map('trim', $categories);
?>
<?php
$categories = array_map('sanitize_title_with_dashes', $categories);
?>
<li class="faqNavList" data-dimension="category" data-filter=".category-<?php
echo esc_attr(urldecode($categories[0]));
?>
">
<?php
echo urldecode($categories[0]);
?>
</li>
<?php
}
?>
</ul>
<?php
foreach ($tabs as $tab) {
?>
<?php
$categories = array_map('strtolower', explode(',', $tab['category']));
?>
<?php
$categories = array_map('trim', $categories);
?>
<?php
$categories = array_map('sanitize_title_with_dashes', $categories);
?>
<div class="<?php
echo $size;
?>
faqItem category-<?php
echo urldecode(implode(' category-', (array) $categories));
?>
">
<div class="aq_block_toggles_wrapper">
<div class="aq_block_toggle">
<h6 class="tab-head clearfix"><?php
echo $tab['question'];
?>
<div><span></span></div></h6>
<div class="tab-body closeTab cf">
<p><?php
echo do_shortcode(htmlspecialchars_decode($tab['answer']));
?>
</p>
</div>
</div>
</div>
</div>
<?php
}
?>
<div class="span12 m-span3 shuffle__sizer"></div>
</div>
</div>
<?php
}
示例10: circleflip_get_default_image
function circleflip_get_default_image($size = 'full')
{
$url = cr_get_option('post_default');
if ($url) {
$id = circleflip_get_image_id($url);
if ($id) {
return wp_get_attachment_image($id, $size);
}
}
return '';
}
示例11: block
function block($instance)
{
extract($instance);
if ($entrance_animation == 'default') {
$entrance_animation = cr_get_option('block_animations');
}
$titleIconClass;
switch ($titleIcon) {
case 0:
$titleIconClass = 'withoutIcon';
break;
case 1:
$titleIconClass = 'withIcon';
break;
default:
$titleIconClass = 'withoutIcon';
}
$titleIconHead = '';
if ($titleIconClass == 'withIcon') {
$iconHead;
if (defined("ICL_LANGUAGE_CODE") && "ar" === ICL_LANGUAGE_CODE) {
$iconHead = "icon-left-open-mini";
} else {
$iconHead = "icon-right-open-mini";
}
$titleIconHead = '<div class="headerDot"><span class="' . esc_attr($iconHead) . '"></span></div>';
}
?>
<div class="contactDetailsSection">
<?php
if (isset($title) && !empty($title)) {
?>
<div class="titleBlock"><h3 class="grid3"><?php
echo $titleIconHead . do_shortcode(htmlspecialchars_decode($title));
?>
</h3></div>
<?php
}
?>
<?php
foreach ($tabs as $tab) {
?>
<?php
if (isset($tab['title_branch']) && !empty($tab['title_branch'])) {
?>
<h5 class="titleBranch"><?php
echo esc_html($tab['title_branch']);
?>
</h5>
<?php
}
?>
<?php
if (isset($tab['text']) && !empty($tab['text'])) {
?>
<p class="grid2 contactText"><?php
echo do_shortcode(htmlspecialchars_decode($tab['text']));
?>
</p>
<?php
}
?>
<ul class="contactDetails">
<?php
if (isset($tab['postal']) && !empty($tab['postal'])) {
?>
<li class="animateCr <?php
echo esc_attr($entrance_animation);
?>
">
<p>
<span><?php
_e('Postal Code: ', 'circleflip');
?>
</span><?php
echo do_shortcode(htmlspecialchars_decode($tab['postal']));
?>
</p>
</li>
<?php
}
?>
<?php
if (isset($tab['tel']) && !empty($tab['tel'])) {
?>
<li class="animateCr <?php
echo esc_attr($entrance_animation);
?>
">
<p>
<span><?php
_e('Telephone: ', 'circleflip');
?>
</span><?php
echo do_shortcode(htmlspecialchars_decode($tab['tel']));
?>
</p>
</li>
//.........这里部分代码省略.........
示例12: admin_enqueue
/**
* Register and enqueueu styles/scripts
*
* @since 1.0.0
* @todo min versions
*/
function admin_enqueue()
{
$wordpress_version = get_bloginfo('version');
// Register 'em
wp_register_style('aqpb-css', $this->url . 'assets/css/aqpb.css', array(), time(), 'all');
wp_register_style('aqpb-blocks-css', $this->url . 'assets/css/aqpb_blocks.css', array(), time(), 'all');
wp_register_style('bootstrap-3-modal', $this->url . 'assets/css/bootstrap.3.modal.css');
wp_register_style('bootstrap-3-tooltip', $this->url . 'assets/css/bootstrap-tooltip.css');
wp_register_style('bootstrap-3-popover', $this->url . 'assets/css/bootstrap-popover.css');
wp_register_style('jquery-ui', 'http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css');
wp_register_script('bootstrap-3-modal', $this->url . 'assets/js/bootstrap.3.modal.js', array('jquery'));
wp_register_script('crdn-stackable-modals', $this->url . 'assets/js/jquery.stackablemodal.js', array('jquery', 'bootstrap-3-modal'), null, true);
wp_register_script('crdn-field-dependency', $this->url . 'assets/js/jquery.crdn.fielddependency.min.js', array('jquery', 'underscore'), null, true);
wp_register_script('bootstrap-js-tooltip', $this->url . 'assets/js/tooltip.js', array('jquery'), time(), true);
wp_register_script('bootstrap-3-popover', $this->url . 'assets/js/bootstrap.3.popover.js', array('jquery', 'bootstrap-js-tooltip'));
wp_register_script('cr_undo', $this->url . 'assets/js/cr_undo.js', array('jquery', 'crdn-stackable-modals', 'crdn-field-dependency'), time(), true);
if (version_compare($wordpress_version, '3.9', '>=')) {
wp_register_script('aqpb-js', $this->url . 'assets/js/aqpb3.9.js', array('jquery', 'crdn-stackable-modals', 'crdn-field-dependency', 'cr_undo'), time(), true);
} else {
wp_register_script('aqpb-js', $this->url . 'assets/js/aqpb.js', array('jquery', 'crdn-stackable-modals', 'crdn-field-dependency', 'cr_undo'), time(), true);
}
wp_register_script('aqpb-fields-js', $this->url . 'assets/js/aqpb-fields.js', array('jquery'), time(), true);
// Enqueue 'em
wp_enqueue_style('aqpb-css');
wp_enqueue_style('aqpb-blocks-css');
wp_enqueue_style('wp-color-picker');
wp_enqueue_style('bootstrap-3-modal');
wp_enqueue_style('bootstrap-3-tooltip');
wp_enqueue_style('bootstrap-3-popover');
wp_enqueue_style('jquery-ui');
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-sortable');
wp_enqueue_script('jquery-ui-tabs');
wp_enqueue_script('jquery-ui-resizable');
wp_enqueue_script('jquery-ui-draggable');
wp_enqueue_script('jquery-ui-droppable');
wp_enqueue_script('iris');
wp_enqueue_script('wp-color-picker');
wp_enqueue_script('bootstrap-js-tooltip');
wp_enqueue_script('bootstrap-3-popover');
wp_enqueue_script('cr_undo');
wp_enqueue_script('aqpb-js');
wp_enqueue_script('aqpb-fields-js');
$googleFonts = implode('|', cr_get_option('cust_font', array()));
if ($googleFonts != '') {
$link = 'http://fonts.googleapis.com/css?family=' . preg_replace("/ /", "+", $googleFonts);
wp_register_style('google_fonts', $link);
wp_enqueue_style('google_fonts');
}
wp_localize_script('aqpb-js', 'global_creiden', array('ajax_url' => admin_url('admin-ajax.php'), 'template_dir' => get_template_directory_uri(), 'activate_revisions' => cr_get_option('activate_revisions_history'), 'google_fonts' => cr_get_option('cust_font')));
wp_localize_script('cr_undo', 'global_creiden', array('ajax_url' => admin_url('admin-ajax.php'), 'template_dir' => get_template_directory_uri()));
// Media library uploader
wp_enqueue_script('thickbox');
wp_enqueue_style('thickbox');
wp_enqueue_script('media-upload');
wp_enqueue_media();
// Hook to register custom style/scripts
do_action('circleflip_aq-page-builder-admin-enqueue');
}
示例13: wp_nav_menu
<?php
wp_nav_menu(array('theme_location' => 'header-menu', 'menu_class' => 'clearfix menuContent', 'depth' => 13, 'fallback_cb' => false, 'walker' => new Circleflip_Nav_Walker()));
?>
</div>
</div>
<!-- Menu End -->
<!-- Bottom Items End -->
<div class="sideBottom">
<!-- Header Ads -->
<div class="headerImage">
<a href="<?php
echo cr_get_option('header_ad_link');
?>
" target="_blank">
<img src="<?php
echo cr_get_option('header_ad_area');
?>
" width="580" height="300" />
</a>
</div>
<!-- Header Ads -->
</div>
<!-- Bottom Items End -->
</div>
</div>
</div>
</div>
<!-- Main Header End -->
<?php
示例14: tha_content_after
?>
</div><!-- #content -->
<?php
tha_content_after();
?>
</section><!-- #primary -->
<?php
if ($position_class == 'left' || $position_class == 'right') {
?>
<section class="span3">
<aside class="sidebar <?php
echo esc_attr($position_class);
?>
">
<ul>
<?php
dynamic_sidebar(cr_get_option('author_sidebar'));
?>
</ul>
</aside>
</section>
<?php
}
?>
</div>
</div>
<?php
get_footer();
/* End of file template-blog.php */
/* Location: ./wp-content/themes/circleflip/_full_width.php */
示例15: circleflip_optionsframework_options
/**
* Defines an array of options that will be used to generate the settings page and be saved in the database.
* When creating the 'id' fields, make sure to use all lowercase and no spaces.
*
* If you are making your theme translatable, you should replace 'options_framework_theme'
* with the actual text domain for your theme. Read more:
* http://codex.wordpress.org/Function_Reference/load_theme_textdomain
*/
function circleflip_optionsframework_options()
{
global $fonts_global_array;
$args = array('post_type' => 'ml-slider', 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'ASC', 'posts_per_page' => -1);
$the_query = new WP_Query($args);
while ($the_query->have_posts()) {
$the_query->the_post();
$sliders[$the_query->post->ID] = get_the_title();
}
if (!isset($sliders)) {
$sliders = array();
}
array_key_exists(0, $sliders) ? $sliders[$the_query->post->ID + 1] = 'ultimate' : ($sliders['ultimate'] = 'ultimate');
array_key_exists(1, $sliders) ? $sliders[$the_query->post->ID + 2] = 'posts' : ($sliders['posts'] = 'posts');
array_key_exists(2, $sliders) ? $sliders[$the_query->post->ID + 3] = '3D Slider' : ($sliders['3D'] = '3D Slider');
array_key_exists(3, $sliders) ? $sliders[$the_query->post->ID + 4] = 'Elastic Slider' : ($sliders['Elastic'] = 'Elastic Slider');
// Background Defaults
$background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
// Typography Defaults
$typography_defaults = array('size' => '16px', 'face' => 'Arial', 'style' => 'Normal', 'color' => '#bada55');
// Typography Options
$my_fonts = array('Arial' => 'Arial', 'Times New Roman' => 'Times New Roman', 'DroidArabicKufi' => 'DroidArabicKufi', 'SourceSansSemiBold' => 'SourceSansSemiBold', 'sourceSans' => 'sourceSans');
$typography_options = array('sizes' => range(6, 71), 'faces' => array_merge($my_fonts, $fonts_global_array), 'styles' => array('Normal' => 'Normal', 'Italic' => 'Italic'), 'weights' => array('Normal' => 'Normal', 'Bold' => 'Bold'), 'color' => TRUE);
// header builder names
$hb_names = get_option('hb_names');
//side bars array
$sideBarsArray = array();
$side_bars = cr_get_option("sidebars");
if (isset($side_bars) && is_array($side_bars)) {
foreach ($side_bars as $sidebar) {
$sideBarsArray[$sidebar] = $sidebar;
}
}
// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// Get all posts in the website
$allPosts = get_posts(array('numberposts' => -1));
$postNames = array();
foreach ($allPosts as $key => $post) {
$postNames[$post->ID] = $post->post_title . " on " . date("F j, Y g:i a", strtotime($post->post_date)) . " by " . get_user_by('id', $post->post_author)->display_name;
}
wp_reset_postdata();
$pages = get_pages();
if (isset($pages) && is_array($pages)) {
foreach ($pages as $page) {
$pagesList[$page->ID] = $page->post_title;
}
}
wp_reset_postdata();
// Pull all tags into an array
$options_tags = array();
$options_tags_obj = get_tags();
foreach ($options_tags_obj as $tag) {
$options_tags[$tag->term_id] = $tag->name;
}
// Pull all the pages into an array
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/creiden-framework/images/';
$imagepathinc = get_template_directory_uri() . '/creiden-framework/inc/images/';
$options = array();
/* ========================================================================================================================
Start of Options
======================================================================================================================== */
/* ========================================================================================================================
General Settings Tab
======================================================================================================================== */
$options[] = array('name' => 'General Settings', 'icon_name' => $imagepathinc . 'general.png', 'type' => 'heading');
/* ========================================================================================================================
Header Options
======================================================================================================================== */
$options[] = array('name' => 'Header Settings', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
$options[] = array('name' => 'Header Builder', 'desc' => 'To Enable the header builder and disable the old styles', 'id' => 'header_builder', 'class' => 'header_builder', 'std' => '0', 'type' => 'checkbox');
$options[] = array('name' => 'Header Style', 'desc' => 'Choose the header style', 'id' => 'header_style', 'std' => 'style1', 'class' => 'header_images', 'type' => "images", 'options' => array('style1' => $imagepath . 'Header1.png', 'style2' => $imagepath . 'Header2.png', 'style4' => $imagepath . 'Header4.png', 'style5' => $imagepath . 'Header5.png', 'style6' => $imagepath . 'Header6.png', 'style7' => $imagepath . 'Header7.png', 'style8' => $imagepath . 'Header8.png', 'style9' => $imagepath . 'Header9.png'));
if (circleflip_valid($hb_names)) {
$options[] = array('name' => 'Global Header', 'desc' => 'Choose the global header setting', 'id' => 'global_header_builder', 'type' => "select", 'options' => $hb_names);
$options[] = array('name' => 'Global RTL Header', 'desc' => 'Choose the global RTL header setting', 'id' => 'global_header_builder_rtl', 'type' => "select", 'options' => $hb_names);
//.........这里部分代码省略.........