Esempio n. 1
0
function circleflip_wc_shop_columns($columns)
{
    if (cr_get_option('woocommerce_shop_sidebar')) {
        return 2;
    }
    return 3;
}
Esempio n. 2
0
 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'));
 }
 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>';
 }
Esempio n. 4
0
 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>');
 }
Esempio n. 5
0
    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 
    }
Esempio n. 6
0
 /**
  * @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);
 }
 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>';
         }
     }
 }
Esempio n. 8
0
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;
}
Esempio n. 9
0
        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 
        }
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 '';
}
Esempio n. 11
0
    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>
				 <?php 
            }
            ?>

				 <?php 
            if (isset($tab['fax']) && !empty($tab['fax'])) {
                ?>
					<li class="animateCr <?php 
                echo esc_attr($entrance_animation);
                ?>
">
						<p>
						<span><?php 
                _e('Fax: ', 'circleflip');
                ?>
</span><?php 
                echo do_shortcode(htmlspecialchars_decode($tab['fax']));
                ?>
					 	</p>
					</li>
				 <?php 
            }
            ?>

				 <?php 
            if (isset($tab['mail']) && !empty($tab['mail'])) {
                ?>
					<li class="animateCr <?php 
                echo esc_attr($entrance_animation);
                ?>
">
						<p class="contactMailText">
						<span><?php 
                _e('Mail: ', 'circleflip');
                ?>
</span><a href="mailto:<?php 
                echo do_shortcode(htmlspecialchars_decode($tab['mail']));
                ?>
"><?php 
                echo do_shortcode(htmlspecialchars_decode($tab['mail']));
                ?>
</a>
					 	</p>
					</li>
				 <?php 
            }
            ?>
			</ul>
			<?php 
        }
        ?>
		</div>
		<?php 
    }
 /**
  * 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');
 }
Esempio n. 13
0
							<?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 
Esempio n. 14
0
?>
			</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 */
