Example #1
0
    if (isset($back_image['data']['icon'])) {
        $background_image = $back_image['data']['icon'];
    }
    $header_fade_image_scroll = fw_get_db_customizer_option('opt_categories_header_fade_image_scroll');
    $header_image_height = fw_get_db_customizer_option('opt_categories_header_image_height');
    $background_position = fw_get_db_customizer_option('opt_categories_background_position');
    $background_color = fw_get_db_customizer_option('opt_categories_background_color');
    $background_repeat = fw_get_db_customizer_option('opt_categories_background_repeat');
    $background_size = fw_get_db_customizer_option('opt_categories_background_size');
    $background_parallax_ratio = fw_get_db_customizer_option('opt_categories_background_parallax_ratio');
    /**
     * Title Options
     */
    $breadcrumbs_homepage_title = fw_get_db_customizer_option('opt_breadcrumbs_homepage_title');
    $title_components_elements = fw_get_db_customizer_option('opt_categories_title_functionality');
    $header_divider_type = fw_get_db_customizer_option('opt_categories_title_divider_type');
}
if ($show_page_numbers == "Yes") {
    $show_page_numbers_string = "show-page-numbers";
} else {
    $show_page_numbers_string = "no-page-numbers";
}
if ($vertical_align_columns == "Yes") {
    $vertical_align_columns_string = "eq-height";
} else {
    $vertical_align_columns_string = "";
}
if ($title_overlay_image == "Yes" && $background_image != "") {
    $title_overlay_image_string = "archive-title-image-overlay";
}
$center_title_string = "";
Example #2
0
     $width = fw_get_db_customizer_option('opt_featured_image_max_width');
     $large_image_ratio = fw_get_db_customizer_option('opt_featured_image_ratio');
     $large_height = thshpr_generate_aspect_height($large_image_ratio, $width);
     /**
      * Fullscreen Header Image Options
      */
     $header_image_width = 1190;
     //hard set because scaling is used
     $header_show_image = fw_get_db_customizer_option('opt_header_show_image');
     $header_fade_image_scroll = fw_get_db_customizer_option('opt_header_fade_image_scroll');
     $header_image_height = fw_get_db_customizer_option('opt_header_image_height');
     $background_position = fw_get_db_customizer_option('opt_background_position');
     $background_color = fw_get_db_customizer_option('opt_background_color');
     $background_repeat = fw_get_db_customizer_option('opt_background_repeat');
     $background_size = fw_get_db_customizer_option('opt_background_size');
     $background_parallax_ratio = fw_get_db_customizer_option('opt_background_parallax_ratio');
 }
 /**
  * Generate class strings on content columns and sidebar
  */
 $content_column_string = '';
 $content_inner_string = '';
 $content_column_style_string = '';
 if ($sidebar_type == "left") {
     $content_column_string .= "fw-col-md-8 m-right";
     $main_id = 'main-right';
 } else {
     if ($sidebar_type == "right") {
         $content_column_string .= "fw-col-md-8 m-left";
         $main_id = 'main-left';
     } else {
Example #3
0
    function widget($args, $instance)
    {
        $title = apply_filters('widget_title', $instance['title']);
        extract($args);
        echo $before_widget;
        ?>
	<?php 
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        if (function_exists('fw_get_db_customizer_option')) {
            $social_twitter = fw_get_db_customizer_option('opt_social_twitter');
            $social_facebook = fw_get_db_customizer_option('opt_social_facebook');
            $social_googleplus = fw_get_db_customizer_option('opt_social_googleplus');
            $social_linkedin = fw_get_db_customizer_option('opt_social_linkedin');
            $social_youtube = fw_get_db_customizer_option('opt_social_youtube');
            $social_pinterest = fw_get_db_customizer_option('opt_social_pinterest');
            $social_instagram = fw_get_db_customizer_option('opt_social_instagram');
            $social_tumblr = fw_get_db_customizer_option('opt_social_tumblr');
            $social_vine = fw_get_db_customizer_option('opt_social_vine');
            $social_snapchat = fw_get_db_customizer_option('opt_social_snapchat');
            $social_reddit = fw_get_db_customizer_option('opt_social_reddit');
            $social_flickr = fw_get_db_customizer_option('opt_social_flickr');
            $social_email = fw_get_db_customizer_option('opt_social_email');
        }
        echo '
	<div class="social-icons-widget">
		<div class=" social-share-boxes share-boxes featured-posts-grid-paragraph social-hover">
			<div class="absolute-container">
				<i class=" background-accent header"></i><!--';
        if (isset($social_facebook)) {
            echo '--><span class="social-box facebook"><a class="inner facebook-inner" href="' . urlencode($social_facebook) . '"><i class="fa fa-facebook icon"></i></a></span><!--';
        }
        if (isset($social_twitter)) {
            echo '--><span class="social-box facebook"><a class="inner twitter-inner" href="' . urlencode($social_twitter) . '"><i class="fa fa-twitter icon"></i></a></span><!--';
        }
        if (isset($social_googleplus)) {
            echo '--><span class="social-box googleplus"><a class="inner google-plus-inner" href="' . urlencode($social_googleplus) . '"><i class="fa fa-google-plus icon"></i></a></span><!--';
        }
        if (isset($social_linkedin)) {
            echo '--><span class="social-box linkedin"><a class="inner linked-in-inner" href="' . urlencode($social_linkedin) . '"><i class="fa fa-linkedin icon"></i></a></span><!--';
        }
        if (isset($social_youtube)) {
            echo '--><span class="social-box youtube"><a class="inner youtube-inner" href="' . urlencode($social_youtube) . '"><i class="fa fa-youtube icon"></i></a></span><!--';
        }
        if (isset($social_instagram)) {
            echo '--><span class="social-box instagram"><a class="inner instagram-inner" href="' . urlencode($social_instagram) . '"><i class="fa fa-instagram icon"></i></a></span><!--';
        }
        if (isset($social_pinterest)) {
            echo '--><span class="social-box pinterest"><a class="inner pinterest-inner" href="' . urlencode($social_pinterest) . '"><i class="fa fa-pinterest icon"></i></a></span><!--';
        }
        if (isset($social_tumblr)) {
            echo '--><span class="social-box tumblr"><a class="inner tumblr-inner" href="' . urlencode($social_tumblr) . '"><i class="fa fa-tumblr icon"></i></a></span><!--';
        }
        if (isset($social_vine)) {
            echo '--><span class="social-box vine"><a class="inner vine-inner" href="' . urlencode($social_vine) . '"><i class="fa fa-vine icon"></i></a></span><!--';
        }
        if (isset($social_snapchat)) {
            echo '--><span class="social-box snapchat"><a class="inner snapchat-inner" href="' . urlencode($social_snapchat) . '"><i class="fa fa-snapchat icon"></i></a></span><!--';
        }
        if (isset($social_reddit)) {
            echo '--><span class="social-box reddit"><a class="inner reddit-inner" href="' . urlencode($social_reddit) . '"><i class="fa fa-reddit icon"></i></a></span><!--';
        }
        if (isset($social_flickr)) {
            echo '--><span class="social-box flickr"><a class="inner flickr-inner" href="' . urlencode($social_flickr) . '"><i class="fa fa-flickr icon"></i></a></span><!--';
        }
        if (isset($social_email)) {
            echo '--><span class="social-box email"><a class="inner email-inner" href="' . urlencode($social_email) . '"><i class="fa fa-at icon"></i></a></span>';
        }
        echo '
			</div>
		</div>
	</div>';
        echo $after_widget;
    }
Example #4
0
 /**
  * Front-end display of widget.
  * @since 0.1
  */
 function widget($args, $instance)
 {
     $post_categories = wp_get_post_categories(get_the_ID());
     $post_categories = array_values($post_categories);
     $post_categories = thshpr_get_category_ids_string($post_categories);
     if (function_exists('fw_get_db_customizer_option')) {
         /**
          * Variables from customizer
          */
         $widget_component_elements = fw_get_db_customizer_option('opt_widget_functionality');
         $widget_category_tag_number = fw_get_db_customizer_option('opt_widget_number_categories');
         $widget_divider_type = fw_get_db_customizer_option('opt_widget_divider_type');
         $small_image_ratio = fw_get_db_customizer_option('opt_small_image_ratio');
         $width = 390;
         $show_hover_effects = fw_get_db_customizer_option('opt_show_hover_effects');
         $small_image_ratio = fw_get_db_customizer_option('opt_small_image_ratio');
         $excerpt_length = fw_get_db_customizer_option('opt_widget_excerpt_length');
         /**
          * Hover Items
          */
         $opt_image_hover_item_top = fw_get_db_customizer_option('opt_image_hover_item_1');
         $small_height = thshpr_generate_aspect_height($small_image_ratio, $width);
         if ($opt_image_hover_item_top['template'] == 0) {
         } else {
             if ($opt_image_hover_item_top['template'] == 1) {
                 $hover_top = $opt_image_hover_item_top['1']['opt_image_hover_item_text'];
             } else {
                 if ($opt_image_hover_item_top['template'] == 2) {
                     $hover_top = '<i class="' . $opt_image_hover_item_top['2']['opt_image_hover_item_icon'] . '" data-value="' . $opt_image_hover_item_top['2']['opt_image_hover_item_1_icon'] . '"></i>';
                 } else {
                     if ($opt_image_hover_item_top['template'] == 3) {
                         $hover_top = '<img src="' . $opt_image_hover_item_top['3']['opt_image_hover_item_image']['url'] . '">';
                     }
                 }
             }
         }
         $opt_image_hover_item_bottom = fw_get_db_customizer_option('opt_image_hover_item_2');
         if ($opt_image_hover_item_bottom['template'] == 0) {
         } else {
             if ($opt_image_hover_item_bottom['template'] == 1) {
                 $hover_bottom = $opt_image_hover_item_bottom['1']['opt_image_hover_item_text'];
             } else {
                 if ($opt_image_hover_item_bottom['template'] == 2) {
                     $hover_bottom = '<i class="' . $opt_image_hover_item_bottom['2']['opt_image_hover_item_icon'] . '" data-value="' . $opt_image_hover_item_bottom['2']['opt_image_hover_item_2_icon'] . '"></i>';
                 } else {
                     if ($opt_image_hover_item_bottom['template'] == 3) {
                         $hover_bottom = '<img src="' . $opt_image_hover_item_bottom['3']['opt_image_hover_item_image']['url'] . '">';
                     }
                 }
             }
         }
     } else {
         /**
          * Variables when unyson plugin not added
          */
         $widget_component_elements = array("Image", "Title", "Categories");
         $widget_category_tag_number = 3;
         $small_image_ratio = fw_get_db_customizer_option('opt_small_image_ratio');
         $width = 390;
         $show_hover_effects = fw_get_db_customizer_option('opt_show_hover_effects');
         $small_image_ratio = 0.5625;
         $excerpt_length = 11;
         $show_hover_effects = "No";
         $hover_top = '+';
         $hover_bottom = 'N';
     }
     $cache = wp_cache_get('theme_widget_related_posts', 'widget');
     if (!is_array($cache)) {
         $cache = array();
     }
     if (isset($cache[$args['widget_id']])) {
         echo $cache[$args['widget_id']];
         return;
     }
     ob_start();
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? __('Mini Blog', 'thshpr') : $instance['title'], $instance, $this->id_base);
     if (!($number = (int) $instance['number'])) {
         $number = 10;
     } else {
         if ($number < 1) {
             $number = 1;
         } else {
             if ($number > 15) {
                 $number = 15;
             }
         }
     }
     global $post;
     $tags = wp_get_post_tags($post->ID);
     $tagIDs = array();
     if ($tags) {
         $tagcount = count($tags);
         for ($i = 0; $i < $tagcount; $i++) {
             $tagIDs[$i] = $tags[$i]->term_id;
         }
         $query = array('tag__in' => $tagIDs, 'post__not_in' => array($post->ID), 'showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1);
         /**
          * Get category ID's
          */
         $catids = array();
         foreach ($instance['cat'] as $name) {
             $term = get_term_by("name", $name, 'category');
             $catids[] = $term->term_id;
             //store the id of each slug in $catids
         }
         $post_category = implode(',', $catids);
         if (!empty($instance['cat'])) {
             $query['cat'] = $post_category;
         }
         $the_query = new WP_Query($query);
         if ($the_query->have_posts()) {
             echo $before_widget;
             if ($title) {
                 echo $before_title . $title . $after_title;
             }
             echo '<div class="related-posts-wrap posts posts-widget">';
             echo '<ul class="thumb-list">';
             while ($the_query->have_posts()) {
                 echo '<li>';
                 $the_query->the_post();
                 $item_string = "";
                 //set it up for concat
                 $post_format = get_post_format();
                 include locate_template('widget-templates/components-string.php');
                 //generates title string from customzed options
                 echo $item_string;
                 echo '</li>';
             }
             echo '</ul>';
             echo '</div>';
             echo $after_widget;
             // Reset the global $the_post as this query will have roflstomped on it
             wp_reset_query();
         }
         $cache[$args['widget_id']] = ob_get_flush();
         wp_cache_set('theme_widget_related_posts', $cache, 'widget');
     }
 }
Example #5
0
    $footer_top_row_background_image = fw_get_db_customizer_option('opt_footer_top_row_background_image');
    $footer_top_row_background_position = fw_get_db_customizer_option('opt_footer_top_row_background_position');
    $footer_top_row_background_repeat = fw_get_db_customizer_option('opt_footer_top_row_background_repeat');
    $footer_top_row_background_size = fw_get_db_customizer_option('opt_footer_top_row_background_size');
    $footer_main_row_background_color = fw_get_db_customizer_option('opt_footer_main_row_background_color');
    $footer_main_row_background_image = fw_get_db_customizer_option('opt_footer_main_row_background_image');
    $footer_main_row_background_position = fw_get_db_customizer_option('opt_footer_main_row_background_position');
    $footer_main_row_background_repeat = fw_get_db_customizer_option('opt_footer_main_row_background_repeat');
    $footer_main_row_background_size = fw_get_db_customizer_option('opt_footer_main_row_background_size');
    $footer_bottom_row_background_color = fw_get_db_customizer_option('opt_footer_bottom_row_background_color');
    $footer_bottom_row_background_image = fw_get_db_customizer_option('opt_footer_bottom_row_background_image');
    $footer_bottom_row_background_position = fw_get_db_customizer_option('opt_footer_bottom_row_background_position');
    $footer_bottom_row_background_repeat = fw_get_db_customizer_option('opt_footer_bottom_row_background_repeat');
    $footer_bottom_row_background_size = fw_get_db_customizer_option('opt_footer_bottom_row_background_size');
    $footer_back_to_top_button = fw_get_db_customizer_option('opt_footer_back_to_top_button');
    $sidebar_header_accent = fw_get_db_customizer_option('opt_sidebar_header_accent');
    if ($sidebar_header_accent == 1) {
        $sidebar_header_class = "fancy-header";
    } else {
        $sidebar_header_class = "";
    }
} else {
    $create_top_bar_widgets = 2;
    $footer_top_row_columns = 0;
    $footer_main_row_columns = 3;
    $footer_bottom_row_columns = 1;
    $footer_top_row_full_width = 0;
    $footer_main_row_full_width = 0;
    $footer_bottom_row_full_width = 0;
    $footer_top_row_cell_alignment = 0;
    $footer_main_row_cell_alignment = 0;
Example #6
0
<?php

/**
 * The template for displaying the page borders.
 *
 *
 * @package naked
 */
if (function_exists('fw_get_db_customizer_option')) {
    /*header options*/
    $site_borders_color = fw_get_db_customizer_option('opt_site_borders_color');
    $site_borders_size = fw_get_db_customizer_option('opt_site_borders_size');
} else {
    $site_borders_color = "#111";
    $site_borders_size = 20;
}
if ($site_borders_size > 0) {
    $css_string = 'style="width:' . $site_borders_size . 'px; background-color:' . $site_borders_color . ';"';
    echo '
	<div class="top-border" style="height:' . $site_borders_size . 'px; width:100%; background-color:' . $site_borders_color . ';"></div>
	<div class="left-border" style="width:' . $site_borders_size . 'px; height:100%; background-color:' . $site_borders_color . ';"></div>
	<div class="bottom-border" style="height:' . $site_borders_size . 'px; width:100%; background-color:' . $site_borders_color . ';"></div>
	<div class="right-border" style="width:' . $site_borders_size . 'px; height:100%; background-color:' . $site_borders_color . ';"></div>';
}
Example #7
0
/**
 * Register widgetized area and update sidebar with default widgets
 */
function thshpr_widgets_init()
{
    register_sidebar(array('name' => __('Sidebar', 'naked'), 'id' => 'right-sidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
    //add a couple of spare sidebars for the pagebuilder easeOutCirc
    register_sidebar(array('name' => __('Pagebuilder Sidebar 1', 'naked'), 'id' => 'pagebuilder-sidebar-1', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
    /*register_sidebar( array(
    		'name'          => __( 'Pagebuilder Sidebar 2', 'naked' ),
    		'id'            => 'pagebuilder-sidebar-2',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );
        register_sidebar( array(
    		'name'          => __( 'Pagebuilder Sidebar 3', 'naked' ),
    		'id'            => 'pagebuilder-sidebar-3',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );
        register_sidebar( array(
    		'name'          => __( 'Pagebuilder Sidebar 3', 'naked' ),
    		'id'            => 'pagebuilder-sidebar-3',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );*/
    if (function_exists('fw_get_db_customizer_option')) {
        $extra_top_bar_widget = fw_get_db_customizer_option('opt_header_extra_top_bar_widgets');
        $footer_top_row_columns = fw_get_db_customizer_option('opt_footer_top_row_columns');
        $footer_main_row_columns = fw_get_db_customizer_option('opt_footer_main_row_columns');
        $footer_bottom_row_columns = fw_get_db_customizer_option('opt_footer_bottom_row_columns');
        if ($extra_top_bar_widget) {
            $create_top_bar_widgets = 2;
        } else {
            $create_top_bar_widgets = 0;
        }
    } else {
        $create_top_bar_widgets = 2;
        $footer_top_row_columns = 0;
        $footer_main_row_columns = 3;
        $footer_bottom_row_columns = 1;
    }
    /**
     * Extra Top Bar Widgets
     */
    if ($create_top_bar_widgets == 2) {
        register_sidebar(array('name' => __('Extra Top Bar Left', 'thshpr'), 'id' => 'extra-top-bar-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="top-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Extra Top Bar Right', 'thshpr'), 'id' => 'extra-top-bar-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="top-widget-title">', 'after_title' => '</h3>'));
    }
    /**
     * Footer Top Row Widgets
     */
    if ($footer_top_row_columns == 1) {
        register_sidebar(array('name' => __('Footer Top Row', 'thshpr'), 'id' => 'footer-top-row', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-top-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_top_row_columns == 2) {
        register_sidebar(array('name' => __('Footer Top Row Left', 'thshpr'), 'id' => 'footer-top-row-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-top-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Top Row Right', 'thshpr'), 'id' => 'footer-top-row-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-top-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_top_row_columns == 3) {
        register_sidebar(array('name' => __('Footer Top Row Left', 'thshpr'), 'id' => 'footer-top-row-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-top-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Top Row Middle', 'thshpr'), 'id' => 'footer-top-row-middle', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-top-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Top Row Right', 'thshpr'), 'id' => 'footer-top-row-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-top-row-widget-title">', 'after_title' => '</h3>'));
    }
    /**
     * Footer Bottom Row Widgets
     */
    if ($footer_bottom_row_columns == 1) {
        register_sidebar(array('name' => __('Footer Bottom Row', 'thshpr'), 'id' => 'footer-bottom-row', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-bottom-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_bottom_row_columns == 2) {
        register_sidebar(array('name' => __('Footer Bottom Row Left', 'thshpr'), 'id' => 'footer-bottom-row-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-bottom-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Bottom Row Right', 'thshpr'), 'id' => 'footer-bottom-row-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-bottom-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_bottom_row_columns == 3) {
        register_sidebar(array('name' => __('Footer Bottom Row Left', 'thshpr'), 'id' => 'footer-bottom-row-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-bottom-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Bottom Row Middle', 'thshpr'), 'id' => 'footer-bottom-row-middle', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-bottom-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Bottom Row Right', 'thshpr'), 'id' => 'footer-bottom-row-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-bottom-row-widget-title">', 'after_title' => '</h3>'));
    }
    /**
     * Footer Main Row Widgets
     */
    if ($footer_main_row_columns == 1) {
        register_sidebar(array('name' => __('Footer Main Row', 'thshpr'), 'id' => 'footer-main-row', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_main_row_columns == 2) {
        register_sidebar(array('name' => __('Footer Main Row Left', 'thshpr'), 'id' => 'footer-main-row-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right', 'thshpr'), 'id' => 'footer-main-row-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_main_row_columns == 3) {
        register_sidebar(array('name' => __('Footer Main Row Left', 'thshpr'), 'id' => 'footer-main-row-left', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Middle', 'thshpr'), 'id' => 'footer-main-row-middle', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right', 'thshpr'), 'id' => 'footer-main-row-right', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_main_row_columns == 4) {
        register_sidebar(array('name' => __('Footer Main Row Left 1', 'thshpr'), 'id' => 'footer-main-row-left-1', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Left 2', 'thshpr'), 'id' => 'footer-main-row-left-2', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right 1', 'thshpr'), 'id' => 'footer-main-row-right-1', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right 2', 'thshpr'), 'id' => 'footer-main-row-right-2', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
    }
    if ($footer_main_row_columns == 6) {
        register_sidebar(array('name' => __('Footer Main Row Left 1', 'thshpr'), 'id' => 'footer-main-row-left-1', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Left 2', 'thshpr'), 'id' => 'footer-main-row-left-2', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Left 3', 'thshpr'), 'id' => 'footer-main-row-left-3', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right 1', 'thshpr'), 'id' => 'footer-main-row-right-1', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right 2', 'thshpr'), 'id' => 'footer-main-row-right-2', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
        register_sidebar(array('name' => __('Footer Main Row Right 3', 'thshpr'), 'id' => 'footer-main-row-right-3', 'before_widget' => '<span id="%1$s" class="widget %2$s">', 'after_widget' => '</span>', 'before_title' => '<h3 class="footer-main-row-widget-title">', 'after_title' => '</h3>'));
    }
}
Example #8
0
    $show_social = fw_get_db_customizer_option('opt_header_show_social');
    $horizontal_center = fw_get_db_customizer_option('opt_header_horizontal_center');
    $extra_top_bar_widget = fw_get_db_customizer_option('opt_header_extra_top_bar_widgets');
    $social_twitter = fw_get_db_customizer_option('opt_social_twitter');
    $social_facebook = fw_get_db_customizer_option('opt_social_facebook');
    $social_googleplus = fw_get_db_customizer_option('opt_social_googleplus');
    $social_linkedin = fw_get_db_customizer_option('opt_social_linkedin');
    $social_youtube = fw_get_db_customizer_option('opt_social_youtube');
    $social_pinterest = fw_get_db_customizer_option('opt_social_pinterest');
    $social_instagram = fw_get_db_customizer_option('opt_social_instagram');
    $social_tumblr = fw_get_db_customizer_option('opt_social_tumblr');
    $social_vine = fw_get_db_customizer_option('opt_social_vine');
    $social_snapchat = fw_get_db_customizer_option('opt_social_snapchat');
    $social_reddit = fw_get_db_customizer_option('opt_social_reddit');
    $social_flickr = fw_get_db_customizer_option('opt_social_flickr');
    $social_email = fw_get_db_customizer_option('opt_social_email');
    if ($horizontal_center) {
        $horizontal_center_class = 'horizontal-center';
    } else {
        $horizontal_center_class = '';
    }
    if ($sticky_header) {
        $sticky_header_class = 'sticky-header';
    } else {
        $sticky_header_class = 'normal-header';
    }
}
?>

<div class="menu-hover-icon"><i class="fa fa-caret-up" aria-hidden="true"></i></div>
<div id="animatedModal">
Example #9
0
     $header_image_height = fw_get_db_customizer_option('opt_categories_header_image_height');
     $background_position = fw_get_db_customizer_option('opt_categories_background_position');
     $background_color = fw_get_db_customizer_option('opt_categories_background_color');
     $background_repeat = fw_get_db_customizer_option('opt_categories_background_repeat');
     $background_size = fw_get_db_customizer_option('opt_categories_background_size');
     $background_parallax_ratio = fw_get_db_customizer_option('opt_categories_background_parallax_ratio');
     /**
      * Title Options
      */
     $breadcrumbs_homepage_title = fw_get_db_customizer_option('opt_breadcrumbs_homepage_title');
     $title_components_elements = fw_get_db_customizer_option('opt_categories_title_functionality');
     $header_divider_type = fw_get_db_customizer_option('opt_categories_title_divider_type');
     $title_shift_title = fw_get_db_customizer_option('opt_categories_shift_amount');
     $title_shift_breadcrumbs = fw_get_db_customizer_option('opt_categories_breadcrumbs_shift_amount');
     $breadcrumbs_homepage_title = fw_get_db_customizer_option('opt_breadcrumbs_homepage_title');
     $title_margin_amount = fw_get_db_customizer_option('opt_breadcrumbs_title_bottom_margin_amount');
 }
 if ($show_page_numbers == "Yes") {
     $show_page_numbers_string = "show-page-numbers";
 } else {
     $show_page_numbers_string = "no-page-numbers";
 }
 if ($vertical_align_columns == "Yes") {
     $vertical_align_columns_string = "eq-height";
 } else {
     $vertical_align_columns_string = "";
 }
 $post_categories = $wp_query->get_queried_object_id();
 $content_column_string = '';
 if ($sidebar_type == "left") {
     $content_column_string .= "fw-col-md-8 m-right";