<?php

/**
 * Template Name: Page: Full Sections Product
 *
 * For the full license information, please view the Licensing folder
 * that was distributed with this source code.
 *
 * @package G1_Framework
 * @subpackage G1_Theme03
 * @since G1_Theme03 1.0.0
 */
// Prevent direct script access
if (!defined('ABSPATH')) {
    die('No direct script access allowed');
}
// Add proper body classes
add_filter('body_class', array(G1_Theme(), 'secondary_none_body_class'));
add_filter('body_class', array(G1_Theme(), 'primary_full_body_class'));
get_header();
?>
	<?php 
get_template_part('template-parts/g1_primary_page_post');
get_footer();
Ejemplo n.º 2
0
/**
 * The Template (full width) for displaying single post.
 *
 * For the full license information, please view the Licensing folder
 * that was distributed with this source code.
 *
 * @package G1_Framework
 * @subpackage G1_Theme03
 * @since G1_Theme03 1.0.0
 */
// Prevent direct script access
if (!defined('ABSPATH')) {
    die('No direct script access allowed');
}
// Add proper body classes
add_filter('body_class', array(G1_Theme(), 'secondary_none_body_class'));
get_header();
?>
    <div id="primary">
        <div id="content" role="main">

            <?php 
while (have_posts()) {
    the_post();
    ?>
                <?php 
    get_template_part('template-parts/g1_entry_full', get_post_format());
    ?>
            <?php 
}
// end of the loop.
Ejemplo n.º 3
0
/**
 * Gets a theme option
 */