Esempio n. 15
0
/**
 * 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);
    }
    $options[] = array('name' => 'Header Sticky', 'desc' => 'To enable Sticky Header', 'id' => 'sticky_header', 'class' => 'sticky_header', 'std' => '0', 'type' => 'checkbox');
    $options[] = array('name' => 'Top Left Area Settings', 'desc' => 'Choose what to add in the top left area', 'id' => 'top_left_area_settings', 'std' => 'contact', 'type' => "select", 'options' => array('contact' => 'Contact', 'social' => 'Social Icons', 'main_navigation' => 'Main Navigation', 'header_menu' => 'Header Menu'));
    $options[] = array('name' => 'Top Right Area Settings', 'desc' => 'Choose what to add in the top right area', 'id' => 'top_right_area_settings', 'std' => 'social', 'type' => "select", 'options' => array('contact' => 'Contact', 'social' => 'Social Icons', 'main_navigation' => 'Main Navigation', 'header_menu' => 'Header Menu'));
    $options[] = array('name' => 'Ad Area Settings', 'desc' => 'Choose what to add in the Ad area', 'id' => 'top_area_header_settings', 'std' => 'main_navigation', 'type' => "select", 'options' => array('ad' => 'Advertisment', 'social' => 'Social Icons', 'main_navigation' => 'Main Navigation', 'header_menu' => 'Header Menu'));
    $options[] = array('name' => 'Header Revolution Slider Shortcode', 'desc' => 'Please enter the Overlay Header Revolution Slider Shortcode', 'id' => 'overlayheader_slider', 'std' => '', 'type' => "text");
    $options[] = array('name' => 'Contact info', 'desc' => 'Write a brief for your contact info to appear in the header', 'id' => 'header_contact_settings', 'std' => 'for any inquiry: 000-111-222-333 | info@circleflip.com', 'type' => "text");
    $options[] = array('name' => 'Contact Link', 'desc' => 'where do you want to link your contact text', 'id' => 'header_contact_link_settings', 'std' => '', 'type' => "text");
    $options[] = array('name' => 'Ad Area Image', 'desc' => 'Add the image of the ad', 'id' => 'header_ad_area', 'class' => 'ad_area', 'std' => '', 'type' => 'upload');
    $options[] = array('name' => 'Ad Link', 'desc' => 'Add the link of the ad area', 'id' => 'header_ad_link', 'std' => '#', 'type' => "text");
    $options[] = array('name' => 'Header height', 'desc' => 'height in pixels (After changing this please refresh the window for changes to take effect on Logo Builder)', 'id' => 'header_height', 'std' => 137, 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Search Area', 'desc' => 'Show the search area in the header', 'id' => 'search_area', 'class' => 'mini themeoptionsHidden showSearch', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Breaking News', 'desc' => 'Show the breaking area in the header', 'id' => 'breaking_area', 'class' => 'mini themeoptionsHidden showBreak', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Breaking Title', 'desc' => 'Text of the breaking area title', 'id' => 'breaking_title', 'std' => 'Breaking', 'class' => 'mini themeoptionsHidden showBreak', 'type' => 'text');
    $options[] = array('name' => 'What to show', 'desc' => 'Select the content of the Breaking Area', 'id' => 'breaking_content', 'class' => 'themeoptionsHidden showBreak', 'std' => 'posts', 'type' => 'radio', 'options' => array('posts' => 'Latest Posts', 'custom' => 'Custom News'));
    $options[] = array('name' => 'Number of posts', 'desc' => 'Enter number of posts to show in breaking area', 'id' => 'number_breaking_posts', 'class' => 'themeoptionsHidden showBreak', 'std' => 10, 'type' => 'text');
    $options[] = array('name' => 'Breaking Area Selected Categories', 'desc' => 'Select the categories you want', 'id' => 'breaking_selected_category', 'class' => 'themeoptionsHidden showBreak', 'type' => 'selectmultiple', 'options' => $options_categories);
    $options[] = array('name' => 'Custom Content', 'desc' => 'Put the sentences you want to show in the Breaking Area here separated by commas "," ', 'id' => 'custome_breaking', 'class' => 'themeoptionsHidden showBreak', 'std' => 'Lorem Ipsum, Lorem Ipsum', 'type' => 'textarea');
    /* ========================================================================================================================
    
    			Social Icons Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Social Icons Settings', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Social Links', 'desc' => 'add your social links', 'id' => 'social_urls', 'type' => 'cust_social', 'std' => array());
    /* ========================================================================================================================
    
    			Footer Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Footer Settings', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Copy Rights Text', 'desc' => 'Enter the text you want to show in your footer here', 'id' => 'copy_rights_text', 'std' => 'All rights Reserved', 'type' => 'text');
    $options[] = array('name' => 'Footer Widgets Width', 'desc' => 'Choose the maximum number of widgets', 'id' => 'max_number_widgets', 'type' => 'select', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'));
    /* ========================================================================================================================
    
    			Logo Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Logo', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Logo Builder', 'desc' => 'Preferred Logo Size is 194px X 90px ', 'id' => 'theme_logo', 'std' => '', 'class' => 'theme_logo', 'type' => 'upload');
    $options[] = array('name' => 'Preview Logo Position and Size', 'desc' => 'Check here', 'id' => 'logoWrapper', 'class' => 'builder', 'type' => 'logo_builder');
    $options[] = array('id' => 'logo_width', 'class' => 'mini', 'placeholder' => 'Width', 'std' => '270', 'type' => 'text');
    $options[] = array('id' => 'logo_height', 'class' => 'mini', 'placeholder' => 'Height', 'std' => '137', 'type' => 'text');
    $options[] = array('id' => 'logo_top', 'class' => 'mini', 'placeholder' => 'Top', 'std' => '0', 'type' => 'text');
    $options[] = array('id' => 'logo_left', 'class' => 'mini', 'placeholder' => 'Left', 'std' => '0', 'type' => 'text');
    $options[] = array('desc' => 'Aspect Ratio', 'id' => 'logo_aspectRatio', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('id' => 'resetLogoSize', 'text' => 'Reset Size', 'type' => 'button');
    $options[] = array('name' => 'Logo Wrapper Width', 'desc' => 'Width in pixels (After changing this please refresh the window for changes to take effect on Logo Builder)', 'id' => 'logo_wrapper_width', 'std' => 270, 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Retina Logo', 'desc' => 'Dimensions should be double of the normal logo (Preferred Size is 540px X 274px) and must be named filename@2x.png', 'id' => 'retina_logo', 'std' => '', 'class' => 'theme_logo', 'type' => 'upload');
    $options[] = array('name' => 'RTL Retina Logo', 'desc' => 'Dimensions should be double of the normal logo (Preferred Size is 540px X 274px) and must be named filename@2x.png', 'id' => 'rtl_retina_logo', 'std' => '', 'class' => 'theme_logo', 'type' => 'upload');
    if (!function_exists('wp_site_icon')) {
        $options[] = array('name' => 'Favicon', 'desc' => 'Upload your favicon here (Please use *.ico file type only)', 'id' => 'favicon', 'std' => '', 'type' => 'upload');
    }
    /* ========================================================================================================================
    
    			Advanced Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Advanced', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Responsive', 'desc' => 'To enable viewing this website normally on a mobile device, mark this option', 'id' => 'responsive', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'RTL Website', 'desc' => 'To enable viewing this website with RTL languages', 'id' => 'rtl', 'class' => 'mini', 'std' => '0', 'type' => 'checkbox');
    $options[] = array('name' => 'Nice scroll bar', 'desc' => 'Enable nice scroll bar for all pages', 'id' => 'nice_scroll_bar', 'class' => 'mini', 'std' => '', 'type' => 'checkbox');
    $options[] = array('name' => 'Custom CSS Code', 'desc' => 'Paste any CSS rules that you want to add to the theme here.', 'id' => 'custom_css', 'std' => '', 'type' => 'textarea');
    $options[] = array('name' => 'Custom Javascript code', 'desc' => 'Paste any JS that you want to add to the theme here.', 'id' => 'custom_js', 'std' => '', 'type' => 'textarea');
    $options[] = array('name' => 'Custom Code', 'desc' => 'Paste any code that you want to add to the theme here, mainly used when you have a noscript tag or html that you want to place directly to the theme', 'id' => 'custom_code', 'std' => '', 'type' => 'textarea');
    $options[] = array('name' => 'Login Page Logo', 'desc' => 'Upload your preferred image for Wordpress Login page here', 'id' => 'login_image', 'type' => 'upload');
    $options[] = array('name' => 'Default Blocks Animations', 'desc' => 'Choose the default animation for the blocks', 'id' => 'block_animations', 'type' => 'select', 'options' => array('noanimation' => 'no animation', 'cr_left' => 'Fade To Left', 'cr_right' => 'Fade To Right', 'cr_top' => 'Fade To Up', 'cr_bottom' => 'Fade To Down', 'cr_popup' => 'Popout', 'cr_fade' => 'Fade in'));
    $options[] = array('name' => 'Activate the revisions history', 'desc' => 'Do you want to activate the revisions history, note: enabling it makes publishing pages a little bit slower however it is safer to your content builder data', 'id' => 'activate_revisions_history', 'type' => 'select', 'options' => array('Yes' => 'Yes', 'No' => 'No'));
    /* ========================================================================================================================
    
    		Pages Settings Tab
    
    		======================================================================================================================== */
    $options[] = array('name' => 'Pages Settings', 'icon_name' => $imagepathinc . 'pages.png', 'type' => 'heading');
    /* ========================================================================================================================
    
    			Blog Page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Template Blog Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Posts per Page', 'desc' => 'Number of posts to show in the blog page', 'id' => 'blog_posts_per_page', 'std' => '5', 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Selected Category', 'desc' => 'Select the category you want to show in the Blog Page', 'id' => 'blog_selected_cat', 'type' => 'selectmultiple', 'options' => $options_categories);
    $options[] = array('name' => 'Display Views Count', 'desc' => 'View count of comments/views of the posts shown in Blog page', 'id' => 'blog_views_count', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Date', 'desc' => 'View date of the posts shown in blog page', 'id' => 'blog_date', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Author Name', 'desc' => 'View Author name of the post shown in blog page', 'id' => 'blog_author', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Order Direction', 'desc' => 'Order direction for posts in Blog page ', 'id' => 'blog_posts_order_direction', 'std' => 'DESC', 'type' => 'select', 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'));
    $options[] = array('name' => 'Read More button Text', 'desc' => 'Text shown under the arrow which opens the post', 'id' => 'blog_read_more', 'std' => 'More', 'class' => 'mini', 'type' => 'text');
    /* ========================================================================================================================
    
    			Tags page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Tags Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => "Page Layout", 'desc' => "Please choose the preferred layout for Tags page", 'id' => "tags_layout", 'std' => "right", 'type' => "images", 'options' => array('none' => $imagepath . '/1col.png', 'left' => $imagepath . '/2cl.png', 'right' => $imagepath . '/2cr.png'));
    $options[] = array('name' => 'Tags page Sidebar', 'desc' => 'Select the side bar you want to view in the Tags page', 'id' => 'tags_sidebar', 'type' => 'select', 'options' => $sideBarsArray);
    $options[] = array('name' => 'Posts per Page', 'desc' => 'Number of posts to show in the tags page', 'id' => 'tags_posts_per_page', 'std' => '5', 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Order Direction', 'desc' => 'Order direction for posts in tags page ', 'id' => 'tags_posts_order_direction', 'std' => 'DESC', 'type' => 'select', 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'));
    /* ========================================================================================================================
    
    			Search Results Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Search Results Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => "Page Layout", 'desc' => "Please choose the preferred layout for search page", 'id' => "search_layout", 'std' => "right", 'type' => "images", 'options' => array('none' => $imagepath . '/1col.png', 'left' => $imagepath . '/2cl.png', 'right' => $imagepath . '/2cr.png'));
    $options[] = array('name' => 'search page Sidebar', 'desc' => 'Select the side bar you want to view in the search page', 'id' => 'search_sidebar', 'type' => 'select', 'options' => $sideBarsArray);
    $options[] = array('name' => 'Posts per Page', 'desc' => 'Number of posts to show in the search page', 'id' => 'search_posts_per_page', 'std' => '5', 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Order Direction', 'desc' => 'Order direction for posts in search page ', 'id' => 'search_posts_order_direction', 'std' => 'DESC', 'type' => 'select', 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'));
    /* ========================================================================================================================
    
    			Category Page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Category Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => "Page Layout", 'desc' => "Please choose the preferred layout for category page", 'id' => "category_layout", 'std' => "right", 'type' => "images", 'options' => array('none' => $imagepath . '/1col.png', 'left' => $imagepath . '/2cl.png', 'right' => $imagepath . '/2cr.png'));
    $options[] = array('name' => 'Category page Sidebar', 'desc' => 'Select the side bar you want to view in the category page', 'id' => 'category_sidebar', 'type' => 'select', 'options' => $sideBarsArray);
    $options[] = array('name' => 'Number Of Posts Displayed', 'desc' => 'Number of posts to show', 'id' => 'category_posts', 'std' => '5', 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Order Direction', 'desc' => 'Order posts in category page ', 'id' => 'category_posts_order_direction', 'std' => 'DESC', 'type' => 'select', 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'));
    /* ========================================================================================================================
    
    			Author Page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Author Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => "Page Layout", 'desc' => "Please choose the preferred layout for Author page", 'id' => "author_layout", 'std' => "right", 'type' => "images", 'options' => array('none' => $imagepath . '/1col.png', 'left' => $imagepath . '/2cl.png', 'right' => $imagepath . '/2cr.png'));
    $options[] = array('name' => 'Author page Sidebar', 'desc' => 'Select the side bar you want to view in the author page', 'id' => 'author_sidebar', 'type' => 'select', 'options' => $sideBarsArray);
    $options[] = array('name' => 'Number Of Posts Displayed', 'desc' => 'Number of posts to show', 'id' => 'author_posts', 'std' => '5', 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Order Direction', 'desc' => 'Order posts in author page ', 'id' => 'author_posts_order_direction', 'std' => 'DESC', 'type' => 'select', 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'));
    /* ========================================================================================================================
    
    			Post Page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Post Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Style Posts', 'desc' => 'Choose the style of the posts', 'id' => 'style_posts', 'std' => 'fade', 'type' => 'radio', 'options' => array('singlestyle1' => 'Single Style1', 'singlestyle2' => 'Single Style2'));
    $options[] = array('name' => 'Post side Bar Settings', 'desc' => 'Select whether to setup layout settings for each post separately or globally through here', 'id' => 'post_sidebars_option', 'std' => 'meta', 'type' => 'radio', 'options' => array('meta' => 'Use settings from each post separetly (found in the meta box)', 'global' => 'Use global values set here (This will override meta post settings)'));
    $options[] = array('name' => "Post Global Sidebar position", 'desc' => "Please choose the preferred layout for post page (this will override meta settings)", 'id' => "post_layout", 'std' => "none", 'type' => "images", 'options' => array('none' => $imagepath . '/1col.png', 'left' => $imagepath . '/2cl.png', 'right' => $imagepath . '/2cr.png'));
    $options[] = array('name' => 'Post page Global Sidebar', 'desc' => 'Select the side bar you want to view in the post page (this will override meta settings)', 'id' => 'post_sidebar', 'type' => 'select', 'options' => $sideBarsArray);
    $options[] = array('name' => 'Default Post image', 'desc' => 'The image to show if post has no thumbnail (this will only work if post type is not none)', 'id' => 'post_default', 'std' => $imagepathinc . 'defaultImage.png', 'class' => 'theme_logo', 'type' => 'upload');
    $options[] = array('name' => 'Display Post image', 'desc' => 'View Post image/video/slider area', 'id' => 'post_view_image', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Post author details', 'desc' => 'View About Author section', 'id' => 'post_author', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Social Shares icons', 'desc' => 'View Social section', 'id' => 'post_social', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Views Count', 'id' => 'post_views', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Comments Count', 'id' => 'post_comments_count', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display related posts Section', 'desc' => 'Show related posts below the post', 'id' => 'post_related', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Query related posts by', 'id' => 'post_related_query', 'std' => 'category', 'type' => 'select', 'options' => array('category' => 'Category', 'author' => 'Author'));
    $options[] = array('name' => 'Number of related posts to show', 'desc' => 'Type the number of related posts you want to show in this section. Please don&#39;t type (-1) as value', 'id' => 'post_related_number_of_posts', 'std' => '5', 'class' => 'mini', 'type' => 'text');
    $options[] = array('name' => 'Display Wordpress Comments Section', 'id' => 'post_comments_section', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Display Facebook Comments Section', 'id' => 'post_facebook_comments_section', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    /* ========================================================================================================================
    
    			Sitemap Page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Sitemap Page', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Show pages section', 'desc' => 'Show pages sections in the sitemap page', 'id' => 'show_pages_sitemap', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Selected Pages', 'desc' => 'Select the pages you want', 'id' => 'site_map_selected_pages', 'type' => 'selectmultiple', 'options' => $pagesList);
    $options[] = array('name' => 'Show Categories section', 'desc' => 'Show Categories sections in the sitemap page', 'id' => 'show_categories_sitemap', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Selected Categories', 'desc' => 'Select the Categories you want', 'id' => 'site_map_selected_categories', 'type' => 'selectmultiple', 'options' => $options_categories);
    $options[] = array('name' => 'Show posts section', 'desc' => 'Show posts sections in the sitemap page', 'id' => 'show_posts_sitemap', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Selected Posts', 'desc' => 'Select the Posts you want', 'id' => 'site_map_selected_posts', 'type' => 'selectmultiple', 'options' => $postNames);
    $options = apply_filters('circleflip_theme_options_pages_settings', $options);
    /* ========================================================================================================================
    
    			Sliders Page Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Sliders Settings', 'icon_name' => $imagepathinc . 'pages.png', 'type' => 'heading');
    /* ========================================================================================================================
    
    			Create Slider
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Create New Slider', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Create Slider', 'id' => 'create_slider', 'type' => 'create_slider');
    /* ========================================================================================================================
    
    			All Sliders
    
    			======================================================================================================================== */
    foreach (cr_get_option('create_slider', array()) as $key => $value) {
        if (circleflip_valid($value)) {
            $options[] = array('name' => $value . ' Settings', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
            $value = strtolower(str_replace(' ', '_', $value));
            $options[] = array('name' => 'Slider Type', 'id' => $value . 'select_slider', 'desc' => 'Choose Your Slider', 'class' => 'choose_slider', 'type' => 'select', 'options' => array('nivo_slider' => 'Nivo Slider', 'threed_slider' => '3D Slider', 'accordion' => 'Accordion Slider', 'elastic_slider' => 'Elastic Slider', 'vertical_accordion_slider' => 'Vertical Accordion Slider'));
            $options[] = array('name' => 'Slider Settings', 'desc' => 'Add/Remove any slide and click Save Changes to take effect.', 'std' => 1, 'id' => $value, 'type' => 'add_slide', 'slider_items' => array(0 => array('name' => 'Title', 'desc' => 'Enter the slide title', 'id' => $value . '_title', 'class' => 'title', 'std' => 'Title', 'type' => 'text'), 1 => array('name' => 'Text', 'desc' => 'Enter the slide text', 'id' => $value . '_text', 'class' => 'text', 'std' => 'Text', 'type' => 'text'), 2 => array('name' => 'Radio Button', 'desc' => 'Select whether to setup layout settings for each post separately or globally through here', 'id' => $value . '_radio', 'class' => 'radio', 'std' => 'meta', 'type' => 'radio', 'options' => array('meta' => 'Use settings from each post separetly (found in the meta box)', 'global' => 'Use global values set here (This will override meta post settings)')), 3 => array('name' => 'Upper Area Sidebar', 'desc' => 'Select the side bar you want to view in the upper area of the page', 'id' => $value . '_select', 'class' => 'select', 'type' => 'select', 'options' => array('Option_1' => 'Option 1', 'Option_2' => 'Option 2', 'Option_3' => 'Option 3', 'Option_4' => 'Option 4')), 4 => array('name' => 'Slide Image', 'desc' => 'Add Your Image', 'id' => $value . '_image', 'class' => 'slide_image image', 'std' => '', 'type' => 'upload'), 5 => array('name' => 'Slide Thumbnail', 'desc' => 'Add Your Thumbnail Image', 'id' => $value . '_thumb', 'class' => 'slide_image thumb', 'std' => '', 'type' => 'upload'), 6 => array('name' => 'Link', 'desc' => 'Enter the slide link', 'id' => $value . '_link', 'class' => 'slide_link link', 'std' => '', 'type' => 'text'), 7 => array('name' => 'Title Font', 'id' => $value . '_font_title', 'std' => array('size' => '22px', 'face' => 'BebasNeueRegular', 'style' => 'Normal', 'color' => '#b57e65', 'weight' => 'Normal'), 'class' => 'titleFont', 'type' => 'typography', 'options' => $typography_options), 8 => array('name' => 'Text Font', 'id' => $value . '_font_text', 'std' => array('size' => '22px', 'face' => 'BebasNeueRegular', 'style' => 'Normal', 'color' => '#b57e65', 'weight' => 'Normal'), 'class' => 'textFont', 'type' => 'typography', 'options' => $typography_options), 9 => array('name' => 'button1Text', 'desc' => 'Enter button 1 text', 'id' => $value . '_button1', 'class' => 'button1', 'std' => 'Text', 'type' => 'text'), 10 => array('name' => 'button1Link', 'desc' => 'Enter button 1 Link', 'id' => $value . '_button1link', 'class' => 'button1link', 'std' => 'Text', 'type' => 'text'), 11 => array('name' => 'button2Text', 'desc' => 'Enter button 2 text', 'id' => $value . '_button2', 'class' => 'button2', 'std' => 'Text', 'type' => 'text'), 12 => array('name' => 'button2Link', 'desc' => 'Enter button 2 Link', 'id' => $value . '_button2link', 'class' => 'button2link', 'std' => 'Text', 'type' => 'text'), 13 => array('name' => 'button3Text', 'desc' => 'Enter button 3 text', 'id' => $value . '_button3', 'class' => 'button3', 'std' => 'Text', 'type' => 'text'), 14 => array('name' => 'button3Link', 'desc' => 'Enter button 3 Link', 'id' => $value . '_button3link', 'class' => 'button3link', 'std' => 'Text', 'type' => 'text')));
        }
    }
    /* ========================================================================================================================
    
    Style Settings Tab
    
    ======================================================================================================================== */
    $options[] = array('name' => 'Style Settings', 'icon_name' => $imagepathinc . 'style.png', 'type' => 'heading');
    /* ========================================================================================================================
    
    			Style Settings Tab
    
    			======================================================================================================================== */
    $options[] = array('name' => 'General Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Template Color', 'desc' => 'Select the template color you want', 'id' => 'template_color', 'type' => 'select', 'std' => 'red', 'options' => array('red' => 'Red (Default)', 'light_red' => 'Light Red', 'blue' => 'Blue', 'green' => 'Green', 'purple' => 'Purple', 'dark_blue' => 'Dark Blue', 'orange' => 'Orange', 'pink' => 'Pink', 'grey' => 'Grey', 'yellow' => 'Yellow', 'brown' => 'Brown', 'custom' => 'Custom'));
    $options[] = array('name' => 'Colored Elements Color (Theme Color)', 'desc' => 'Applied to Tabs, tags hover,etc ', 'id' => 'color_elements', 'std' => '#e32831', 'type' => 'color');
    $options[] = array('name' => 'Colored Elements Color (Darker Color)', 'desc' => 'This color is usually darker than theme color.', 'id' => 'color_elements_dark', 'std' => '#b92424', 'type' => 'color');
    $options[] = array('name' => 'H1 Font, size and color', 'id' => "h1", 'std' => array('size' => '24px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H2 Font, size and color', 'id' => "h2", 'std' => array('size' => '22px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H3 Font, size and color', 'id' => "h3", 'std' => array('size' => '20px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H4 Font, size and color', 'id' => "h4", 'std' => array('size' => '18px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H5 Font, size and color', 'id' => "h5", 'std' => array('size' => '16px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H6 Font, size and color', 'id' => "h6", 'std' => array('size' => '14px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Paragraphs', 'desc' => 'Custom typography options.', 'id' => "paragraphs", 'std' => array('size' => '13px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#5a5a5a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Header Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Header Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Menu Typography', 'id' => 'header_menu_typography', 'std' => array('size' => '15px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#5a5a5a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Breaking Title', 'id' => 'header_breaking_title_typography', 'std' => array('size' => '17px', 'face' => 'SourceSansSemiBold', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Breaking Text', 'id' => 'header_breaking_text_typography', 'std' => array('size' => '12px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /*========================================================================================================================
    
    			Footer Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Footer Widgets Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Footer Title Typography', 'id' => 'footer_title_style', 'std' => array('size' => '22px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Footer Text Typography', 'id' => 'footer_text_style', 'std' => array('size' => '12px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#d5d5d5', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Widgets Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'Sidebar Widgets Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Widget Title Typography', 'id' => 'widget_title_typography', 'std' => array('size' => '22px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Widget Text Typography', 'id' => 'widget_text_typography', 'std' => array('size' => '14px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#5a5a5a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Sitemap Page Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'SiteMap Page ', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'SiteMap Title Style', 'desc' => '', 'id' => 'sitemap_title', 'std' => array('size' => '28px', 'face' => 'SourceSansSemiBold', 'style' => 'Normal', 'color' => '#333333', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'SiteMap Text', 'id' => 'sitemap_text', 'std' => array('size' => '18px', 'face' => 'SourceSansSemiBold', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Layout & Background
    
    			======================================================================================================================== */
    $options[] = array('name' => __('Layout & Background', 'options_framework_theme'), 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Boxed Layout', 'desc' => 'To enable the boxed layout, mark this option', 'id' => 'boxedlayout', 'class' => 'mini', 'std' => '', 'type' => 'checkbox');
    $options[] = array('name' => 'Page background color', 'desc' => 'Applied to body', 'id' => 'body_color', 'std' => '#fff', 'type' => 'color');
    $options[] = array('name' => __('Upload page background', 'options_framework_theme'), 'desc' => __('Upload page background , including patterns, wide images or select one of the patterns below. ', 'options_framework_theme'), 'id' => 'custom_pattern', 'std' => '', 'type' => 'upload');
    $options[] = array('name' => __("Background pattern", 'options_framework_theme'), 'desc' => __("For all pages of the website", 'options_framework_theme'), 'id' => "featured_pattern", 'std' => "", 'class' => "sidebarPosition featuredPatterns", 'type' => "images", 'options' => array('p1' => $imagepath . 'patterns/p1.png', 'p2' => $imagepath . 'patterns/p2.png', 'p3' => $imagepath . 'patterns/p3.png', 'p4' => $imagepath . 'patterns/p4.png', 'p5' => $imagepath . 'patterns/p5.png'));
    $options[] = array('name' => 'Background type', 'desc' => 'To enable background patterns, mark this option', 'id' => 'pattern_check', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    /* ========================================================================================================================
    			
    			RTL Style Settings Tab
    			
    			======================================================================================================================== */
    $options[] = array('name' => 'RTL Style Settings', 'icon_name' => $imagepathinc . 'style.png', 'type' => 'heading');
    /* ========================================================================================================================
    
    			Style Settings Tab
    
    			======================================================================================================================== */
    $options[] = array('name' => 'RTL General Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Template Color', 'desc' => 'Select the template color you want', 'id' => 'rtl_template_color', 'type' => 'select', 'std' => 'red', 'options' => array('red' => 'Red (Default)', 'light_red' => 'Light Red', 'blue' => 'Blue', 'green' => 'Green', 'purple' => 'Purple', 'dark_blue' => 'Dark Blue', 'orange' => 'Orange', 'pink' => 'Pink', 'grey' => 'Grey', 'yellow' => 'Yellow', 'brown' => 'Brown', 'custom' => 'Custom'));
    $options[] = array('name' => 'Contact info', 'desc' => 'Write a brief for your contact info to appear in the header', 'id' => 'rtl_header_contact_settings', 'std' => 'test', 'type' => "text");
    $options[] = array('name' => 'Contact Link', 'desc' => 'where do you want to link your contact text', 'id' => 'rtl_header_contact_link_settings', 'std' => '', 'type' => "text");
    $options[] = array('name' => 'Logo Builder', 'desc' => 'Preferred Logo Size is 194px X 90px ', 'id' => 'rtl_theme_logo', 'std' => '', 'class' => 'theme_logo', 'type' => 'upload');
    $options[] = array('name' => 'Colored Elements Color (Theme Color)', 'desc' => 'Applied to Tabs, tags hover,etc ', 'id' => 'rtl_color_elements', 'std' => '#e32831', 'type' => 'color');
    $options[] = array('name' => 'Colored Elements Color (Darker Color)', 'desc' => 'This color is usually darker than theme color.', 'id' => 'rtl_color_elements_dark', 'std' => '#b92424', 'type' => 'color');
    $options[] = array('name' => 'H1 Font, size and color', 'id' => "rtl_h1", 'std' => array('size' => '24px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H2 Font, size and color', 'id' => "rtl_h2", 'std' => array('size' => '22px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H3 Font, size and color', 'id' => "rtl_h3", 'std' => array('size' => '20px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H4 Font, size and color', 'id' => "rtl_h4", 'std' => array('size' => '18px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H5 Font, size and color', 'id' => "rtl_h5", 'std' => array('size' => '16px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'H6 Font, size and color', 'id' => "rtl_h6", 'std' => array('size' => '14px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Paragraphs', 'desc' => 'Custom typography options.', 'id' => "rtl_paragraphs", 'std' => array('size' => '13px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#5a5a5a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Header Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'RTL Header Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Menu Typography', 'id' => 'rtl_header_menu_typography', 'std' => array('size' => '15px', 'face' => 'museo_slab500', 'style' => 'Normal', 'color' => '#5a5a5a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Breaking Title', 'id' => 'rtl_header_breaking_title_typography', 'std' => array('size' => '17px', 'face' => 'museo_slab500', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Breaking Text', 'id' => 'rtl_header_breaking_text_typography', 'std' => array('size' => '12px', 'face' => 'OpenSansRegular', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /*========================================================================================================================
    
    			Footer Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'RTL Footer Widgets Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Footer Title Typography', 'id' => 'rtl_footer_title_style', 'std' => array('size' => '16px', 'face' => 'OpenSansBold', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Footer Text Typography', 'id' => 'rtl_footer_text_style', 'std' => array('size' => '16px', 'face' => 'OpenSansBold', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Widgets Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'RTL Sidebar Widgets Style', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'Widget Title Typography', 'id' => 'rtl_widget_title_typography', 'std' => array('size' => '14px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#2a2a2a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'Widget Text Typography', 'id' => 'rtl_widget_text_typography', 'std' => array('size' => '12px', 'face' => 'sourceSans', 'style' => 'Normal', 'color' => '#5a5a5a', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    			Sitemap Page Style Options
    
    			======================================================================================================================== */
    $options[] = array('name' => 'RTL SiteMap Page ', 'icon_name' => $imagepathinc . 'sub.png', 'class' => 'sub_heading', 'type' => 'heading');
    $options[] = array('name' => 'SiteMap Title Style', 'desc' => '', 'id' => 'rtl_sitemap_title', 'std' => array('size' => '40px', 'face' => 'OpenSansExtrabold', 'style' => 'Normal', 'color' => '#333333', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    $options[] = array('name' => 'SiteMap Text', 'id' => 'rtl_sitemap_text', 'std' => array('size' => '26px', 'face' => 'OpenSansExtrabold', 'style' => 'Normal', 'color' => '#ffffff', 'weight' => 'Normal'), 'type' => 'typography', 'options' => $typography_options);
    /* ========================================================================================================================
    
    Sidebars Tab
    
    ======================================================================================================================== */
    $options[] = array('name' => 'Sidebars', 'icon_name' => $imagepathinc . 'sidebars.png', 'type' => 'heading');
    $options[] = array('name' => 'Custom Sidebars', 'desc' => 'Add/Remove any sidebar and click Save Changes to take effect.', 'std' => '', 'id' => 'sidebars', 'type' => 'cust_sidebars');
    /* ========================================================================================================================
    
    Fonts Tab
    
    ======================================================================================================================== */
    $options[] = array('name' => 'Page Builder Fonts', 'icon_name' => $imagepathinc . 'sidebars.png', 'type' => 'heading');
    $options[] = array('name' => 'Custom Fonts', 'desc' => 'Add/Remove any font and click Save Changes to take effect.', 'std' => '', 'id' => 'cust_font', 'type' => 'cust_font');
    /* ========================================================================================================================
    
    WooCommerce Tab
    
    ======================================================================================================================== */
    $options[] = array('name' => 'WooCommerce settings', 'icon_name' => $imagepathinc . 'pages.png', 'type' => 'heading');
    $options[] = array('name' => 'do you want a masonry shop?', 'desc' => 'check to enable masonry shop', 'id' => 'woocommerce_masonry', 'class' => 'mini', 'std' => '0', 'type' => 'checkbox');
    $options[] = array('name' => 'Enable sidebar in shop page', 'id' => 'woocommerce_shop_sidebar', 'class' => 'mini', 'std' => '1', 'type' => 'checkbox');
    $options[] = array('name' => 'Enable sidebar in product page', 'id' => 'woocommerce_product_sidebar', 'class' => 'mini', 'std' => '0', 'type' => 'checkbox');
    /* ========================================================================================================================
    
    Maintainance Tab
    
    ======================================================================================================================== */
    $options[] = array('name' => 'Maintainance Page', 'icon_name' => $imagepathinc . 'contact.png', 'type' => 'heading');
    $options[] = array('name' => 'Maintainance Logo Uploader', 'desc' => 'Upload your Maintainance Logo here', 'id' => 'maintainance_logo', 'std' => '', 'type' => 'upload');
    $options[] = array('name' => 'Maintainance Background Uploader', 'desc' => 'Upload your Maintainance Background here', 'id' => 'maintainance_background', 'std' => '', 'type' => 'upload');
    $options[] = array('name' => 'Maintainance Page Title', 'desc' => 'Enter the title of the maintanance page', 'std' => 'Our Website is Almost Ready', 'id' => 'maintainance_page_title', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Count Down Title', 'desc' => 'Enter the title of the Count Down', 'std' => 'Time left till Launch', 'id' => 'maintainance_page_countdown_title', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Facebook Link', 'desc' => 'Enter the link of the facebook page', 'std' => 'http://www.facebook.com', 'id' => 'maintainance_page_facebook_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Twitter Link', 'desc' => 'Enter the link of the Twitter page', 'std' => 'http://www.twitter.com', 'id' => 'maintainance_page_twitter_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page LinkedIn Link', 'desc' => 'Enter the link of the LinkedIn page', 'std' => 'http://www.linkedin.com', 'id' => 'maintainance_page_linkedin_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Google Plus Link', 'desc' => 'Enter the link of the Google Plus page', 'std' => 'http://www.plus.google.com', 'id' => 'maintainance_page_google_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Youtube Link', 'desc' => 'Enter the link of the Youtube page', 'std' => 'http://www.youtube.com', 'id' => 'maintainance_page_youtube_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Dribbble Link', 'desc' => 'Enter the link of the Dribbble page', 'std' => 'http://www.dribbble.com', 'id' => 'maintainance_page_dribbble_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Forrst Link', 'desc' => 'Enter the link of the Forrst page', 'std' => 'http://www.forrst.com', 'id' => 'maintainance_page_forrst_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Behance Link', 'desc' => 'Enter the link of the Behance page', 'std' => 'http://www.behance.com', 'id' => 'maintainance_page_behance_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Picasa Link', 'desc' => 'Enter the link of the Picasa page', 'std' => 'http://www.picasa.com', 'id' => 'maintainance_page_picasa_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Pinterest Link', 'desc' => 'Enter the link of the Pinterest page', 'std' => 'http://www.pinterest.com', 'id' => 'maintainance_page_pinterest_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Flickr Link', 'desc' => 'Enter the link of the Flickr page', 'std' => 'http://www.flickr.com', 'id' => 'maintainance_page_flickr_link', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Know More Text', 'desc' => 'Enter the text of the Know More', 'std' => '+ Know More', 'id' => 'maintainance_page_knowmore', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Know More Title', 'desc' => 'Enter the Title of the Know More Page', 'std' => 'About CircleFlip', 'id' => 'maintainance_page_knowmore_title', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Know More Paragraph', 'desc' => 'Enter the Paragraph of the Know More Page', 'std' => 'Quisque sagittis turpis leo, id tempus elit ullamcorper vitae. Suspendisse iaculis dui a enim fringilla condimentum. Cras id euismod ligula. Aenean hendrerit commodo velit at pulvinar. Praesent vestibulum quam sed pretium placerat. Aenean porttitor a turpis nec dapibus. Pellentesque sodales commodo nibh, id tincidunt magna consectetur venenatis. Curabitur tempor, tellus eu scelerisque dignissim, mauris libero venenatis metus, vitae tincidunt diam lectus quis justo. Vivamus eget massa faucibus, fringilla nisl vel, gravida ipsum. Nunc pharetra sodales urna, sit amet rhoncus sapien malesuada quis. Maecenas augue turpis, luctus sed purus a, lobortis eleifend sapien.', 'id' => 'maintainance_page_knowmore_paragraph', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Know More Mail', 'desc' => 'Enter the Mail of the Know More Page', 'std' => '*****@*****.**', 'id' => 'maintainance_page_knowmore_mail', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Know More Phone', 'desc' => 'Enter the Phone of the Know More Page', 'std' => '+ 00 123 456 789 0', 'id' => 'maintainance_page_knowmore_phone', 'type' => 'text');
    $options[] = array('name' => 'Maintainance Page Know More Fax', 'desc' => 'Enter the Fax of the Know More Page', 'std' => '+ 00 123 456 789 0', 'id' => 'maintainance_page_knowmore_fax', 'type' => 'text');
    /* ========================================================================================================================
    
    Backup & Restore Tab
    
    ======================================================================================================================== */
    $options[] = array('name' => 'Backup & Restore', 'icon_name' => $imagepathinc . 'importexport.png', 'type' => 'heading');
    $backup = get_option('rojo_backups', array());
    $backup_log = isset($backup['backup_log']) ? $backup['backup_log'] : 'no backup available';
    $options[] = array('id' => 'backup-options', 'text' => 'Backup', 'desc' => "<p id='backup_log'>" . $backup_log . "</p>", 'type' => 'button');
    $options[] = array('id' => 'restore-options', 'text' => 'Restore', 'type' => 'button');
    $options[] = array('name' => 'Export Options', 'id' => 'export_data', 'type' => 'export-options');
    $options[] = array('name' => 'Import Options', 'id' => 'import_data', 'type' => 'import_options');
    return apply_filters('circleflip_theme_options', $options);
}
Esempio n. 16
0
function get_header_builder()
{
    global $post;
    $hb_names = get_option('hb_names');
    //$hb_names = array_values($hb_names);
    $postmeta = get_post_meta($post->ID, '_circleflip_headerBuilder');
    $postmeta_slider = get_post_meta($post->ID, '_circleflip_headerBuilder_slider');
    if (!isset($postmeta) || empty($postmeta)) {
        if (is_rtl('global_header_builder_rtl')) {
            $header_name = cr_get_option('global_header_builder_rtl', 0);
        } else {
            $header_name = cr_get_option('global_header_builder', 0);
        }
        $header_name = $hb_names[$header_name];
    } else {
        if ($postmeta[0] != 'global') {
            $header_name = $hb_names[$postmeta[0]];
        } else {
            if (is_rtl('global_header_builder_rtl')) {
                $header_name = cr_get_option('global_header_builder_rtl', 0);
            } else {
                $header_name = cr_get_option('global_header_builder', 0);
            }
            $header_name = $hb_names[$header_name];
        }
    }
    // Get the slider before rendering the header
    if (isset($postmeta_slider) && !empty($postmeta_slider)) {
        echo do_shortcode($postmeta_slider[0]);
    }
    $header_builder = new header_builder();
    $header_builder->render_blocks_view($header_name);
}
Esempio n. 17
0
    function block($instance)
    {
        $class = '';
        extract($instance);
        $this->slider_method();
        $counter = 0;
        $sliders_options = array();
        $fullwidth = '';
        if ($fullwidthSlider == 'fullwidth') {
            $class = '';
            $fullwidth = '100%';
        }
        foreach (cr_get_option('create_slider') as $key => $value) {
            $sliders_options[$counter] = $value;
            $counter++;
        }
        $slider_type = cr_get_option(strtolower(str_replace(' ', '_', $sliders_options[$slider])) . 'select_slider', '');
        $sliders_options[$slider] = strtolower(str_replace(' ', '_', $sliders_options[$slider]));
        $options_array = cr_get_option(strtolower($sliders_options[$slider]));
        if (circleflip_valid($sliders_options[$slider])) {
            switch ($slider_type) {
                case 'nivo_slider':
                    $this->nivo_slider_method();
                    ?>
						<div class="slider-wrapper theme-default <?php 
                    echo esc_attr($class);
                    ?>
" style="margin-bottom:<?php 
                    echo esc_attr($margin_bottom);
                    ?>
">
						    <div id="slider" class="nivoSlider">
						    	<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
										<a href="<?php 
                            echo esc_url($options_array[$i][$sliders_options[$slider] . '_link']);
                            ?>
">
									<?php 
                        }
                        ?>
											<img src="<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_image']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_image']) : '';
                        ?>
" data-thumb="<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_thumb']) ? $options_array[$i][$sliders_options[$slider] . '_thumb'] : '';
                        ?>
" alt="" title="<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title']) ? esc_attr($options_array[$i][$sliders_options[$slider] . '_title']) : '';
                        ?>
" />
									<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
										</a>
									<?php 
                        }
                    }
                    ?>
						    </div>
						</div>
					<?php 
                    break;
                case 'elastic_slider':
                    $this->elastic_slider_method();
                    ?>
						<div class="wrapper <?php 
                    echo esc_attr($class);
                    ?>
" style="margin-bottom:<?php 
                    echo esc_attr($margin_bottom);
                    ?>
px">
			                <div id="ei-slider" class="ei-slider">
			                    <ul class="ei-slider-large">
			                    	<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        ?>
							    		<li>
							    			<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
											<a href="<?php 
                            echo esc_url($options_array[$i][$sliders_options[$slider] . '_link']);
                            ?>
">
											<?php 
                        }
                        ?>
												<img src="<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_image']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_image']) : '';
                        ?>
"  alt="" />
											<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
											</a>
											<?php 
                        }
                        ?>
											<div class="ei-title">
				                                <h2 style="font-family: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['face']);
                        ?>
;font-size:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['size']);
                        ?>
;color:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['color']);
                        ?>
;font-weight: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['weight']);
                        ?>
 ;"><?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title']) ? esc_attr($options_array[$i][$sliders_options[$slider] . '_title']) : '';
                        ?>
</h2>
				                                <h3 style="font-family: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['face']);
                        ?>
;font-size:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['size']);
                        ?>
;color:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['color']);
                        ?>
;font-weight: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['weight']);
                        ?>
 ;"><?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_text']) ? esc_attr($options_array[$i][$sliders_options[$slider] . '_text']) : '';
                        ?>
</h3>
				                            </div>
										</li>
									<?php 
                    }
                    ?>
			                    </ul><!-- ei-slider-large -->
			                    <ul class="ei-slider-thumbs">
			                    	<li class="ei-slider-element">Current</li>
			                    	<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        ?>
										<li><a href="<?php 
                        echo esc_url($options_array[$i][$sliders_options[$slider] . '_link']);
                        ?>
"></a><img src="<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_thumb']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_thumb']) : '';
                        ?>
" /></li>
									<?php 
                    }
                    ?>
			                    </ul><!-- ei-slider-thumbs -->
			                </div><!-- ei-slider -->
			            </div><!-- wrapper -->
					<?php 
                    break;
                case 'threed_slider':
                    $this->threed_slider_method();
                    ?>
						<div class="wrapper <?php 
                    echo esc_attr($class);
                    ?>
" style="position:relative; margin-bottom:<?php 
                    echo esc_attr($margin_bottom);
                    ?>
px">
						<div class="wrapper DSlider <?php 
                    echo esc_attr($class);
                    ?>
">
							<ul id="sb-slider" class="sb-slider">
								<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        ?>
								<li>
									<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
									<a href="<?php 
                            echo esc_url($options_array[$i][$sliders_options[$slider] . '_link']);
                            ?>
" target="_blank"><img src="<?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_image']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_image']) : '';
                            ?>
" alt="image1"/></a>
									<?php 
                        } else {
                            ?>
									<img src="<?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_image']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_image']) : '';
                            ?>
" alt="image1"/>
									<?php 
                        }
                        ?>
									<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_text'])) {
                            ?>
									<div class="sb-description">
										<h3 style="font-family: <?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['face']);
                            ?>
;font-size:<?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['size']);
                            ?>
;color:<?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['color']);
                            ?>
;font-weight: <?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['weight']);
                            ?>
 ;"><?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_text']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_text']) : '';
                            ?>
</h3>
									</div>
									<?php 
                        }
                        ?>
								</li>
								<?php 
                    }
                    ?>
							</ul>

							<div id="shadow" class="shadow"></div>

							<div id="nav-arrows" class="nav-arrows">
								<a href="#" class="icon-right-open-big next"></a>
								<a href="#" class="icon-left-open-big prev"></a>
							</div>

							<div id="nav-dots" class="nav-dots">
								<span class="nav-dot-current"></span>
								<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        ?>
								<span></span>
								<?php 
                    }
                    ?>
							</div>

						</div><!-- /wrapper -->
					<?php 
                    break;
                case 'vertical_accordion_slider':
                    $this->vertical_accordion_slider_method();
                    ?>
					<div id="va-accordion" class="va-container <?php 
                    echo esc_attr($class);
                    ?>
" style="margin-bottom:<?php 
                    echo esc_attr($margin_bottom);
                    ?>
px">
						<div class="va-nav">
							<span class="va-nav-prev icon-up-open-big"></span>
							<span class="va-nav-next icon-down-open-big"></span>
						</div>
						<div class="va-wrapper">
							<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        ?>
							<div class="va-slice" style="background: #000 url(<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_image']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_image']) : '';
                        ?>
) no-repeat center center;">
								<h2 class="va-title" style="font-family: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['face']);
                        ?>
;font-size:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['size']);
                        ?>
;color:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['color']);
                        ?>
;font-weight: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['weight']);
                        ?>
 ;"><?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_title']) : '';
                        ?>
</h2>
								<div class="va-content">
									<p style="font-family: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['face']);
                        ?>
;font-size:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['size']);
                        ?>
;color:<?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['color']);
                        ?>
;font-weight: <?php 
                        echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['weight']);
                        ?>
 ;"><?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_text']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_text']) : '';
                        ?>
</p>
									<ul>
										<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button1link'])) {
                            ?>
										<li>
											<a href="<?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button1link']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_button1link']) : '';
                            ?>
"><?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button1']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_button1']) : '';
                            ?>
</a>
										</li>
										<?php 
                        }
                        ?>
										<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button2link'])) {
                            ?>
										<li>
											<a href="<?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button2link']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_button2link']) : '';
                            ?>
"><?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button2']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_button2']) : '';
                            ?>
</a>
										</li>
										<?php 
                        }
                        ?>
										<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button3link'])) {
                            ?>
										<li>
											<a href="<?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button3link']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_button3link']) : '';
                            ?>
"><?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_button3']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_button3']) : '';
                            ?>
</a>
										</li>
										<?php 
                        }
                        ?>
									</ul>
								</div>
							</div>
							<?php 
                    }
                    ?>
						</div>
					</div>
					<?php 
                    break;
                case 'accordion':
                    $this->accordion_slider_method();
                    ?>
					<div id="accordionSlider" class="<?php 
                    echo esc_attr($class);
                    ?>