function g1_get_theme_option($base, $key, $default = false)
{
    static $storage_values = null;
    $storage_name = G1_Theme()->get_id();
    if (null === $storage_values || defined('G1_CUSTOMIZE_MODE')) {
        $storage_values = get_option($storage_name, array());
    }
    $option_name = $base;
    if (strlen($key) > 0) {
        $option_name .= '_' . $key;
    }
    $result = isset($storage_values[$option_name]) ? $storage_values[$option_name] : $default;
    return $result;
}
Ejemplo n.º 4
0
function setup_redux_framework_options()
{
    $args = array();
    // Setting dev mode to true allows you to view the class settings/info in the panel.
    // Default: true
    $args['dev_mode'] = false;
    // Set the icon for the dev mode tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: info-sign
    //$args['dev_mode_icon'] = 'info-sign';
    // Set the class for the dev mode tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['dev_mode_icon_class'] = 'icon-large';
    // If you want to use Google Webfonts, you MUST define the api key.
    $args['google_api_key'] = 'AIzaSyARJV95W1bhfrtQ2trA9FUxMGKHqpYkLS0';
    // Define the starting tab for the option panel.
    // Default: '0';
    //$args['last_tab'] = '0';
    // Define the option panel stylesheet. Options are 'standard', 'custom', and 'none'
    // If only minor tweaks are needed, set to 'custom' and override the necessary styles through the included custom.css stylesheet.
    // If replacing the stylesheet, set to 'none' and don't forget to enqueue another stylesheet!
    // Default: 'standard'
    $args['admin_stylesheet'] = 'custom';
    // Add HTML before the form.
    //$args['intro_text'] = __('<p>This text is displayed above the options panel. It isn\'t required, but more info is always better! The intro_text field accepts all HTML.</p>', Redux_TEXT_DOMAIN);
    // Add content after the form.
    //$args['footer_text'] = __('<p>This text is displayed below the options panel. It isn\'t required, but more info is always better! The footer_text field accepts all HTML.</p>', Redux_TEXT_DOMAIN);
    // Set footer/credit line.
    //$args['footer_credit'] = __('<p>This text is displayed in the options panel footer across from the WordPress version (where it normally says \'Thank you for creating with WordPress\'). This field accepts all HTML.</p>', Redux_TEXT_DOMAIN);
    // Setup custom links in the footer for share icons
    $args['share_icons']['twitter'] = array('link' => 'http://twitter.com/bringthepixel', 'title' => 'Follow us on Twitter', 'img' => Redux_OPTIONS_URL . 'img/social/Twitter.png');
    $args['share_icons']['facebook'] = array('link' => 'http://www.facebook.com/bringthepixel', 'title' => 'Find us on Facebook', 'img' => Redux_OPTIONS_URL . 'img/social/Facebook.png');
    // Enable the import/export feature.
    // Default: true
    $args['show_import_export'] = true;
    // Set the icon for the import/export tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: refresh
    //$args['import_icon'] = 'refresh';
    // Set the class for the import/export tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['import_icon_class'] = 'icon-large';
    // Set a custom option name. Don't forget to replace spaces with underscores!
    $args['opt_name'] = G1_Theme()->get_id();
    $args['sections_filter_name'] = '3clicks';
    $args['skin_options'] = array('style_ui_corners', 'style_background', 'style_background_switch', 'style_background_image', 'style_background_image_hdpi', 'style_background_repeat', 'style_background_position', 'style_background_attachment', 'style_background_scroll', 'style_top_background', 'style_top_background_switch', 'style_top_background_image', 'style_top_background_image_hdpi', 'style_top_background_repeat', 'style_top_background_position', 'style_top_background_attachment', 'style_top_background_scroll', 'style_fonts_regular_type', 'style_fonts_regular_google_font', 'style_fonts_regular_size', 'style_fonts_meta_type', 'style_fonts_meta_google_font', 'style_fonts_important_type', 'style_fonts_important_google_font', 'style_fonts_important_size', 'style_fonts_primary_nav_type', 'style_fonts_primary_nav_google_font', 'style_fonts_primary_nav_size', 'style_fonts_primary_nav_padding_top', 'style_fonts_primary_nav_padding_bottom', 'ta_preheader_open_type', 'ta_preheader_open_on_startup', 'ta_preheader_space', 'ta_preheader_top_divider_switch', 'ta_preheader_top_divider_color', 'ta_preheader_top_divider_width', 'ta_preheader_bottom_divider_switch', 'ta_preheader_bottom_divider_color', 'ta_preheader_bottom_divider_width', 'ta_preheader_layout', 'ta_preheader_composition', 'ta_preheader_g1_social_icons', 'ta_preheader_searchform', 'ta_preheader_cs_1_background', 'ta_preheader_cs_1_background_opacity', 'ta_preheader_cs_1_background_switch', 'ta_preheader_cs_1_background_image', 'ta_preheader_cs_1_background_image_hdpi', 'ta_preheader_cs_1_background_repeat', 'ta_preheader_cs_1_background_position', 'ta_preheader_cs_1_background_attachment', 'ta_preheader_cs_1_text1', 'ta_preheader_cs_1_text2', 'ta_preheader_cs_1_text3', 'ta_preheader_cs_1_link', 'ta_preheader_cs_1_link_hover', 'ta_preheader_cs_2_background', 'ta_preheader_cs_2_text1', 'ta_header_position', 'ta_header_space', 'ta_header_top_divider_switch', 'ta_header_top_divider_color', 'ta_header_top_divider_width', 'ta_header_bottom_divider_switch', 'ta_header_bottom_divider_color', 'ta_header_bottom_divider_width', 'ta_header_layout', 'ta_header_composition', 'ta_header_id_margin_top', 'ta_header_id_margin_bottom', 'ta_header_primary_nav_margin_top', 'ta_header_primary_nav_margin_bottom', 'ta_header_tagline', 'ta_header_searchform', 'ta_header_primary_nav_style', 'ta_header_cs_1_background', 'ta_header_cs_1_background_opacity', 'ta_header_cs_1_background_switch', 'ta_header_cs_1_background_image', 'ta_header_cs_1_background_image_hdpi', 'ta_header_cs_1_background_repeat', 'ta_header_cs_1_background_position', 'ta_header_cs_1_background_attachment', 'ta_header_cs_1_text1', 'ta_header_cs_1_text2', 'ta_header_cs_1_text3', 'ta_header_cs_1_link', 'ta_header_cs_1_link_hover', 'ta_header_cs_2_background', 'ta_header_cs_2_text1', 'ta_precontent_space', 'ta_precontent_top_divider_switch', 'ta_precontent_top_divider_color', 'ta_precontent_top_divider_width', 'ta_precontent_bottom_divider_switch', 'ta_precontent_bottom_divider_color', 'ta_precontent_bottom_divider_width', 'ta_precontent_layout', 'ta_precontent_cs_1_background', 'ta_precontent_cs_1_background_opacity', 'ta_precontent_cs_1_background_switch', 'ta_precontent_cs_1_background_image', 'ta_precontent_cs_1_background_image_hdpi', 'ta_precontent_cs_1_background_repeat', 'ta_precontent_cs_1_background_position', 'ta_precontent_cs_1_background_attachment', 'ta_precontent_cs_1_text1', 'ta_precontent_cs_1_text2', 'ta_precontent_cs_1_text3', 'ta_precontent_cs_1_link', 'ta_precontent_cs_1_link_hover', 'ta_precontent_cs_2_background', 'ta_precontent_cs_2_text1', 'ta_content_space', 'ta_content_top_divider_switch', 'ta_content_top_divider_color', 'ta_content_top_divider_width', 'ta_content_bottom_divider_switch', 'ta_content_bottom_divider_color', 'ta_content_bottom_divider_width', 'ta_content_layout', 'ta_content_cs_1_background', 'ta_content_cs_1_background_opacity', 'ta_content_cs_1_background_switch', 'ta_content_cs_1_background_image', 'ta_content_cs_1_background_image_hdpi', 'ta_content_cs_1_background_repeat', 'ta_content_cs_1_background_position', 'ta_content_cs_1_background_attachment', 'ta_content_cs_1_text1', 'ta_content_cs_1_text2', 'ta_content_cs_1_text3', 'ta_content_cs_1_link', 'ta_content_cs_1_link_hover', 'ta_content_cs_2_background', 'ta_content_cs_2_text1', 'ta_prefooter_space', 'ta_prefooter_top_divider_switch', 'ta_prefooter_top_divider_color', 'ta_prefooter_top_divider_width', 'ta_prefooter_bottom_divider_switch', 'ta_prefooter_bottom_divider_color', 'ta_prefooter_bottom_divider_width', 'ta_prefooter_layout', 'ta_prefooter_composition', 'ta_prefooter_twitter_toolbar', 'ta_prefooter_gmap', 'ta_prefooter_cs_1_background', 'ta_prefooter_cs_1_background_opacity', 'ta_prefooter_cs_1_background_switch', 'ta_prefooter_cs_1_background_image', 'ta_prefooter_cs_1_background_image_hdpi', 'ta_prefooter_cs_1_background_repeat', 'ta_prefooter_cs_1_background_position', 'ta_prefooter_cs_1_background_attachment', 'ta_prefooter_cs_1_text1', 'ta_prefooter_cs_1_text2', 'ta_prefooter_cs_1_text3', 'ta_prefooter_cs_1_link', 'ta_prefooter_cs_1_link_hover', 'ta_prefooter_cs_2_background', 'ta_prefooter_cs_2_text1', 'ta_footer_space', 'ta_footer_top_divider_switch', 'ta_footer_top_divider_color', 'ta_footer_top_divider_width', 'ta_footer_bottom_divider_switch', 'ta_footer_bottom_divider_color', 'ta_footer_bottom_divider_width', 'ta_footer_layout', 'ta_footer_composition', 'ta_footer_cs_1_background', 'ta_footer_cs_1_background_opacity', 'ta_footer_cs_1_background_switch', 'ta_footer_cs_1_background_image', 'ta_footer_cs_1_background_image_hdpi', 'ta_footer_cs_1_background_repeat', 'ta_footer_cs_1_background_position', 'ta_footer_cs_1_background_attachment', 'ta_footer_cs_1_text1', 'ta_footer_cs_1_text2', 'ta_footer_cs_1_text3', 'ta_footer_cs_1_link', 'ta_footer_cs_1_link_hover', 'ta_footer_cs_2_background', 'ta_footer_cs_2_text1', 'map_color', 'map_invert_lightness');
    // Set a custom menu icon.
    //$args['menu_icon'] = '';
    // Set a custom title for the options page.
    // Default: Options
    $args['menu_title'] = __('Theme Options', Redux_TEXT_DOMAIN);
    // Set a custom page title for the options page.
    // Default: Options
    $args['page_title'] = __('Theme Options', Redux_TEXT_DOMAIN);
    // Set a custom page slug for options page (wp-admin/themes.php?page=***).
    // Default: redux_options
    $args['page_slug'] = 'g1_theme_options';
    // Register theme options page under 'Appearance'
    $args['page_type'] = 'submenu';
    $args['page_parent'] = 'themes.php';
    // Set a custom page capability.
    // Default: manage_options
    //$args['page_cap'] = 'manage_options';
    // Set the menu type. Set to "menu" for a top level menu, or "submenu" to add below an existing item.
    // Default: menu
    //$args['page_type'] = 'submenu';
    // Set the parent menu.
    // Default: themes.php
    // A list of available parent menus is available at http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
    //$args['page_parent'] = 'options_general.php';
    // Set a custom page location. This allows you to place your menu where you want in the menu order.
    // Must be unique or it will override other items!
    // Default: null
    //$args['page_position'] = null;
    // Set a custom page icon class (used to override the page icon next to heading)
    //$args['page_icon'] = 'icon-themes';
    // Set the icon type. Set to "iconfont" for Font Awesome, or "image" for traditional.
    // Redux no longer ships with standard icons!
    // Default: iconfont
    //$args['icon_type'] = 'image';
    // Disable the panel sections showing as submenu items.
    // Default: true
    //$args['allow_sub_menu'] = false;
    // Set ANY custom page help tabs, displayed using the new help tab API. Tabs are shown in order of definition.
    //$args['help_tabs'][] = array(
    //    'id' => 'redux-opts-1',
    //    'title' => __('Theme Information 1', Redux_TEXT_DOMAIN),
    //    'content' => __('<p>This is the tab content, HTML is allowed.</p>', Redux_TEXT_DOMAIN)
    //);
    //$args['help_tabs'][] = array(
    //    'id' => 'redux-opts-2',
    //    'title' => __('Theme Information 2', Redux_TEXT_DOMAIN),
    //    'content' => __('<p>This is the tab content, HTML is allowed.</p>', Redux_TEXT_DOMAIN)
    //);
    // Set the help sidebar for the options page.
    //$args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', Redux_TEXT_DOMAIN);
    $sections = array();
    $tabs = array();
    add_filter(get_redux_opts_sections_filter_name(), 'g1_theme_options_sort_sections_and_fields', 9999);
    global $Redux_Options;
    $Redux_Options = new Redux_Options($sections, $args, $tabs);
}
Ejemplo n.º 5
0
function g1_theme_options_register($sections)
{
    $image_uri = trailingslashit(get_template_directory_uri()) . 'images/admin-assets/';
    // General
    $sections['general'] = array('priority' => 20, 'icon' => 'cog', 'icon_class' => 'icon-large', 'title' => __('General', Redux_TEXT_DOMAIN), 'fields' => array());
    $sections['general_main'] = array('priority' => 24, 'icon' => 'cog', 'icon_class' => 'icon-large', 'title' => __('Main', Redux_TEXT_DOMAIN), 'fields' => array(array('id' => 'general_footer_text', 'priority' => 10, 'type' => 'text', 'title' => __('Footer Text', Redux_TEXT_DOMAIN), 'desc' => __('eg. Copyright @ 2013 YourCompany', Redux_TEXT_DOMAIN), 'validate' => 'html', 'std' => '© 2013 by some company. Remember to change this'), array('id' => 'general_responsive_design', 'priority' => 15, 'type' => 'select', 'title' => __('Responsive Design', Redux_TEXT_DOMAIN), 'options' => array('standard' => 'on', 'none' => 'off'), 'switch' => true, 'std' => 'standard'), array('id' => 'general_helpmode', 'priority' => 20, 'type' => 'select', 'title' => __('HelpMode', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Enable the HelpMode to get some useful tips throughout the site.', Redux_TEXT_DOMAIN) . '</p>' . '<p>' . __('The HelpMode is visible only to users who have been assigned the administrator role, so regular site visitors don\'t see it.', Redux_TEXT_DOMAIN) . '</p>', 'options' => array('standard' => 'on', 'none' => 'off'), 'switch' => true, 'std' => 'standard'), array('id' => 'general_scroll_to_top', 'priority' => 30, 'type' => 'select', 'title' => __('Scroll To Top', Redux_TEXT_DOMAIN), 'sub_desc' => __('Enable button allowing quick page scroll to the top.', Redux_TEXT_DOMAIN), 'options' => array('standard' => 'on', 'none' => 'off'), 'switch' => true, 'std' => 'standard')));
    $sections['general_branding'] = array('priority' => 26, 'icon' => 'briefcase', 'icon_class' => 'icon-large', 'title' => __('Branding', Redux_TEXT_DOMAIN), 'fields' => array(array('id' => 'branding_logo', 'priority' => 110, 'type' => 'upload', 'title' => __('Desktop Logo', Redux_TEXT_DOMAIN), 'sub_desc' => sprintf(__('Leave it blank to display the site title from <a href="%s">WP General Settings</a> instead.', Redux_TEXT_DOMAIN), network_admin_url('options-general.php'))), array('id' => 'branding_logo_width', 'priority' => 112, 'type' => 'text', 'title' => __('Desktop Logo Width', Redux_TEXT_DOMAIN), 'sub_desc' => __('in pixels', Redux_TEXT_DOMAIN)), array('id' => 'branding_logo_height', 'priority' => 114, 'type' => 'text', 'title' => __('Desktop Logo Height', Redux_TEXT_DOMAIN), 'sub_desc' => __('in pixels', Redux_TEXT_DOMAIN)), array('id' => 'branding_logo_hdpi', 'priority' => 120, 'type' => 'upload', 'title' => __('Desktop Logo (High DPI)', Redux_TEXT_DOMAIN), 'sub_desc' => __('An image for High DPI screen (like Retina) should be twice as big.', Redux_TEXT_DOMAIN)), array('id' => 'branding_logo_mobile', 'priority' => 130, 'type' => 'upload', 'title' => __('Mobile Logo', Redux_TEXT_DOMAIN)), array('id' => 'branding_logo_mobile_width', 'priority' => 132, 'type' => 'text', 'title' => __('Mobile Logo Width', Redux_TEXT_DOMAIN), 'sub_desc' => __('in pixels', Redux_TEXT_DOMAIN)), array('id' => 'branding_logo_mobile_height', 'priority' => 134, 'type' => 'text', 'title' => __('Mobile Logo Height', Redux_TEXT_DOMAIN), 'sub_desc' => __('in pixels', Redux_TEXT_DOMAIN)), array('id' => 'branding_logo_mobile_hdpi', 'priority' => 140, 'type' => 'upload', 'title' => __('Mobile Logo (High DPI)', Redux_TEXT_DOMAIN), 'sub_desc' => __('An image for High DPI screen (like Retina) should be twice as big.', Redux_TEXT_DOMAIN)), array('id' => 'branding_favicon', 'priority' => 150, 'type' => 'upload', 'title' => __('Favicon', Redux_TEXT_DOMAIN), 'sub_desc' => __('The recommended size is 16x16 pixels.', Redux_TEXT_DOMAIN)), array('id' => 'branding_apple_touch_icon', 'priority' => 160, 'type' => 'upload', 'title' => __('Apple Touch Icon', Redux_TEXT_DOMAIN), 'sub_desc' => __('The recommended size is 114x114 pixels.', Redux_TEXT_DOMAIN))));
    // Style
    $sections['style'] = array('priority' => 30, 'icon' => 'tint', 'icon_class' => 'icon-large', 'title' => __('Style', Redux_TEXT_DOMAIN), 'fields' => array());
    $sections['style_main'] = array('priority' => 40, 'icon' => 'adjust', 'icon_class' => 'icon-large', 'title' => __('Main', Redux_TEXT_DOMAIN), 'fields' => array(array('id' => 'style_ui_corners', 'priority' => 10, 'type' => 'g1_border_radius', 'title' => __('UI Corners', Redux_TEXT_DOMAIN), 'sub_desc' => __('This will be applied to buttons, boxes, tabs, etc', Redux_TEXT_DOMAIN), 'std' => array('tl' => 'squircle', 'tr' => 'squircle', 'br' => 'squircle', 'bl' => 'squircle')), array('id' => 'style_background_info', 'priority' => 100, 'type' => 'info', 'desc' => '<h4>' . __('Body Background', Redux_TEXT_DOMAIN) . '</h4>'), array('id' => 'style_background', 'priority' => 200, 'type' => 'color', 'title' => __('Background Color', Redux_TEXT_DOMAIN), 'std' => '#ffffff'), array('id' => 'style_background_scroll', 'priority' => 290, 'type' => 'select', 'title' => __('Background Scroll', Redux_TEXT_DOMAIN), 'sub_desc' => __('Parallax scrolling effect', Redux_TEXT_DOMAIN), 'options' => array('standard' => __('on', Redux_TEXT_DOMAIN), 'none' => __('off', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'none'), array('id' => 'style_background_info', 'priority' => 299, 'type' => 'info', 'desc' => '<h4>' . __('Top Background (preheader + header + precontent)', Redux_TEXT_DOMAIN) . '</h3>'), array('id' => 'style_top_background', 'priority' => 300, 'type' => 'color', 'title' => __('Background Color', Redux_TEXT_DOMAIN)), array('id' => 'style_top_background_scroll', 'priority' => 390, 'type' => 'select', 'title' => __('Background Scroll', Redux_TEXT_DOMAIN), 'sub_desc' => __('Parallax scrolling effect', Redux_TEXT_DOMAIN), 'options' => array('standard' => __('on', Redux_TEXT_DOMAIN), 'none' => __('off', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'none')));
    $sections['style_main']['fields'] = array_merge($sections['style_main']['fields'], g1_redux_field_background_image('Background', 'style_background', 210));
    $sections['style_main']['fields'] = array_merge($sections['style_main']['fields'], g1_redux_field_background_image('Background', 'style_top_background', 310));
    $theme_areas_fields = array();
    /* Preheader */
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_open_type', 'priority' => 100, 'type' => 'select', 'title' => __('How To Open?', Redux_TEXT_DOMAIN), 'options' => array('expand' => 'expand', 'overlay' => 'overlay'), 'switch' => true, 'std' => 'overlay');
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_open_on_startup', 'priority' => 102, 'type' => 'select', 'title' => __('Initial State', Redux_TEXT_DOMAIN), 'options' => array('standard' => 'opened', 'none' => 'closed'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_space', 'priority' => 105, 'type' => 'select', 'title' => __('Space Before and After', Redux_TEXT_DOMAIN), 'options' => array('none' => 'off', 'before' => 'before', 'after' => 'after', 'before_after' => 'before and after'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['preheader'] = array_merge($theme_areas_fields['preheader'], g1_redux_field_theme_area_divider('Top', 'ta_preheader_top_divider', 106, array('switch' => 'standard', 'color' => '#fb4400', 'width' => 3)));
    $theme_areas_fields['preheader'] = array_merge($theme_areas_fields['preheader'], g1_redux_field_theme_area_divider('Bottom', 'ta_preheader_bottom_divider', 110, array('switch' => 'standard', 'color' => '#e6e6e6', 'width' => 1)));
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_layout', 'priority' => 115, 'type' => 'radio_img', 'title' => __('Layout', Redux_TEXT_DOMAIN), 'sub_desc' => __('Set the width of outer and inner boxes.', Redux_TEXT_DOMAIN), 'options' => array('wide-wide' => array('title' => 'wide-wide', 'img' => $image_uri . 'layout-wide-wide.png'), 'wide-semi' => array('title' => 'wide-semi', 'img' => $image_uri . 'layout-wide-semi.png'), 'wide-standard' => array('title' => 'wide-standard', 'img' => $image_uri . 'layout-wide-standard.png'), 'wide-narrow' => array('title' => 'wide-narrow', 'img' => $image_uri . 'layout-wide-narrow.png'), 'semi-standard' => array('title' => 'semi-standard', 'img' => $image_uri . 'layout-semi-standard.png'), 'semi-narrow' => array('title' => 'semi-narrow', 'img' => $image_uri . 'layout-semi-narrow.png'), 'standard-narrow' => array('title' => 'standard-narrow', 'img' => $image_uri . 'layout-standard-narrow.png')), 'std' => 'wide-narrow');
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_composition', 'priority' => 120, 'type' => 'radio_img', 'title' => __('Composition', Redux_TEXT_DOMAIN), 'sub_desc' => __('Choose arrangement of elements in the layout inner box.', Redux_TEXT_DOMAIN), 'options' => array('none' => array('title' => 'none', 'img' => $image_uri . 'none.png'), '1/1' => array('title' => '1-column', 'img' => $image_uri . 'widgets-1-column.png'), '1/2+1/2' => array('title' => '2-equal-columns', 'img' => $image_uri . 'widgets-2-equal-columns.png'), '1/1_1/3+1/3+1/3' => array('title' => 'full + 3-equal-columns', 'img' => $image_uri . 'widgets-full-3-equal-columns.png'), '1/3+1/3+1/3' => array('title' => '3-equal-columns', 'img' => $image_uri . 'widgets-3-equal-columns.png'), '1/4+1/4+1/4+1/4' => array('title' => '4-equal-columns', 'img' => $image_uri . 'widgets-4-equal-columns.png'), '1/2+1/4+1/4' => array('title' => '1/2 + 1/4 + 1/4', 'img' => $image_uri . 'widgets-1_2-1_4-1_4.png'), '1/4+1/2+1/4' => array('title' => '1/4 + 1/2 + 1/4', 'img' => $image_uri . 'widgets-1_4-1_2-1_4.png'), '1/4+1/4+1/2' => array('title' => '1/4 + 1/4 + 1/2', 'img' => $image_uri . 'widgets-1_4-1_4-1_2.png'), '1/4+3/4' => array('title' => '1/4 + 3/4', 'img' => $image_uri . 'widgets-1_4-3_4.png'), '3/4+1/4' => array('title' => '3/4 + 1/4', 'img' => $image_uri . 'widgets-3_4-1_4.png')), 'std' => '1/4+1/4+1/4+1/4');
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_layout_corners', 'priority' => 130, 'type' => 'g1_border_radius', 'title' => __('Layout Corners', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Change the roundness of the corners applied to the whole area', Redux_TEXT_DOMAIN) . '</p>');
    if (is_plugin_active('g1-social-icons/g1-social-icons.php')) {
        $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_g1_social_icons', 'priority' => 150, 'type' => 'select', 'title' => __('Social Icons', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . sprintf(__('You can edit social icons from the <a href="%s">G1 Social Icons Plugin Settings</a>', Redux_TEXT_DOMAIN), network_admin_url('options-general.php?page=g1_social_icons_options')) . '</p>', 'options' => array('none' => 'off', '24' => 'on'), 'switch' => true, 'std' => '24');
    }
    $theme_areas_fields['preheader'][] = array('id' => 'ta_preheader_searchform', 'priority' => 160, 'type' => 'select', 'title' => __('Search Form', Redux_TEXT_DOMAIN), 'options' => array('standard' => 'big', 'small' => 'small', 'none' => 'off'), 'switch' => true, 'std' => 'none');
    /* Header */
    $theme_areas_fields['header'][] = array('id' => 'ta_header_position', 'priority' => 200, 'type' => 'select', 'title' => __('Sticky Position', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Sticky header stays at the top as you scroll down', Redux_TEXT_DOMAIN) . '</p>', 'options' => array('static' => 'off', 'fixed' => 'on'), 'switch' => true, 'std' => 'fixed');
    $theme_areas_fields['header'][] = array('id' => 'ta_header_space', 'priority' => 205, 'type' => 'select', 'title' => __('Space Before and After', Redux_TEXT_DOMAIN), 'options' => array('none' => 'off', 'before' => 'before', 'after' => 'after', 'before_after' => 'before and after'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['header'] = array_merge($theme_areas_fields['header'], g1_redux_field_theme_area_divider('Top', 'ta_header_top_divider', 206, array('switch' => 'none')));
    $theme_areas_fields['header'] = array_merge($theme_areas_fields['header'], g1_redux_field_theme_area_divider('Bottom', 'ta_header_bottom_divider', 210, array('switch' => 'standard', 'color' => '#e6e6e6', 'width' => 1)));
    $theme_areas_fields['header'][] = array('id' => 'ta_header_layout', 'priority' => 215, 'type' => 'radio_img', 'title' => __('Layout', Redux_TEXT_DOMAIN), 'sub_desc' => __('Set the width of outer and inner boxes.', Redux_TEXT_DOMAIN), 'options' => array('wide-wide' => array('title' => 'wide-wide', 'img' => $image_uri . 'layout-wide-wide.png'), 'wide-semi' => array('title' => 'wide-semi', 'img' => $image_uri . 'layout-wide-semi.png'), 'wide-standard' => array('title' => 'wide-standard', 'img' => $image_uri . 'layout-wide-standard.png'), 'wide-narrow' => array('title' => 'wide-narrow', 'img' => $image_uri . 'layout-wide-narrow.png'), 'semi-standard' => array('title' => 'semi-standard', 'img' => $image_uri . 'layout-semi-standard.png'), 'semi-narrow' => array('title' => 'semi-narrow', 'img' => $image_uri . 'layout-semi-narrow.png'), 'standard-narrow' => array('title' => 'standard-narrow', 'img' => $image_uri . 'layout-standard-narrow.png')), 'std' => 'wide-narrow');
    $theme_areas_fields['header'][] = array('id' => 'ta_header_composition', 'priority' => 220, 'type' => 'radio_img', 'title' => __('Composition', Redux_TEXT_DOMAIN), 'sub_desc' => __('Choose arrangement of elements in the layout inner box.', Redux_TEXT_DOMAIN), 'options' => array('left-right' => array('title' => 'left-right', 'img' => $image_uri . 'header-composition-01.png'), 'right-left' => array('title' => 'right-left', 'img' => $image_uri . 'header-composition-03.png'), 'left-bottom' => array('title' => 'left-bottom', 'img' => $image_uri . 'header-composition-04.png'), 'center-bottom' => array('title' => 'center-bottom', 'img' => $image_uri . 'header-composition-05.png'), 'right-bottom' => array('title' => 'right-bottom', 'img' => $image_uri . 'header-composition-06.png'), 'left-top' => array('title' => 'left-top', 'img' => $image_uri . 'header-composition-07.png'), 'center-top' => array('title' => 'center-top', 'img' => $image_uri . 'header-composition-08.png'), 'right-top' => array('title' => 'right-top', 'img' => $image_uri . 'header-composition-09.png')), 'std' => 'left-right');
    $theme_areas_fields['header'][] = array('id' => 'ta_header_layout_corners', 'priority' => 230, 'type' => 'g1_border_radius', 'title' => __('Layout Corners', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Change the roundness of the corners applied to the whole area', Redux_TEXT_DOMAIN) . '</p>');
    $theme_areas_fields['header'][] = array('id' => 'ta_header_id_margin_top', 'priority' => 250, 'type' => 'g1_range', 'title' => __('Logo Margin Top', Redux_TEXT_DOMAIN), 'min' => 0, 'max' => 100, 'step' => 1, 'std' => 30);
    $theme_areas_fields['header'][] = array('id' => 'ta_header_id_margin_bottom', 'priority' => 260, 'type' => 'g1_range', 'title' => __('Logo Margin Bottom', Redux_TEXT_DOMAIN), 'min' => 0, 'max' => 100, 'step' => 1, 'std' => 30);
    $theme_areas_fields['header'][] = array('id' => 'ta_header_primary_nav_margin_top', 'priority' => 270, 'type' => 'g1_range', 'title' => __('Primary Nav Margin Top', Redux_TEXT_DOMAIN), 'min' => 0, 'max' => 100, 'step' => 1, 'std' => 30);
    $theme_areas_fields['header'][] = array('id' => 'ta_header_primary_nav_margin_bottom', 'priority' => 272, 'type' => 'g1_range', 'title' => __('Primary Nav Margin Bottom', Redux_TEXT_DOMAIN), 'min' => 0, 'max' => 100, 'step' => 1, 'std' => 30);
    $theme_areas_fields['header'][] = array('id' => 'ta_header_tagline', 'priority' => 275, 'type' => 'select', 'title' => __('Tagline', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Whether or not to display the site tagline below the logo.', Redux_TEXT_DOMAIN) . '<br />' . sprintf(__('Go to <a href="%s">WP General Settings</a> to set your tagline.', Redux_TEXT_DOMAIN), network_admin_url('options-general.php')) . '</p>', 'options' => array('standard' => 'on', 'none' => 'off'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['header'][] = array('id' => 'ta_header_searchform', 'priority' => 280, 'type' => 'select', 'title' => __('Search Form', Redux_TEXT_DOMAIN), 'options' => array('standard' => 'big', 'small' => 'small', 'none' => 'off'), 'switch' => true, 'std' => 'standard');
    $theme_areas_fields['header'][] = array('id' => 'ta_header_primary_nav_info', 'priority' => 290, 'type' => 'info', 'desc' => '<h4>' . __('Primary Nav', Redux_TEXT_DOMAIN));
    $theme_areas_fields['header'][] = array('id' => 'ta_header_primary_nav_style', 'priority' => 295, 'type' => 'select', 'title' => __('Style', Redux_TEXT_DOMAIN), 'options' => array('unstyled' => __('unstyled', Redux_TEXT_DOMAIN), 'simple' => __('simple', Redux_TEXT_DOMAIN), 'solid' => __('solid', Redux_TEXT_DOMAIN)), 'std' => 'unstyled');
    /* Precontent */
    $theme_areas_fields['precontent'][] = array('id' => 'ta_precontent_space', 'priority' => 305, 'type' => 'select', 'title' => __('Space Before and After', Redux_TEXT_DOMAIN), 'options' => array('none' => 'off', 'before' => 'before', 'after' => 'after', 'before_after' => 'before and after'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['precontent'] = array_merge($theme_areas_fields['precontent'], g1_redux_field_theme_area_divider('Top', 'ta_precontent_top_divider', 306, array('switch' => 'none')));
    $theme_areas_fields['precontent'] = array_merge($theme_areas_fields['precontent'], g1_redux_field_theme_area_divider('Bottom', 'ta_precontent_bottom_divider', 310, array('switch' => 'none')));
    $theme_areas_fields['precontent'][] = array('id' => 'ta_precontent_layout', 'priority' => 315, 'type' => 'radio_img', 'title' => __('Layout', Redux_TEXT_DOMAIN), 'sub_desc' => __('Set the width of outer and inner boxes.', Redux_TEXT_DOMAIN), 'options' => array('wide-narrow' => array('title' => 'wide-narrow', 'img' => $image_uri . 'layout-wide-narrow.png'), 'semi-narrow' => array('title' => 'semi-narrow', 'img' => $image_uri . 'layout-semi-narrow.png'), 'standard-narrow' => array('title' => 'standard-narrow', 'img' => $image_uri . 'layout-standard-narrow.png')), 'std' => 'wide-narrow');
    $theme_areas_fields['precontent'][] = array('id' => 'ta_precontent_layout_corners', 'priority' => 330, 'type' => 'g1_border_radius', 'title' => __('Layout Corners', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Change the roundness of the corners applied to the whole area', Redux_TEXT_DOMAIN) . '</p>');
    /* Content */
    $theme_areas_fields['content'][] = array('id' => 'ta_content_space', 'priority' => 405, 'type' => 'select', 'title' => __('Space Before and After', Redux_TEXT_DOMAIN), 'options' => array('none' => 'off', 'before' => 'before', 'after' => 'after', 'before_after' => 'before and after'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['content'] = array_merge($theme_areas_fields['content'], g1_redux_field_theme_area_divider('Top', 'ta_content_top_divider', 406, array('switch' => 'none')));
    $theme_areas_fields['content'] = array_merge($theme_areas_fields['content'], g1_redux_field_theme_area_divider('Bottom', 'ta_content_bottom_divider', 410, array('switch' => 'none')));
    $theme_areas_fields['content'][] = array('id' => 'ta_content_layout', 'priority' => 415, 'type' => 'radio_img', 'title' => __('Layout', Redux_TEXT_DOMAIN), 'sub_desc' => __('Set the width of outer and inner boxes.', Redux_TEXT_DOMAIN), 'options' => array('wide-narrow' => array('title' => 'wide-narrow', 'img' => $image_uri . 'layout-wide-narrow.png'), 'semi-narrow' => array('title' => 'semi-narrow', 'img' => $image_uri . 'layout-semi-narrow.png'), 'standard-narrow' => array('title' => 'standard-narrow', 'img' => $image_uri . 'layout-standard-narrow.png')), 'std' => 'wide-narrow');
    $theme_areas_fields['content'][] = array('id' => 'ta_content_layout_corners', 'priority' => 430, 'type' => 'g1_border_radius', 'title' => __('Layout Corners', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Change the roundness of the corners applied to the whole area', Redux_TEXT_DOMAIN) . '</p>');
    /* Prefooter */
    $theme_areas_fields['prefooter'][] = array('id' => 'ta_prefooter_space', 'priority' => 505, 'type' => 'select', 'title' => __('Space Before and After', Redux_TEXT_DOMAIN), 'options' => array('none' => 'off', 'before' => 'before', 'after' => 'after', 'before_after' => 'before and after'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['prefooter'] = array_merge($theme_areas_fields['prefooter'], g1_redux_field_theme_area_divider('Top', 'ta_prefooter_top_divider', 506, array('switch' => 'none')));
    $theme_areas_fields['prefooter'] = array_merge($theme_areas_fields['prefooter'], g1_redux_field_theme_area_divider('Bottom', 'ta_prefooter_bottom_divider', 510, array('switch' => 'none')));
    $theme_areas_fields['prefooter'][] = array('id' => 'ta_prefooter_layout', 'priority' => 515, 'type' => 'radio_img', 'title' => __('Layout', Redux_TEXT_DOMAIN), 'sub_desc' => __('Set the width of outer and inner boxes.', Redux_TEXT_DOMAIN), 'options' => array('wide-narrow' => array('title' => 'wide-narrow', 'img' => $image_uri . 'layout-wide-narrow.png'), 'semi-narrow' => array('title' => 'semi-narrow', 'img' => $image_uri . 'layout-semi-narrow.png'), 'standard-narrow' => array('title' => 'standard-narrow', 'img' => $image_uri . 'layout-standard-narrow.png')), 'std' => 'wide-narrow');
    $theme_areas_fields['prefooter'][] = array('id' => 'ta_prefooter_composition', 'priority' => 520, 'type' => 'radio_img', 'title' => __('Composition', Redux_TEXT_DOMAIN), 'sub_desc' => __('Choose arrangement of elements in the layout inner box.', Redux_TEXT_DOMAIN), 'options' => array('none' => array('title' => 'none', 'img' => $image_uri . 'none.png'), '1/1' => array('title' => '1-column', 'img' => $image_uri . 'widgets-1-column.png'), '1/2+1/2' => array('title' => '2-equal-columns', 'img' => $image_uri . 'widgets-2-equal-columns.png'), '1/1_1/3+1/3+1/3' => array('title' => 'full + 3-equal-columns', 'img' => $image_uri . 'widgets-full-3-equal-columns.png'), '1/3+1/3+1/3' => array('title' => '3-equal-columns', 'img' => $image_uri . 'widgets-3-equal-columns.png'), '1/4+1/4+1/4+1/4' => array('title' => '4-equal-columns', 'img' => $image_uri . 'widgets-4-equal-columns.png'), '1/2+1/4+1/4' => array('title' => '1/2 + 1/4 + 1/4', 'img' => $image_uri . 'widgets-1_2-1_4-1_4.png'), '1/4+1/2+1/4' => array('title' => '1/4 + 1/2 + 1/4', 'img' => $image_uri . 'widgets-1_4-1_2-1_4.png'), '1/4+1/4+1/2' => array('title' => '1/4 + 1/4 + 1/2', 'img' => $image_uri . 'widgets-1_4-1_4-1_2.png'), '1/4+3/4' => array('title' => '1/4 + 3/4', 'img' => $image_uri . 'widgets-1_4-3_4.png'), '3/4+1/4' => array('title' => '3/4 + 1/4', 'img' => $image_uri . 'widgets-3_4-1_4.png')), 'std' => '1/4+1/4+1/4+1/4');
    $theme_areas_fields['prefooter'][] = array('id' => 'ta_prefooter_layout_corners', 'priority' => 530, 'type' => 'g1_border_radius', 'title' => __('Layout Corners', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Change the roundness of the corners applied to the whole area', Redux_TEXT_DOMAIN) . '</p>');
    $theme_areas_fields['prefooter'][] = array('id' => 'ta_prefooter_twitter_toolbar', 'priority' => 910, 'type' => 'select', 'title' => __('Twitter Toolbar', Redux_TEXT_DOMAIN), 'sub_desc' => sprintf('<a id="g1-twitter-configuration-link" href="#">%s</a>', __('Twitter configuration', Redux_TEXT_DOMAIN)), 'options' => array('standard' => 'on', 'none' => 'off'), 'switch' => true, 'std' => 'none');
    $migrated_map_id = false;
    if (is_admin() && class_exists('G1_GMaps')) {
        $migrated_map_id = G1_Theme_Admin()->get_g1_gmaps_migrated_map_id();
    }
    if ($migrated_map_id !== false) {
        $prefooter_gmap_options = array('none' => 'none');
        $map_list = G1_GMaps()->get_map_list();
        foreach ($map_list['list'] as $map_id => $map_label) {
            $prefooter_gmap_options[$map_id] = $map_label;
        }
        $prefooter_gmap_std = $migrated_map_id;
    } else {
        $prefooter_gmap_options = array('standard' => 'on', 'none' => 'off');
        $prefooter_gmap_std = 'standard';
    }
    $theme_areas_fields['prefooter'][] = array('id' => 'ta_prefooter_gmap', 'priority' => 960, 'type' => 'select', 'title' => __('Map', Redux_TEXT_DOMAIN), 'sub_desc' => sprintf('<a id="g1-map-configuration-link" href="#">%s</a>', __('Map configuration', Redux_TEXT_DOMAIN)), 'options' => $prefooter_gmap_options, 'switch' => true, 'std' => $prefooter_gmap_std);
    /* Footer */
    $theme_areas_fields['footer'][] = array('id' => 'ta_footer_space', 'priority' => 605, 'type' => 'select', 'title' => __('Space Before and After', Redux_TEXT_DOMAIN), 'options' => array('none' => 'off', 'before' => 'before', 'after' => 'after', 'before_after' => 'before and after'), 'switch' => true, 'std' => 'none');
    $theme_areas_fields['footer'] = array_merge($theme_areas_fields['footer'], g1_redux_field_theme_area_divider('Top', 'ta_footer_top_divider', 606, array('switch' => 'none')));
    $theme_areas_fields['footer'] = array_merge($theme_areas_fields['footer'], g1_redux_field_theme_area_divider('Bottom', 'ta_footer_bottom_divider', 610, array('switch' => 'none')));
    $theme_areas_fields['footer'][] = array('id' => 'ta_footer_layout', 'priority' => 615, 'type' => 'radio_img', 'title' => __('Layout', Redux_TEXT_DOMAIN), 'sub_desc' => __('Set the width of outer and inner boxes.', Redux_TEXT_DOMAIN), 'options' => array('wide-wide' => array('title' => 'wide-wide', 'img' => $image_uri . 'layout-wide-wide.png'), 'wide-semi' => array('title' => 'wide-semi', 'img' => $image_uri . 'layout-wide-semi.png'), 'wide-standard' => array('title' => 'wide-standard', 'img' => $image_uri . 'layout-wide-standard.png'), 'wide-narrow' => array('title' => 'wide-narrow', 'img' => $image_uri . 'layout-wide-narrow.png'), 'semi-standard' => array('title' => 'semi-standard', 'img' => $image_uri . 'layout-semi-standard.png'), 'semi-narrow' => array('title' => 'semi-narrow', 'img' => $image_uri . 'layout-semi-narrow.png'), 'standard-narrow' => array('title' => 'standard-narrow', 'img' => $image_uri . 'layout-standard-narrow.png')), 'std' => 'wide-narrow');
    $theme_areas_fields['footer'][] = array('id' => 'ta_footer_composition', 'priority' => 620, 'type' => 'radio_img', 'title' => __('Composition', Redux_TEXT_DOMAIN), 'sub_desc' => __('Choose arrangement of elements in the layout inner box.', Redux_TEXT_DOMAIN), 'options' => array('01' => array('title' => 'version 1', 'img' => $image_uri . 'footer-composition-01.png'), '02' => array('title' => 'version 2', 'img' => $image_uri . 'footer-composition-02.png'), '03' => array('title' => 'version 3', 'img' => $image_uri . 'footer-composition-03.png')), 'std' => '01');
    $theme_areas_fields['footer'][] = array('id' => 'ta_footer_layout_corners', 'priority' => 630, 'type' => 'g1_border_radius', 'title' => __('Layout Corners', Redux_TEXT_DOMAIN), 'sub_desc' => '<p>' . __('Change the roundness of the corners applied to the whole area', Redux_TEXT_DOMAIN) . '</p>');
    $sections['style_fonts'] = array('priority' => 50, 'icon' => 'font', 'icon_class' => 'icon-large', 'title' => __('Fonts', Redux_TEXT_DOMAIN), 'fields' => array(array('id' => 'style_fonts_regular_info', 'priority' => 10, 'type' => 'info', 'desc' => '<h4>' . __('Regular Text', Redux_TEXT_DOMAIN) . '</h4>' . '<p>' . __('Customize the typography that is intended to use in body text', Redux_TEXT_DOMAIN) . '</p>'), array('id' => 'style_fonts_regular_type', 'priority' => 20, 'type' => 'select', 'title' => __('Font Type', Redux_TEXT_DOMAIN), 'options' => array('system' => __('System', Redux_TEXT_DOMAIN), 'font-face' => __('Font-Face', Redux_TEXT_DOMAIN), 'google' => __('Google WebFonts', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'google'), array('id' => 'style_fonts_regular_system_font', 'priority' => 30, 'type' => 'select', 'title' => __('System Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_system_font_choices())), array('id' => 'style_fonts_regular_fontface_font', 'priority' => 40, 'type' => 'select', 'title' => __('Font-Face Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_fontface_font_choices())), array('id' => 'style_fonts_regular_google_font', 'priority' => 50, 'type' => 'google_webfonts', 'title' => __('Google Font', Redux_TEXT_DOMAIN), 'std' => 'Open+Sans'), array('id' => 'style_fonts_regular_size', 'priority' => 60, 'type' => 'select', 'title' => __('Font size', Redux_TEXT_DOMAIN), 'options' => array('xs' => __('x-small', Redux_TEXT_DOMAIN), 's' => __('small', Redux_TEXT_DOMAIN), 'm' => __('medium', Redux_TEXT_DOMAIN), 'l' => __('large', Redux_TEXT_DOMAIN), 'xl' => __('x-large', Redux_TEXT_DOMAIN)), 'std' => 's'), array('id' => 'style_fonts_meta_info', 'priority' => 110, 'type' => 'info', 'desc' => '<h4>' . __('Meta Text', Redux_TEXT_DOMAIN) . '</h4>' . '<p>' . __('Customize the typography that is intended to use in meta text (post bylines, comment dates, or similar meta information).', Redux_TEXT_DOMAIN) . '</p>'), array('id' => 'style_fonts_meta_type', 'priority' => 120, 'type' => 'select', 'title' => __('Font Type', Redux_TEXT_DOMAIN), 'options' => array('system' => __('System', Redux_TEXT_DOMAIN), 'font-face' => __('Font-Face', Redux_TEXT_DOMAIN), 'google' => __('Google WebFonts', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'google'), array('id' => 'style_fonts_meta_system_font', 'priority' => 130, 'type' => 'select', 'title' => __('System Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_system_font_choices())), array('id' => 'style_fonts_meta_fontface_font', 'priority' => 140, 'type' => 'select', 'title' => __('Font-Face Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_fontface_font_choices())), array('id' => 'style_fonts_meta_google_font', 'priority' => 150, 'type' => 'google_webfonts', 'title' => __('Google Font', Redux_TEXT_DOMAIN), 'std' => 'Open+Sans'), array('id' => 'style_fonts_important_info', 'priority' => 210, 'type' => 'info', 'desc' => '<h4>' . __('Important Text', Redux_TEXT_DOMAIN) . '</h4>' . '<p>' . __('Customize the typography that is intended to use in bigger text (headings with small exceptions, large buttons, etc).', Redux_TEXT_DOMAIN) . '</p>'), array('id' => 'style_fonts_important_type', 'priority' => 220, 'type' => 'select', 'title' => __('Font Type', Redux_TEXT_DOMAIN), 'options' => array('system' => __('System', Redux_TEXT_DOMAIN), 'font-face' => __('Font-Face', Redux_TEXT_DOMAIN), 'google' => __('Google WebFonts', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'google'), array('id' => 'style_fonts_important_system_font', 'priority' => 230, 'type' => 'select', 'title' => __('System Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_system_font_choices())), array('id' => 'style_fonts_important_fontface_font', 'priority' => 240, 'type' => 'select', 'title' => __('Font-Face Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_fontface_font_choices())), array('id' => 'style_fonts_important_google_font', 'priority' => 250, 'type' => 'google_webfonts', 'title' => __('Google Font', Redux_TEXT_DOMAIN), 'std' => 'Open+Sans:300'), array('id' => 'style_fonts_important_size', 'priority' => 260, 'type' => 'select', 'title' => __('Font size', Redux_TEXT_DOMAIN), 'options' => array('xs' => __('x-small', Redux_TEXT_DOMAIN), 's' => __('small', Redux_TEXT_DOMAIN), 'm' => __('medium', Redux_TEXT_DOMAIN), 'l' => __('large', Redux_TEXT_DOMAIN), 'xl' => __('x-large', Redux_TEXT_DOMAIN)), 'std' => 'm'), array('id' => 'style_fonts_primary_nav_info', 'priority' => 310, 'type' => 'info', 'desc' => '<h4>' . __('Primary Navigation', Redux_TEXT_DOMAIN) . '</h4>'), array('id' => 'style_fonts_primary_nav_type', 'priority' => 320, 'type' => 'select', 'title' => __('Font Type', Redux_TEXT_DOMAIN), 'options' => array('system' => __('System', Redux_TEXT_DOMAIN), 'font-face' => __('Font-Face', Redux_TEXT_DOMAIN), 'google' => __('Google WebFonts', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'google'), array('id' => 'style_fonts_primary_nav_system_font', 'priority' => 330, 'type' => 'select', 'title' => __('System Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_system_font_choices())), array('id' => 'style_fonts_primary_nav_fontface_font', 'priority' => 340, 'type' => 'select', 'title' => __('Font-Face Font', Redux_TEXT_DOMAIN), 'options' => array_merge(array('' => ''), G1_Font_Manager()->get_fontface_font_choices())), array('id' => 'style_fonts_primary_nav_google_font', 'priority' => 350, 'type' => 'google_webfonts', 'title' => __('Google Font', Redux_TEXT_DOMAIN), 'std' => 'Open+Sans'), array('id' => 'style_fonts_primary_nav_size', 'priority' => 360, 'type' => 'g1_range', 'title' => __('Font size', Redux_TEXT_DOMAIN), 'desc' => __('px', Redux_TEXT_DOMAIN), 'min' => 12, 'max' => 30, 'step' => 1, 'std' => 14), array('id' => 'style_fonts_primary_nav_padding_top', 'priority' => 370, 'type' => 'g1_range', 'title' => __('Padding Top', Redux_TEXT_DOMAIN), 'desc' => __('px', Redux_TEXT_DOMAIN), 'min' => 0, 'max' => 100, 'step' => 1, 'std' => 10), array('id' => 'style_fonts_primary_nav_padding_bottom', 'priority' => 380, 'type' => 'g1_range', 'title' => __('Padding Bottom', Redux_TEXT_DOMAIN), 'desc' => __('px', Redux_TEXT_DOMAIN), 'min' => 0, 'max' => 100, 'step' => 1, 'std' => 20)));
    $theme_areas = array('preheader' => __('Preheader', 'g1_theme'), 'header' => __('Header', 'g1_theme'), 'precontent' => __('Precontent', 'g1_theme'), 'content' => __('Content', 'g1_theme'), 'prefooter' => __('Prefooter', 'g1_theme'), 'footer' => __('Footer', 'g1_theme'));
    $section_priority = 60;
    // theme areas "Basic & Distinctive Color Schema" defaults
    $ta_color_schemas_defaults = array('preheader' => array('cs_1_background' => '#ffffff', 'cs_1_background_image' => array('switch' => 'none'), 'cs_1_background_opacity' => '100', 'cs_1_text1' => '#000000', 'cs_1_text2' => '#666666', 'cs_1_text3' => '#999999', 'cs_1_link' => '#fb4400', 'cs_1_link_hover' => '#000000', 'cs_2_background' => '#fb4400', 'cs_2_text1' => '#ffffff'), 'header' => array('cs_1_background' => '#ffffff', 'cs_1_background_image' => array('switch' => 'none'), 'cs_1_background_opacity' => '100', 'cs_1_text1' => '#000000', 'cs_1_text2' => '#666666', 'cs_1_text3' => '#999999', 'cs_1_link' => '#fb4400', 'cs_1_link_hover' => '#000000', 'cs_2_background' => '#94949c', 'cs_2_text1' => '#ffffff'), 'precontent' => array('cs_1_background' => '#fb4400', 'cs_1_background_image' => array('switch' => 'none'), 'cs_1_background_opacity' => '100', 'cs_1_text1' => '#ffffff', 'cs_1_text2' => '#fedad4', 'cs_1_text3' => '#fdb2a3', 'cs_1_link' => '#000000', 'cs_1_link_hover' => '#ffffff', 'cs_2_background' => '#000000', 'cs_2_text1' => '#ffffff'), 'content' => array('cs_1_background' => '#ffffff', 'cs_1_background_image' => array('switch' => 'none'), 'cs_1_background_opacity' => '100', 'cs_1_text1' => '#000000', 'cs_1_text2' => '#666666', 'cs_1_text3' => '#999999', 'cs_1_link' => '#fb4400', 'cs_1_link_hover' => '#000000', 'cs_2_background' => '#fb4400', 'cs_2_text1' => '#ffffff'), 'prefooter' => array('cs_1_background' => '#333333', 'cs_1_background_image' => array('switch' => 'none'), 'cs_1_background_opacity' => '100', 'cs_1_text1' => '#ffffff', 'cs_1_text2' => '#999999', 'cs_1_text3' => '#666666', 'cs_1_link' => '#fb4400', 'cs_1_link_hover' => '#ffffff', 'cs_2_background' => '#fb4400', 'cs_2_text1' => '#ffffff'), 'footer' => array('cs_1_background' => '#262626', 'cs_1_background_image' => array('switch' => 'none'), 'cs_1_background_opacity' => '100', 'cs_1_text1' => '#ffffff', 'cs_1_text2' => '#999999', 'cs_1_text3' => '#666666', 'cs_1_link' => '#fb4400', 'cs_1_link_hover' => '#ffffff', 'cs_2_background' => '#fb4400', 'cs_2_text1' => '#ffffff'));
    foreach ($theme_areas as $slug => $label) {
        $id_prefix = 'ta_' . $slug . '_';
        $defaults = $ta_color_schemas_defaults[$slug];
        // Theme Area Type Section
        $sections['style_' . $slug] = array('priority' => $section_priority, 'icon' => 'tint', 'icon_class' => 'icon-large', 'title' => $label, 'fields' => array(array('id' => $id_prefix . 'cs_1_info', 'priority' => 1002, 'type' => 'info', 'desc' => '<h4>' . __('Basic Color Schema', Redux_TEXT_DOMAIN) . '</h4>' . '<p>' . __('This will be applied to texts, links etc.', Redux_TEXT_DOMAIN) . '</p>'), array('id' => $id_prefix . 'cs_1_background', 'priority' => 1010, 'type' => 'color', 'title' => __('Background Color', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_1_background']), array('id' => $id_prefix . 'cs_1_background_opacity', 'priority' => 1012, 'type' => 'select', 'title' => __('Background Opacity', Redux_TEXT_DOMAIN), 'options' => array('0' => __('0%', Redux_TEXT_DOMAIN), '100' => __('100%', Redux_TEXT_DOMAIN)), 'std' => $defaults['cs_1_background_opacity']), array('id' => $id_prefix . 'cs_1_text1', 'priority' => 1060, 'type' => 'color', 'title' => __('Important Text Color', Redux_TEXT_DOMAIN), 'sub_desc' => __('Headings (with small exceptions).', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_1_text1']), array('id' => $id_prefix . 'cs_1_text2', 'priority' => 1070, 'type' => 'color', 'title' => __('Regular Text Color', Redux_TEXT_DOMAIN), 'sub_desc' => __('Body text', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_1_text2']), array('id' => $id_prefix . 'cs_1_text3', 'priority' => 1080, 'type' => 'color', 'title' => __('Meta Text Color', Redux_TEXT_DOMAIN), 'sub_desc' => __('Post bylines, comment dates, meta information', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_1_text3']), array('id' => $id_prefix . 'cs_1_link', 'priority' => 1090, 'type' => 'color', 'title' => __('Link Color', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_1_link']), array('id' => $id_prefix . 'cs_1_link_hover', 'priority' => 1100, 'type' => 'color', 'title' => __('Link Color on Hover', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_1_link_hover']), array('id' => $id_prefix . 'cs_2_info', 'priority' => 1111, 'type' => 'info', 'desc' => '<h4>' . __('Distinctive Color Schema', Redux_TEXT_DOMAIN) . '</h4>' . '<p>' . __('This will be applied to buttons, dropcaps etc.', Redux_TEXT_DOMAIN) . '</p>'), array('id' => $id_prefix . 'cs_2_background', 'priority' => 1120, 'type' => 'color', 'title' => __('Background Color', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_2_background']), array('id' => $id_prefix . 'cs_2_text1', 'priority' => 1130, 'type' => 'color', 'title' => __('Text Color', Redux_TEXT_DOMAIN), 'std' => $defaults['cs_2_text1'])));
        $sections['style_' . $slug]['fields'] = array_merge($sections['style_' . $slug]['fields'], g1_redux_field_background_image('Background', $id_prefix . 'cs_1_background', 1020, $defaults['cs_1_background_image']));
        if (!empty($theme_areas_fields[$slug])) {
            $sections['style_' . $slug]['fields'] = array_merge($sections['style_' . $slug]['fields'], $theme_areas_fields[$slug]);
        }
        $section_priority += 10;
    }
    $sections['sidebars'] = array('priority' => 1000, 'icon' => 'columns', 'icon_class' => 'icon-large', 'title' => __('Sidebars', Redux_TEXT_DOMAIN), 'fields' => array(array('id' => 'sidebars', 'priority' => 10, 'type' => 'multi_text', 'title' => __('Custom Sidebars', Redux_TEXT_DOMAIN), 'sub_desc' => __('Sidebar name can only consist of: lowercase letters, digits, underscores and hyphens', Redux_TEXT_DOMAIN))));
    $log_html = '';
    $log = get_transient('g1_dynamic_style_cache_log');
    if ($log !== false && is_array($log)) {
        $log_html .= '<br /><br />';
        $log_html .= '<h4>' . __('Last action status', 'g1_theme') . ':</h4>';
        $log_html .= '<div class="g1-log g1-log-' . $log['type'] . '">' . $log['message'] . ' (' . $log['date'] . ')</div>';
    }
    $sections['advanced'] = array('priority' => 2000, 'icon' => 'wrench', 'icon_class' => 'icon-large', 'title' => __('Advanced', Redux_TEXT_DOMAIN), 'fields' => array(array('id' => 'advanced_dynamic_style_cache', 'priority' => 10, 'type' => 'select', 'title' => __('Dynamic style cache', Redux_TEXT_DOMAIN), 'desc' => (G1_Theme()->can_use_static_dynamic_style() ? '' : '<span class="redux-option-disabled">' . __('Option disabled. Uploads directory is not writable.', Redux_TEXT_DOMAIN) . '</span>') . $log_html, 'options' => array('none' => __('off', Redux_TEXT_DOMAIN), 'standard' => __('on', Redux_TEXT_DOMAIN)), 'switch' => true, 'std' => 'none')));
    return $sections;
}
Ejemplo n.º 6
0
do_action('g1_header_before');
?>
	<!-- BEGIN #g1-header -->
    <div id="g1-header-waypoint">
	<div id="g1-header" class="g1-header" role="banner">
        <div class="g1-layout-inner">
            <?php 
/* Executes a custom hook.
 * If you want to add some content before the g1-primary-bar, hook into 'g1_header_begin' action.
 */
do_action('g1_header_begin');
?>

            <div id="g1-primary-bar">
                <?php 
G1_Theme()->render_site_id();
?>
                <!-- END #g1-primary-nav -->
            </div><!-- END #g1-primary-bar -->

            <?php 
/* Executes a custom hook.
 * If you want to add some content after the g1-primary-bar, hook into 'g1_header_end' action.
 */
do_action('g1_header_end');
?>

		</div>

        <?php 
if ('none' !== g1_get_theme_option('general', 'scroll_to_top', 'standard')) {
 *
 * For the full license information, please view the Licensing folder
 * that was distributed with this source code.
 *
 * @package G1_Framework
 * @subpackage G1_Theme03
 * @since G1_Theme03 1.0.0
 */
// Prevent direct script access
if (!defined('ABSPATH')) {
    die('No direct script access allowed');
}
// Add proper body classes
add_filter('body_class', array(G1_Theme(), 'secondary_none_body_class'));
add_filter('body_class', array(G1_Theme(), 'mediabox_narrow_body_class'));
add_filter('body_class', array(G1_Theme(), 'mediabox_after_body_class'));
get_header();
?>
    <div id="primary">
        <div id="content" role="main">

            <?php 
while (have_posts()) {
    the_post();
    ?>
                <?php 
    get_template_part('template-parts/g1_entry_half', get_post_format());
    ?>
            <?php 
}
?>
Ejemplo n.º 8
0
 /**
  * Sanitizes the input value before saving it to a database
  *
  * @return array
  */
 public function sanitize($input)
 {
     $value = get_option(G1_Theme()->get_id() . '_image_sizes', array());
     $sizes = $this->get_sizes();
     // Create proper structure if needed
     foreach ($sizes as $size_name => $args) {
         if (!isset($value[$size_name]) || !is_array($value[$size_name])) {
             $value[$size_name] = array();
         }
     }
     // Replace values from theme options with values from input
     foreach ($sizes as $size_name) {
         if (isset($input[$size_name]) && isset($input[$size_name]['height'])) {
             $value[$size_name]['height'] = absint($input[$size_name]['height']);
         }
     }
     return $value;
 }
Ejemplo n.º 9
0
 /**
  * Enqueues JavaScripts
  */
 public function enqueue_scripts()
 {
     // Prevent CSS|JS caching during updates
     $version = G1_Theme()->get_version();
     $parent_uri = trailingslashit(get_template_directory_uri());
     $child_uri = trailingslashit(get_stylesheet_directory_uri());
     $uri = get_template_directory_uri();
     wp_register_script('metadata', $parent_uri . 'js/jquery-metadata/jquery.metadata.js', array('jquery'), $version, true);
     wp_register_script('easing', $parent_uri . 'js/easing/jquery.easing.1.3.js', array('jquery'), $version, true);
     wp_register_script('g1_main', $parent_uri . 'js/main.js', array('jquery'), $version, true);
     wp_register_script('modernizr', $parent_uri . 'js/modernizr/modernizr.custom.js', array(), $version, false);
     wp_register_script('simplemodal', trailingslashit(G1_FRAMEWORK_URI) . 'js/jquery.simplemodal/js/jquery.simplemodal.1.4.1.min.js', array('jquery'), $version, true);
     wp_register_script('helpmode', trailingslashit(G1_FRAMEWORK_URI) . 'js/help-mode.js', array('jquery'), $version, true);
     wp_register_script('jquery.isotope', $parent_uri . 'js/jquery.isotope/jquery.isotope.min.js', array('jquery'), $version, true);
     wp_register_script('breakpoints', $parent_uri . 'js/breakpoints/breakpoints.js', array('jquery'), $version, true);
     wp_register_script('galleria', $parent_uri . 'js/galleria/galleria-1.2.9.min.js', array('jquery'), $version, true);
     wp_register_script('galleria_theme', $parent_uri . 'js/galleria/themes/classic/galleria.classic.js', array('galleria'), $version, true);
     wp_register_script('caroufredsel', $parent_uri . 'js/carouFredSel/jquery.carouFredSel-6.2.1-packed.js', array('jquery'), $version, true);
     wp_register_script('jquery.touchSwipe', $parent_uri . 'js/jquery.touchSwipe/jquery.touchSwipe.min.js', array('jquery'), $version, true);
     wp_register_script('jquery.waypoints', $parent_uri . 'js/jquery-waypoints/waypoints.min.js', array('jquery'), $version, true);
     wp_register_script('skrollr', $parent_uri . 'js/skrollr/skrollr.min.js', array(), '0.5.14', true);
     wp_register_script('jquery.magnific-popup', $parent_uri . 'js/jquery.magnific-popup/jquery.magnific-popup.min.js', array('jquery'), $version, true);
     wp_register_script('jquery.smoothscroll', $parent_uri . 'js/jquery.smoothscroll/jquery.smoothscroll.js', array('jquery'), $version, true);
     // Register child theme related scripts
     if ($parent_uri !== $child_uri) {
         wp_register_script('g1_child_main', $child_uri . 'modifications.js', array('jquery', 'g1_main'), false, true);
     }
     // Enqueue javascripts
     wp_enqueue_script('jquery');
     if (is_singular() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
     wp_enqueue_script('metadata');
     wp_enqueue_script('easing');
     wp_enqueue_script('breakpoints');
     wp_enqueue_script('galleria');
     wp_enqueue_script('galleria_theme');
     wp_enqueue_script('caroufredsel');
     wp_enqueue_script('jquery.touchSwipe');
     wp_enqueue_script('jquery.waypoints');
     wp_enqueue_script('skrollr');
     wp_enqueue_script('jquery.magnific-popup');
     wp_enqueue_script('jquery.smoothscroll');
     wp_enqueue_script('g1_main');
     wp_enqueue_script('modernizr');
     $theme_data = array('uri' => $uri);
     wp_localize_script('g1_main', 'g1Theme', $theme_data);
     if (current_user_can('administrator') && 'none' !== g1_get_theme_option('general', 'helpmode')) {
         wp_enqueue_script('simplemodal');
         wp_enqueue_script('helpmode');
     }
     //Enqueue child theme related scripts
     if ($parent_uri !== $child_uri) {
         wp_enqueue_script('g1_child_main');
     }
 }
Ejemplo n.º 10
0
 public function g1_gmaps_plugin_activate()
 {
     $migrated_map_id = get_option('g1_gmaps_migrated_map_id', false);
     if ($migrated_map_id) {
         return;
     }
     $options = get_option(G1_Theme()->get_id());
     $color = $options['map_color'];
     // hex or empty string
     $invert_lightness = $options['map_invert_lightness'] === '1';
     // bool
     $type = $options['map_type'];
     // roadmap | satellite | hybrid | terrain
     $center_lat = $options['map_latitude'];
     $center_long = $options['map_longitude'];
     $zoom = (int) $options['map_zoom'];
     // int
     $marker = $options['map_marker'];
     // none | standard | open-bubble
     $marker_icon = $options['map_marker_icon'];
     // image path
     $marker_content = $options['map_marker_content'];
     $marker_icon_id = null;
     if ($marker_icon) {
         $marker_icon_id = $this->get_image_id($marker_icon);
     }
     // create new map
     $defaults = G1_GMaps()->get_default_map_config();
     $config = array('width' => '', 'height' => '380', 'full_width' => 'standard', 'parallax' => 'standard', 'street_view_control' => 'none', 'overview_control' => 'none', 'scroll_wheel_to_zoom' => 'none', 'double_click_to_zoom' => 'standard', 'draggable' => 'standard', 'type_control' => 'horizontal', 'pan_control' => 'standard', 'scale_control' => 'none', 'zoom_control' => 'small');
     if ($center_lat) {
         $config['lat'] = $center_lat;
     }
     if ($center_long) {
         $config['long'] = $center_long;
     }
     if ($zoom) {
         $config['zoom'] = $zoom;
     }
     if ($type) {
         $config['type'] = $type;
     }
     if ($invert_lightness) {
         $config['invert_lightness'] = 'standard';
     }
     if ($color) {
         $c = new G1_Color($color);
         $config['color_hue'] = $c->get_hue();
         $config['color_saturation'] = $c->get_saturation() * 2 - 100;
         $config['color_lightness'] = $c->get_lightness() * 2 - 100;
         $config['custom_colors'] = 'standard';
     } else {
         $config['custom_colors'] = 'none';
     }
     $config = wp_parse_args($config, $defaults);
     $post = array('post_title' => 'Old map', 'post_status' => 'publish', 'post_type' => G1_GMaps()->get_post_type());
     $post_id = wp_insert_post($post);
     if ($post_id > 0) {
         $data_to_save = array();
         foreach ($config as $option_name => $option_value) {
             $data_to_save['map_' . $option_name] = $option_value;
         }
         update_post_meta($post_id, '_g1_gmap_lat', $data_to_save['map_lat']);
         update_post_meta($post_id, '_g1_gmap_long', $data_to_save['map_long']);
         update_post_meta($post_id, '_g1_gmap', $data_to_save);
         // create marker
         if ($marker !== 'none') {
             $marker_id = wp_insert_post(array('post_status' => 'publish', 'post_type' => G1_GMaps()->get_map_marker_post_type()));
             if ($marker_id > 0) {
                 $marker_data_to_save = G1_GMaps()->get_default_map_marker_config();
                 $marker_data_to_save['lat'] = $data_to_save['map_lat'];
                 $marker_data_to_save['long'] = $data_to_save['map_long'];
                 $marker_data_to_save['label'] = 'Marker';
                 if ($marker_icon_id) {
                     $marker_data_to_save['icon_id'] = $marker_icon_id;
                     $marker_data_to_save['icon_path'] = $marker_icon;
                 }
                 $marker_data_to_save['info'] = $marker_content;
                 $marker_data_to_save['info_state'] = $marker === 'open-bubble' ? 'standard' : 'none';
                 $marker_data_to_save['visibility'] = 'standard';
                 update_post_meta($marker_id, '_g1_gmap_id', $post_id);
                 update_post_meta($marker_id, '_g1_gmap_marker_lat', $marker_data_to_save['lat']);
                 update_post_meta($marker_id, '_g1_gmap_marker_long', $marker_data_to_save['long']);
                 update_post_meta($marker_id, '_g1_gmap_marker', $marker_data_to_save);
             }
         }
         update_option('g1_gmaps_migrated_map_id', $post_id);
         $global_map_enabled = $options['ta_prefooter_gmap'] === 'standard';
         // if map was enabled, we need to set it to new created map
         if ($global_map_enabled) {
             $options['ta_prefooter_gmap'] = $post_id;
             update_option(G1_Theme()->get_id(), $options);
         }
     }
 }
 *
 * For the full license information, please view the Licensing folder
 * that was distributed with this source code.
 *
 * @package G1_Framework
 * @subpackage G1_Theme03
 * @since G1_Theme03 1.0.0
 */
// Prevent direct script access
if (!defined('ABSPATH')) {
    die('No direct script access allowed');
}
// Add proper body classes
add_filter('body_class', array(G1_Theme(), 'secondary_none_body_class'));
add_filter('body_class', array(G1_Theme(), 'mediabox_wide_body_class'));
add_filter('body_class', array(G1_Theme(), 'mediabox_before_body_class'));
get_header();
?>
    <div id="primary">
        <div id="content" role="main">

            <?php 
while (have_posts()) {
    the_post();
    ?>
                <?php 
    get_template_part('template-parts/g1_entry_overview', get_post_format());
    ?>
            <?php 
}
?>