" style="margin-bottom:<?php 
                    echo esc_attr($margin_bottom);
                    ?>
px">
						<ul id="accordion-slider" class="kwicks-horizontal kwicks">
							<?php 
                    for ($i = 0; $i < $options_array['number']; $i++) {
                        ?>
							<li>
								<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
								<a href="<?php 
                            echo esc_url($options_array[$i][$sliders_options[$slider] . '_link']);
                            ?>
">
								<?php 
                        }
                        ?>
									<img src="<?php 
                        echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_image']) ? esc_url($options_array[$i][$sliders_options[$slider] . '_image']) : '';
                        ?>
" alt="">
								<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_link'])) {
                            ?>
								</a>
								<?php 
                        }
                        ?>
								<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title'])) {
                            ?>
								<div class="accTitle" >
									<p style="font-family: <?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['face']);
                            ?>
;font-size:<?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['size']);
                            ?>
;color:<?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['color']);
                            ?>
;font-weight: <?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['weight']);
                            ?>
 ;"><?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_title']) : '';
                            ?>
</p>
								</div>
								<?php 
                        }
                        ?>
								<?php 
                        if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title']) || circleflip_valid($options_array[$i][$sliders_options[$slider] . '_text'])) {
                            ?>
								<div class="accDetail">
									<?php 
                            if (circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title'])) {
                                ?>
									<p style="font-family: <?php 
                                echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['face']);
                                ?>
;font-size:<?php 
                                echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['size']);
                                ?>
;color:<?php 
                                echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['color']);
                                ?>
;font-weight: <?php 
                                echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_title']['weight']);
                                ?>
 ;"><?php 
                                echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_title']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_title']) : '';
                                ?>
</p>
									<?php 
                            }
                            ?>
									<h3 style="font-family: <?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['face']);
                            ?>
;font-size:<?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['size']);
                            ?>
;color:<?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['color']);
                            ?>
;font-weight: <?php 
                            echo esc_attr($options_array[$i][$sliders_options[$slider] . '_font_text']['weight']);
                            ?>
 ;"><?php 
                            echo circleflip_valid($options_array[$i][$sliders_options[$slider] . '_text']) ? esc_html($options_array[$i][$sliders_options[$slider] . '_text']) : '';
                            ?>
</h3>
								</div>
								<?php 
                        }
                        ?>
							</li>
							<?php 
                    }
                    ?>
						</ul>
					</div>
					<?php 
                    break;
                default:
                    break;
            }
        }
    }
Esempio n. 18
0
        echo esc_attr(cr_get_option('logo_left'));
        ?>
px;top: <?php 
        echo esc_attr(cr_get_option('logo_top'));
        ?>
px;"/>
					</a>
				<?php 
    }
    ?>
			<?php 
}
?>
		</div>
		<div class="right closed navigationButton" style="margin-top: <?php 
echo esc_attr(cr_get_option("header_height", '') / 2 - 26);
?>
px;">
			<span class="icon-menu-3"></span>
		</div>
	</div>
	<?php 
if (get_header_image()) {
    ?>
	<a id="header-image" href="<?php 
    echo esc_url(home_url('/'));
    ?>
" title="<?php 
    echo esc_attr(get_bloginfo('name', 'display'));
    ?>
" rel="home">
Esempio n. 19
0
        function block($instance)
        {
            extract($instance);
            wp_enqueue_script('jquery-ui-tabs');
            $this->tabbed_method();
            if ($entrance_animation == 'default') {
                $entrance_animation = cr_get_option('block_animations');
            }
            $output = '';
            if ($type == 'tab') {
                $output .= '<div id="aq_block_tabs_' . rand(1, 100) . '" class="aq_block_tabs "><div class="aq-tab-inner circleFlipTabs">';
                $output .= '<ul class="aq-nav cf">';
                $i = 1;
                foreach ($tabs as $tab) {
                    $tab_selected = $i == 1 ? 'ui-tabs-active' : '';
                    $output .= '<li class="' . esc_attr($tab_selected) . ' animateCr ' . esc_attr($entrance_animation) . '"><a href="#aq-tab-' . $i . '">' . $tab['title'] . ' </a></li>';
                    $i++;
                }
                $output .= '</ul>';
                $i = 1;
                foreach ($tabs as $tab) {
                    $output .= '<div id="aq-tab-' . $i . '" class="aq-tab clearfix">
										<div class="tabText clearfix">' . wpautop(do_shortcode(htmlspecialchars_decode($tab['content']))) . '</div>
									</div>';
                    $i++;
                }
                $output .= '</div></div>';
            } elseif ($type == 'toggle') {
                //opening the toggles container
                $output .= '<div id="aq_block_toggles_wrapper_' . rand(1, 100) . '" class="aq_block_toggles_wrapper">';
                //loop start
                foreach ($tabs as $tab) {
                    $output .= '<div class="aq_block_toggle">
										<h2 class="tab-head">' . $tab['title'] . '<span></span></h2>
										<div class="tab-body closeTab cf">
											<div class="tabText clearfix">' . wpautop(do_shortcode(htmlspecialchars_decode($tab['content']))) . '</div>
										</div>
									 </div>';
                }
                //loop end
                //closing the toggles container
                $output .= '</div>';
            } elseif ($type == 'accordion') {
                $count = count($tabs);
                $i = 1;
                //Opening the accordion container
                $output .= '<div id="aq_block_accordion_wrapper_' . rand(1, 100) . '" class="aq_block_accordion_wrapper">';
                //Loop Start
                foreach ($tabs as $tab) {
                    $open = $i == 1 ? 'open' : 'closeTab';
                    $child = '';
                    if ($i == 1) {
                        $child = 'first-child';
                    }
                    if ($i == $count) {
                        $child = 'last-child';
                    }
                    $i++;
                    $output .= '<div class="aq_block_accordion ' . $child . '">';
                    $output .= '<h2 class="tab-head">' . $tab['title'] . '<span></span></h2>
									<div class="tab-body ' . $open . ' cf">
										<div class="tabText clearfix">' . wpautop(do_shortcode(htmlspecialchars_decode($tab['content']))) . '</div>
									</div>
								 </div>';
                }
                //Loop end
                //Closing the accordion container
                $output .= '</div>';
            }
            echo $output;
        }
Esempio n. 20
0
    ?>
" rel="home">
		<img src="<?php 
    header_image();
    ?>
" width="<?php 
    echo circleflip_get_custom_header()->width;
    ?>
" height="<?php 
    echo circleflip_get_custom_header()->height;
    ?>
" alt="" />
	</a>
	<?php 
}
// if ( get_header_image() )
?>
	<?php 
if (function_exists('yoast_breadcrumb')) {
    yoast_breadcrumb('<nav id="breadcrumb" class="breadcrumb">', '</nav>');
}
tha_header_bottom();
?>
	</div>
</header><!-- #branding -->
<?php 
if (cr_get_option('sticky_header') == 1) {
    echo '</div>';
}
tha_header_after();
/* End of file header.php */
Esempio n. 21
0
 function block($instance)
 {
     extract($instance);
     if ($entrance_animation == 'default') {
         $entrance_animation = cr_get_option('block_animations');
     }
     $icon_class = '';
     if (isset($iconList)) {
         $icon_class .= $iconList . ' ';
     }
     $isIcon = '';
     if ($iconList != 'none' && $iconList != '') {
         $isIcon = 'iconList';
     }
     echo "<ul class='listStyleImage'>";
     foreach ($lists as $key => $value) {
         echo '<li class="' . esc_attr($icon_class . ' ' . $isIcon . ' animateCr ' . $entrance_animation) . '"><p>' . do_shortcode(htmlspecialchars_decode($value['text'])) . '</p></li>';
     }
     echo "</ul>";
 }
    function block($instance)
    {
        extract($instance);
        if ($entrance_animation == 'default') {
            $entrance_animation = cr_get_option('block_animations');
        }
        ?>
		<div class="animateCr <?php 
        echo esc_attr($entrance_animation);
        ?>
">
			<?php 
        if ($ad_type == 'image') {
            if (isset($link) && !empty($link)) {
                ?>
				<a href="<?php 
                echo esc_url($link);
                ?>
">
			<?php 
            }
            ?>
				<?php 
            if (isset($sponsors_imageid) && !empty($sponsors_imageid)) {
                echo wp_get_attachment_image($sponsors_imageid, 'full', false, array('class' => 'attachment-full sponsImage'));
            }
            ?>
			<?php 
            if (isset($link) && !empty($link)) {
                ?>
				</a>
			<?php 
            }
        } else {
            echo $Adsense_code;
        }
        ?>
		</div>
		<?php 
    }
Esempio n. 23
0
    echo esc_attr($position_class);
    ?>
">
			<ul>
			<?php 
    if (cr_get_option('post_sidebars_option') == 'global') {
        $sidebar = cr_get_option('post_sidebar');
        $sidebars = cr_get_option('sidebars', array());
        if (circleflip_valid($sidebar) && in_array($sidebar, $sidebars)) {
            dynamic_sidebar($sidebar);
        }
    } else {
        $post_custom_values = get_post_custom_values('_sidebar', $post->ID);
        if (!empty($post_custom_values) && isset($post_custom_values)) {
            $sidebar = array_shift($post_custom_values);
            $sidebars = cr_get_option('sidebars', array());
            if (circleflip_valid($sidebar) && in_array($sidebar, $sidebars)) {
                dynamic_sidebar($sidebar);
            }
        }
    }
    ?>
			</ul>
		</aside>
	</section>
	<?php 
}
?>
</div>
</div>
<?php 
Esempio n. 24
0
    function block($instance)
    {
        extract($instance);
        if ($entrance_animation == 'default') {
            $entrance_animation = cr_get_option('block_animations');
        }
        $icon_option = array('icon-plus', 'icon-minus', 'icon-info', 'icon-left-thin', 'icon-up-thin', 'icon-right-thin', 'icon-down-thin', 'icon-level-up', 'icon-level-down', 'icon-switch', 'icon-infinity', 'icon-plus-squared', 'icon-minus-squared', 'icon-home', 'icon-keyboard', 'icon-erase', 'icon-pause', 'icon-fast-forward', 'icon-fast-backward', 'icon-to-end', 'icon-to-start', 'icon-hourglass', 'icon-stop', 'icon-up-dir', 'icon-play', 'icon-right-dir', 'icon-down-dir', 'icon-left-dir', 'icon-adjust', 'icon-cloud', 'icon-star', 'icon-star-empty', 'icon-cup', 'icon-menu', 'icon-moon', 'icon-heart-empty', 'icon-heart', 'icon-note', 'icon-note-beamed', 'icon-layout', 'icon-flag', 'icon-tools', 'icon-cog', 'icon-attention', 'icon-flash', 'icon-record', 'icon-cloud-thunder', 'icon-tape', 'icon-flight', 'icon-mail', 'icon-pencil', 'icon-feather', 'icon-check', 'icon-cancel', 'icon-cancel-circled', 'icon-cancel-squared', 'icon-help', 'icon-quote', 'icon-plus-circled', 'icon-minus-circled', 'icon-right', 'icon-direction', 'icon-forward', 'icon-ccw', 'icon-cw', 'icon-left', 'icon-up', 'icon-down', 'icon-list-add', 'icon-list', 'icon-left-bold', 'icon-right-bold', 'icon-up-bold', 'icon-down-bold', 'icon-user-add', 'icon-help-circled', 'icon-info-circled', 'icon-eye', 'icon-tag', 'icon-upload-cloud', 'icon-reply', 'icon-reply-all', 'icon-code', 'icon-export', 'icon-print', 'icon-retweet', 'icon-comment', 'icon-chat', 'icon-vcard', 'icon-address', 'icon-location', 'icon-map', 'icon-compass', 'icon-trash', 'icon-doc', 'icon-doc-text-inv', 'icon-docs', 'icon-doc-landscape', 'icon-archive', 'icon-rss', 'icon-share', 'icon-basket', 'icon-shareable', 'icon-login', 'icon-logout', 'icon-volume', 'icon-resize-full', 'icon-resize-small', 'icon-popup', 'icon-publish', 'icon-window', 'icon-arrow-combo', 'icon-chart-pie', 'icon-language', 'icon-air', 'icon-database', 'icon-drive', 'icon-bucket', 'icon-thermometer', 'icon-down-circled', 'icon-left-circled', 'icon-right-circled', 'icon-up-circled', 'icon-down-open', 'icon-left-open', 'icon-right-open', 'icon-up-open', 'icon-down-open-mini', 'icon-left-open-mini', 'icon-right-open-mini', 'icon-up-open-mini', 'icon-down-open-big', 'icon-left-open-big', 'icon-right-open-big', 'icon-up-open-big', 'icon-progress-0', 'icon-progress-1', 'icon-progress-2', 'icon-progress-3', 'icon-back-in-time', 'icon-network', 'icon-inbox', 'icon-install', 'icon-lifebuoy', 'icon-mouse', 'icon-dot', 'icon-dot-2', 'icon-dot-3', 'icon-suitcase', 'icon-flow-cascade', 'icon-flow-branch', 'icon-flow-tree', 'icon-flow-line', 'icon-flow-parallel', 'icon-brush', 'icon-paper-plane', 'icon-magnet', 'icon-gauge', 'icon-traffic-cone', 'icon-cc', 'icon-cc-by', 'icon-cc-nc', 'icon-cc-nc-eu', 'icon-cc-nc-jp', 'icon-cc-sa', 'icon-cc-nd', 'icon-cc-pd', 'icon-cc-zero', 'icon-cc-share', 'icon-cc-remix', 'icon-github', 'icon-github-circled', 'icon-flickr', 'icon-flickr-circled', 'icon-vimeo', 'icon-vimeo-circled', 'icon-twitter', 'icon-twitter-circled', 'icon-facebook', 'icon-facebook-circled', 'icon-facebook-squared', 'icon-gplus', 'icon-gplus-circled', 'icon-pinterest', 'icon-pinterest-circled', 'icon-tumblr', 'icon-tumblr-circled', 'icon-linkedin', 'icon-linkedin-circled', 'icon-dribbble', 'icon-dribbble-circled', 'icon-stumbleupon', 'icon-stumbleupon-circled', 'icon-lastfm', 'icon-lastfm-circled', 'icon-rdio', 'icon-rdio-circled', 'icon-spotify', 'icon-spotify-circled', 'icon-qq', 'icon-instagram', 'icon-dropbox', 'icon-evernote', 'icon-flattr', 'icon-skype', 'icon-skype-circled', 'icon-renren', 'icon-sina-weibo', 'icon-paypal', 'icon-picasa', 'icon-soundcloud', 'icon-mixi', 'icon-behance', 'icon-google-circles', 'icon-vkontakte', 'icon-smashing', 'icon-db-shape', 'icon-sweden', 'icon-logo-db', 'icon-picture', 'icon-globe', 'icon-leaf', 'icon-graduation-cap', 'icon-mic', 'icon-palette', 'icon-ticket', 'icon-video', 'icon-target', 'icon-music', 'icon-trophy', 'icon-thumbs-up', 'icon-thumbs-down', 'icon-bag', 'icon-user', 'icon-users', 'icon-lamp', 'icon-alert', 'icon-water', 'icon-droplet', 'icon-credit-card', 'icon-monitor', 'icon-briefcase', 'icon-floppy', 'icon-cd', 'icon-folder', 'icon-doc-text', 'icon-calendar', 'icon-chart-line', 'icon-chart-bar', 'icon-clipboard', 'icon-attach', 'icon-bookmarks', 'icon-book', 'icon-book-open', 'icon-phone', 'icon-megaphone', 'icon-upload', 'icon-download', 'icon-box', 'icon-newspaper', 'icon-mobile', 'icon-signal', 'icon-camera', 'icon-shuffle', 'icon-loop', 'icon-arrows-ccw', 'icon-light-down', 'icon-light-up', 'icon-mute', 'icon-sound', 'icon-battery', 'icon-search', 'icon-key', 'icon-lock', 'icon-lock-open', 'icon-bell', 'icon-bookmark', 'icon-link', 'icon-back', 'icon-flashlight', 'icon-chart-area', 'icon-clock', 'icon-rocket', 'icon-block', 'icon-basket');
        $color_option = array('Custom', 'red', 'heavyRed', 'yellow', 'orange', 'grey', 'heavyGrey', 'green', 'heavyGreen', 'blue', 'heavyBlue', 'black');
        $class = '';
        $classColor = '';
        $Announcement = 0;
        $textShadow = '';
        switch ($color_button_text_shadow) {
            case '0':
                $textShadow = 'none';
                break;
            case '1':
                $textShadow = '#ffffff';
                break;
            case '2':
                $textShadow = '#000000';
                break;
            default:
                $textShadow .= '#ffffff';
                break;
        }
        if ($shape != 'btnStyle3') {
            switch ($shape) {
                case '0':
                    $class .= 'btnStyle1 ';
                    $Announcement = 0;
                    break;
                case '1':
                    $class .= 'btnStyle2 ';
                    $Announcement = 0;
                    break;
                case '2':
                    $class .= 'btnStyle3 ';
                    $Announcement = 1;
                    break;
                default:
                    $class .= 'btnStyle1 ';
                    $Announcement = 0;
                    break;
            }
            if (isset($checkIcon)) {
                if ($checkIcon == 0) {
                    $checkIconClass = 'withoutIcon';
                } else {
                    $checkIconClass = 'withIcon';
                }
            }
            if (isset($color)) {
                $class .= $color_option[$color] . ' ';
                $classColor = $color_option[$color];
            }
            //echo $btn_size;
            switch ($btn_size) {
                case '0':
                    $class .= 'btnLarge ';
                    break;
                case '1':
                    $class .= '';
                    break;
                case '2':
                    $class .= 'btn-block ';
                    break;
                default:
                    break;
            }
            switch ($align) {
                case '0':
                    $class .= 'btnLeft ';
                    break;
                case '1':
                    $class .= 'btnCenter ';
                    break;
                case '2':
                    $class .= 'btnRight ';
                    break;
                default:
                    $class .= 'btnLeft ';
                    break;
            }
        } else {
            $class .= 'btnStyle3 ';
            if (isset($color)) {
                $class .= $color_option[$color] . ' ';
            }
            switch ($align) {
                case '0':
                    $class .= 'btnLeft ';
                    break;
                case '1':
                    $class .= 'btnCenter ';
                    break;
                case '2':
                    $class .= 'btnRight ';
                    break;
                default:
                    $class .= 'btnLeft ';
                    break;
            }
        }
        if ($Announcement == 0) {
            ?>
		<a href="<?php 
            echo esc_url($link);
            ?>
" target="<?php 
            echo esc_attr($target);
            ?>
" class=" <?php 
            echo esc_attr($class);
            ?>
 <?php 
            echo esc_attr($checkIconClass);
            ?>
  animateCr <?php 
            echo esc_attr($entrance_animation);
            ?>
" <?php 
            if ($classColor == 'Custom') {
                ?>
 style="background: <?php 
                echo esc_attr($color_button);
                ?>
; color:<?php 
                echo esc_attr($color_button_text);
                ?>
;font-size: <?php 
                echo esc_attr($font_size);
                ?>
px;" <?php 
            }
            ?>
 >
			<?php 
            if ($btn_size == 2) {
                echo '<div class="fullSizeButton">';
            }
            ?>
			<?php 
            if ($checkIconClass == 'withIcon') {
                ?>
			<div class="btnIcon <?php 
                echo esc_attr($icon);
                ?>
"></div>
			<?php 
            }
            ?>
			<span> <?php 
            echo do_shortcode(htmlspecialchars_decode($text));
            ?>
</span>
			<?php 
            if ($btn_size == 2) {
                echo '</div>';
            }
            ?>
			<span class="btnBefore" <?php 
            if ($classColor == 'Custom') {
                ?>
 style="border-color: <?php 
                echo esc_attr($color_button);
                ?>
;" <?php 
            }
            ?>
></span>
    		<span class="btnAfter" <?php 
            if ($classColor == 'Custom') {
                ?>
 style="border-color: <?php 
                echo esc_attr($color_button);
                ?>
;" <?php 
            }
            ?>
></span>
		</a>
		<?php 
        } else {
            ?>
			<a href="<?php 
            echo esc_url($link);
            ?>
" target="<?php 
            echo esc_attr($target);
            ?>
" class=" animateCr <?php 
            echo esc_attr($entrance_animation);
            ?>
 <?php 
            echo esc_attr($class);
            ?>
   <?php 
            echo esc_attr($checkIconClass);
            ?>
" <?php 
            if ($classColor == 'Custom') {
                ?>
 style="background: <?php 
                echo esc_attr($color_button);
                ?>
; color:<?php 
                echo esc_attr($color_button_text);
                ?>
;" <?php 
            }
            ?>
 >
				<?php 
            if ($checkIconClass == 'withIcon') {
                ?>
				<div class="btnIcon <?php 
                echo esc_attr($icon);
                ?>
" style="<?php 
                if ($textShadow != 'none') {
                    ?>
text-shadow:1px 1px <?php 
                    echo esc_attr($textShadow);
                    ?>
;<?php 
                } else {
                    ?>
text-shadow:none;<?php 
                }
                ?>
" ></div>
				<?php 
            }
            ?>
			 	<?php 
            if ($type != null) {
                ?>
				<span class="buttonType"><?php 
                echo esc_html($type);
                ?>
</span>
				<?php 
            }
            ?>
				<span class="buttonText" style="<?php 
            if ($textShadow != 'none') {
                ?>
text-shadow:1px 1px <?php 
                echo esc_attr($textShadow);
                ?>
;<?php 
            } else {
                ?>
text-shadow:none;<?php 
            }
            ?>
"><?php 
            echo do_shortcode(htmlspecialchars_decode($text));
            ?>
</span>
				<span class="btnBefore" <?php 
            if ($classColor == 'Custom') {
                ?>
 style="border-color: <?php 
                echo esc_attr($color_button);
                ?>
;" <?php 
            }
            ?>
></span>
    			<span class="btnAfter" <?php 
            if ($classColor == 'Custom') {
                ?>
 style="border-color: <?php 
                echo esc_attr($color_button);
                ?>
;" <?php 
            }
            ?>
></span>
			</a>
		<?php 
        }
    }
            ?>
			    <?php 
        }
        ?>
			</div>
			<?php 
    }
    $post = $tmp_post;
    ?>
    	    </div>
        <div class="sidebarSeparatorPost"></div>
	    <?php 
}
?>
	    <?php 
if (cr_get_option('post_author') == '1') {
    ?>
		<?php 
    if (get_the_author_meta('description') != '') {
        ?>
		    <div class="authorDetails">
			<div class="authorImg"><?php 
        echo get_avatar(get_the_author_meta('ID'));
        ?>
</div>
			<div class="authorContent">
			    <h4><?php 
        _e('This Post is posted by', 'circleflip');
        ?>
 <?php 
        echo get_the_author();
Esempio n. 26
0
tha_content_bottom();
?>
			</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('tags_sidebar'));
    ?>
				</ul>
			</aside>
		</section>
		<?php 
}
?>
	</div>
</div>
<?php 
get_footer();
/* End of file index.php */
/* Location: ./wp-content/themes/circleflip/tag.php */
Esempio n. 27
0
<?php

/**
 * @package Circle Flip
 * @author Creiden
 * @link http://creiden.com
 */
header("Content-type: text/css;");
$url = $_SERVER["SCRIPT_FILENAME"];
$strpos = strpos($url, 'wp-content');
$base = substr($url, 0, $strpos);
require_once $base . 'wp-load.php';
$googleFonts = implode('|', cr_get_option('cust_font'));
if ($googleFonts != '') {
    $link = 'http://fonts.googleapis.com/css?family=' . preg_replace("/ /", "+", $googleFonts);
}
?>
@import url('<?php 
echo $link;
?>
');
@import url(http://fonts.googleapis.com/css?family=Raleway:400);
@font-face {
    font-family: 'sourceSans';
    src: url('SourceSans/sourcesanspro-regular-webfont.eot');
    src: url('SourceSans/sourcesanspro-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('SourceSans/sourcesanspro-regular-webfont.woff') format('woff'),
         url('SourceSans/sourcesanspro-regular-webfont.ttf') format('truetype'),
         url('SourceSans/sourcesanspro-regular-webfont.svg#sourceSans') format('svg');
    font-weight: normal;
    font-style: normal;
Esempio n. 28
0
    function block($instance)
    {
        $this->counterScripts();
        extract($instance);
        if ($entrance_animation == 'default') {
            $entrance_animation = cr_get_option('block_animations');
        }
        echo '<div class="cfCounter textCenter cf animateCr ' . esc_attr($entrance_animation) . '">
			<span class="counterIcon ' . esc_attr($custom_icon) . '" style="color:' . esc_attr($counter_color) . '"></span>
			<span class="counterNumber grid2" style="color:' . esc_attr($counter_color) . '">' . esc_html($counternumber) . '</span>
			<span class="counterUnit">' . esc_html($counterunit) . '</span>
			</div> ';
    }
Esempio n. 29
0
 function block($instance)
 {
     $defaults = array('title' => '', 'post_number' => '', 'entrance_animation' => '', 'post_cat_type' => 'offer', 'post_shape' => 'circle', 'hover_style' => 'squarestyle1', 'animation_number' => 0, 'post_style' => 'circle', 'post_type' => '', 'masonry' => false, 'type' => 'Thirds');
     $post_cat_type = 'offer';
     $instance = wp_parse_args($instance, $defaults);
     if ($instance['entrance_animation'] == 'default') {
         $instance['entrance_animation'] = cr_get_option('block_animations');
     }
     $this->offerPosts($instance);
 }
Esempio n. 30
0
    }
    circleflip_content_nav('nav-below');
    ?>
			</div><!-- #content -->
		</div><!-- #primary -->
		<?php 
    if ($sideBarPos == 'left' || $sideBarPos == 'right') {
        ?>
		<section class="span3"> 
			<aside class="sidebar <?php 
        echo esc_attr($sideBarPos);
        ?>
">
				<ul>
				    <?php 
        dynamic_sidebar(cr_get_option('search_sidebar'));
        ?>
				</ul>
			</aside>
		</section>
		<?php 
    }
    ?>
		</div><!-- #row -->
	</div> <!-- #container -->
	<?php 
} else {
    get_template_part('/partials/content', 'not-found');
}
get_footer();
/* End of file search.php */