function iron_pre_get_post_types($query) { global $iron_post_types, $iron_query, $post; $post_type = $query->get('post_type'); $posts_per_page = $query->get('posts_per_page'); $iron_query->post_type = $post_type; if (in_array($post_type, $iron_post_types)) { if (empty($posts_per_page) || $posts_per_page == 0) { $posts_per_page = get_iron_option($post_type . 's_per_page'); $query->set('posts_per_page', $posts_per_page); } } if ('event' == $post_type) { $order = $query->get('order'); $orderby = $query->get('orderby'); if (is_admin() && !$query->get('ajax')) { // Furthest to Oldest if (empty($order)) { $query->set('order', 'ASC'); } if (empty($orderby)) { $query->set('orderby', 'date'); } } else { if (empty($query->query_vars['filter'])) { $filter = get_field('events_filter', $post->ID); if (empty($filter)) { $filter = empty($_POST['eventsfilter']) ? 'upcoming' : sanitize_key($_POST['eventsfilter']); } $query->query_vars['filter'] = $filter; } $filter = $query->query_vars['filter']; $iron_query->query_vars['filter'] = $filter; // reset Post Status $query->set('post_status', array('')); } } else { if ('album' == $post_type) { if (!is_admin()) { $query->set('posts_per_page', -1); } } } }
function iron_metadata_icons() { $output = array(); if (get_iron_option('meta_apple_mobile_web_app_title')) { $output[] = '<meta name="apple-mobile-web-app-title" content="' . esc_attr(get_iron_option('meta_apple_mobile_web_app_title')) . '">'; } if (get_iron_option('meta_favicon')) { $output[] = '<link rel="shortcut icon" type="image/x-icon" href="' . esc_url(get_iron_option('meta_favicon')) . '">'; } if (get_iron_option('meta_apple_touch_icon')) { $output[] = '<link rel="apple-touch-icon-precomposed" href="' . esc_url(get_iron_option('meta_apple_touch_icon')) . '">'; } if (get_iron_option('meta_apple_touch_icon_72x72')) { $output[] = '<link rel="apple-touch-icon-precomposed" sizes="72x72" href="' . esc_url(get_iron_option('meta_apple_touch_icon_72x72')) . '">'; } if (get_iron_option('meta_apple_touch_icon_114x114')) { $output[] = '<link rel="apple-touch-icon-precomposed" sizes="114x114" href="' . esc_url(get_iron_option('meta_apple_touch_icon_114x114')) . '">'; } if (get_iron_option('meta_apple_touch_icon_144x144')) { $output[] = '<link rel="apple-touch-icon-precomposed" sizes="144x144" href="' . esc_url(get_iron_option('meta_apple_touch_icon_144x144')) . '">'; } if (!empty($output)) { echo "\n\t" . implode("\n\t", $output); } }
<?php $social_icons = get_iron_option('social_icons'); if (!empty($social_icons)) { ?> <!-- social-networks --> <ul class="social-networks"> <?php foreach ($social_icons as $icon) { ?> <li> <a target="_blank" href="<?php echo $icon["social_media_url"]; ?> "> <?php if (!empty($icon["social_media_icon_url"])) { ?> <img src="<?php echo $icon["social_media_icon_url"]; ?> " style="max-height:50px;"> <?php } else { ?> <i class="fa fa-<?php echo $icon["social_media_icon_class"]; ?>
<?php $top_menu_enabled = (bool) get_iron_option('header_top_menu_enabled'); $menu_items = get_iron_option('header_top_menu'); $menu_icon_toggle = (int) get_iron_option('header_menu_toggle_enabled'); if ($top_menu_enabled && !empty($menu_items)) { ?> <!-- social-networks --> <ul class="header-top-menu <?php echo get_iron_option('menu_position'); ?> "> <?php foreach ($menu_items as $item) { ?> <?php if (!empty($item["menu_page_external_url"])) { $url = $item["menu_page_external_url"]; } else { $url = get_permalink($item["menu_page_url"]); } $target = $item["menu_page_url_target"]; $is_menu = (bool) $item["menu_page_is_menu"]; ?> <li> <a target="<?php echo $target; ?> " href="<?php echo $url;
<?php global $post, $widget_photos, $gallery_layout, $gallery_height; $photo_sizes_options = get_iron_option('photo_sizes'); $available_sizes = array(); $i = 0; foreach ($photo_sizes_options as $photo_size) { $width = $photo_size["size_width"]; $height = $photo_size["size_height"]; $available_sizes[$i]["width"] = $width; $available_sizes[$i]["height"] = $height; $i++; } if (!empty($widget_photos)) { $photos = $widget_photos; } else { $photos = get_field('album_photos', $post->ID); } if (!empty($photos)) { ?> <div class="photogrid-wrap free-wall" data-layout="<?php echo $gallery_layout; ?> " data-height="<?php echo $gallery_height; ?> "> <?php foreach ($photos as $photo) { $title = $photo["photo_title"];
?> <div class="woocontent"> <?php while (have_posts()) { the_post(); ?> <?php if (empty($hide_page_title)) { ?> <span class="heading-t"></span> <?php $single_title = get_iron_option('single_shop_page_title'); if (!empty($single_title)) { ?> <h1 class="page-title"><?php echo $single_title; ?> </h1> <?php } else { ?> <h1 class="page-title"><?php woocommerce_page_title();
/** * Get the page assigned to be the content type archive. * * @since 1.5.0 * @todo Swap `get_pages()` with `WP_Query` directly to * use `meta_query` to query an array of template names. */ function iron_get_page_for_post_type($post_type = '', $page_template = '') { if ($post_type) { $page_id = get_iron_option('page_for_' . $post_type . 's'); if (empty($page_id) && !empty($page_template)) { $page = get_pages(array('meta_key' => '_wp_page_template', 'meta_value' => $page_template, 'number' => 1)); if (!empty($page)) { $page_id = $page[0]->ID; } } if ($page_id) { return $page_id; } } return 0; }
<?php get_header(); ?> <!-- container --> <div class="container"> <div class="boxed"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php $single_title = get_iron_option('single_album_page_title'); if (!empty($single_title)) { ?> <span class="heading-t"></span> <h1><?php echo $single_title; ?> </h1> <span class="heading-b"></span> <?php } else { ?> <div class="heading-space"></div>
<!-- links-block --> <aside class="links-block"> <a href="#" onclick="window.history.back(); return false;" class="back-btn"><?php echo __("Back", IRON_TEXT_DOMAIN); ?> </a> <div class="buttons"> <?php echo get_iron_option('custom_social_actions'); ?> </div> </aside>
function setup_framework_options() { global $redux_args, $redux_sections, $wp_version, $wpdb; $use_dashicons = floatval($wp_version) >= 3.8; // Setting dev mode to true allows you to view the class settings/info in the panel. // Default: true $redux_args['dev_mode'] = false; // Set the icon for the dev mode tab. // If $redux_args['icon_type'] = 'image', this should be the path to the icon. // If $redux_args['icon_type'] = 'iconfont', this should be the icon name. // Default: info-sign //$redux_args['dev_mode_icon'] = 'info-sign'; // The defaults are set so it will preserve the old behavior. $redux_args['std_show'] = true; // If true, it shows the std value // Set the class for the dev mode tab icon. // This is ignored unless $redux_args['icon_type'] = 'iconfont' // Default: null $redux_args['dev_mode_icon_class'] = 'fa-lg'; // If you want to use Google Webfonts, you MUST define the api key. $redux_args['google_api_key'] = 'AIzaSyCQdHHTp_ttcRUygzBKIpwa6b8iiCJyjqo'; // Define the starting tab for the option panel. // Default: '0'; //$redux_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' $redux_args['admin_stylesheet'] = 'custom'; // Add HTML before the form. //$redux_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>', IRON_TEXT_DOMAIN); // Add content after the form. $redux_args['footer_text'] = __('<p>Brought to you by <a target="_blank" href="http://irontemplates.com">IronTemplates</a></p>', IRON_TEXT_DOMAIN); // Set footer/credit line. //$redux_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>', IRON_TEXT_DOMAIN); // Setup custom links in the footer for share icons $redux_args['share_icons']['twitter'] = array('link' => 'http://twitter.com/irontemplates', 'title' => __('Follow us on Twitter', IRON_TEXT_DOMAIN), 'img' => Redux_OPTIONS_URL . 'img/social/Twitter.png'); // Enable the import/export feature. // Default: true //$redux_args['show_import_export'] = false; // Set the icon for the import/export tab. // If $redux_args['icon_type'] = 'image', this should be the path to the icon. // If $redux_args['icon_type'] = 'iconfont', this should be the icon name. // Default: refresh //$redux_args['import_icon'] = 'refresh'; // Set the class for the import/export tab icon. // This is ignored unless $redux_args['icon_type'] = 'iconfont' // Default: null $redux_args['import_icon_class'] = 'fa-lg'; // Set a custom option name. Don't forget to replace spaces with underscores! $redux_args['opt_name'] = IRON_TEXT_DOMAIN; // Set a custom menu icon. if ($use_dashicons) { $redux_args['menu_icon'] = 'dashicons-admin-generic'; } // Set a custom title for the options page. // Default: Options $redux_args['menu_title'] = __('LUSH', IRON_TEXT_DOMAIN); // Set a custom page title for the options page. // Default: Options $redux_args['page_title'] = __('LUSH Options', IRON_TEXT_DOMAIN); // Set a custom page slug for options page (wp-admin/themes.php?page=***). // Default: redux_options $redux_args['page_slug'] = 'iron_options'; // Set a custom page capability. // Default: manage_options $redux_args['page_cap'] = 'manage_options'; $currently_in_options = !empty($_GET["page"]) && $_GET["page"] == $redux_args['page_slug']; // Set the menu type. Set to "menu" for a top level menu, or "submenu" to add below an existing item. // Default: menu //$redux_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 //$redux_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 //$redux_args['page_position'] = null; // Set a custom page icon class (used to override the page icon next to heading) //$redux_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 //$redux_args['icon_type'] = 'image'; //$redux_args['dev_mode_icon_type'] = 'image'; //$redux_args['import_icon_type'] == 'image'; // Disable the panel sections showing as submenu items. // Default: true //$redux_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. /* $redux_args['help_tabs'][] = array( 'id' => 'redux-opts-1', 'title' => __('Theme Information 1', IRON_TEXT_DOMAIN), 'content' => __('<p>This is the tab content, HTML is allowed.</p>', IRON_TEXT_DOMAIN) ); $redux_args['help_tabs'][] = array( 'id' => 'redux-opts-2', 'title' => __('Theme Information 2', IRON_TEXT_DOMAIN), 'content' => __('<p>This is the tab content, HTML is allowed.</p>', IRON_TEXT_DOMAIN) ); // Set the help sidebar for the options page. $redux_args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', IRON_TEXT_DOMAIN); */ if (file_exists(IRON_PARENT_DIR . '/admin/inc/docs.php')) { ob_start(); include IRON_PARENT_DIR . '/admin/inc/docs.php'; $docs = ob_get_contents(); ob_end_clean(); $redux_sections[] = array('icon' => 'book', 'icon_class' => 'fa-lg', 'title' => __('Getting Started', IRON_TEXT_DOMAIN), 'desc' => '', 'fields' => array(array('id' => 'font_awesome_info', 'type' => 'raw_html', 'html' => $docs))); } if (file_exists(IRON_PARENT_DIR . '/admin/inc/import.php')) { ob_start(); include IRON_PARENT_DIR . '/admin/inc/import.php'; $importData = ob_get_contents(); ob_end_clean(); $redux_sections[] = array('icon' => 'cloud-download', 'icon_class' => 'fa-lg', 'title' => __('Import Default Data', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here you can clone our theme demo contents.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'import_default_data', 'type' => 'raw_html', 'title' => __('Import Default Data', IRON_TEXT_DOMAIN), 'sub_desc' => '<p class="description">' . __('This will flush all your current data and clone our theme demo contents.<br><font color="red">Please note that this could take up to 3 minutes.</font>', IRON_TEXT_DOMAIN) . '</p> <br><p><strong>Important</strong></p><p>If the spinner is still spinning for more than 3 minutes and you can\'t import the data, please follow this <a target="_blank" href="http://docs.irontemplates.com/lush/import-our-live-demo/downloads-data/">link</a> for another solution.', 'html' => $importData))); } $redux_sections[] = array('icon' => 'cogs', 'icon_class' => 'fa-lg', 'title' => __('General Settings', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some general settings that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'enable_nice_scroll', 'type' => 'checkbox', 'title' => __('Enable NiceScroll', IRON_TEXT_DOMAIN), 'sub_desc' => '<p class="description">' . __('This will style the default scrollbar and will add a nice scrolling effect', IRON_TEXT_DOMAIN) . '</p>', 'switch' => true, 'std' => '1'), array('id' => 'enable_fixed_header', 'type' => 'checkbox', 'title' => __('Enable Fixed Header', IRON_TEXT_DOMAIN), 'sub_desc' => '<p class="description">' . __('This will make the header fixed on page scroll', IRON_TEXT_DOMAIN) . '</p>', 'switch' => true, 'std' => '1'), array('id' => 'hide_admin_bar', 'type' => 'checkbox', 'title' => __('Hide admin bar on the frontend', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'custom_js', 'type' => 'textarea', 'title' => __('Custom Javascript', IRON_TEXT_DOMAIN), 'sub_desc' => __('This is for advanced users.<br>The code will be executed within jQuery(document).ready($);', IRON_TEXT_DOMAIN), 'rows' => '20', 'std' => ''))); $redux_sections[] = array('icon' => 'forward', 'icon_class' => 'fa-lg', 'title' => __('Pagination Settings', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('You can control settings related to the reading and navigation of posts.', IRON_TEXT_DOMAIN) . '</p><p>' . __('Enter the number of posts per page for each content type to be displayed within archive page templates.', IRON_TEXT_DOMAIN) . '<br>' . __('You can control the number of posts for the Posts content type on the <a href="options-reading.php">Reading Settings</a> page.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'events_per_page', 'type' => 'text', 'title' => __('Events listings show at most', IRON_TEXT_DOMAIN), 'std' => 10), array('id' => 'videos_per_page', 'type' => 'text', 'title' => __('Videos listings show at most', IRON_TEXT_DOMAIN), 'std' => 10), array('id' => 'photo-albums_per_page', 'type' => 'text', 'title' => __('Photo Albums listings show at most', IRON_TEXT_DOMAIN), 'std' => 10), array('id' => 'paginate_method', 'type' => 'radio', 'title' => __('Pagination Style', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose how to provide "paged" navigation of posts, categories, and archive pages.', IRON_TEXT_DOMAIN) . '<br>' . __('You can set how many posts to list on each page on the <a href="options-reading.php">Reading Settings</a> page.', IRON_TEXT_DOMAIN), 'options' => array('posts_nav_link' => __('Displays links for next and previous pages', IRON_TEXT_DOMAIN) . ' (' . sprintf(_x('e.g. : %s', 'Abbreviation of Latin exemplī grātiā (“for example”).', IRON_TEXT_DOMAIN), __('« Previous Page — Next Page »', IRON_TEXT_DOMAIN)) . ')', 'paginate_links' => __('Displays a row of paginated links', IRON_TEXT_DOMAIN) . ' (' . sprintf(_x('e.g. : %s', 'Abbreviation of Latin exemplī grātiā (“for example”).', IRON_TEXT_DOMAIN), __('« Prev 1 … 3 4 5 6 7 … 9 Next »', IRON_TEXT_DOMAIN)) . ')', 'paginate_more' => __('Displays a single link to dynamically load more items', IRON_TEXT_DOMAIN) . ' (' . sprintf(_x('e.g. : %s', 'Abbreviation of Latin exemplī grātiā (“for example”).', IRON_TEXT_DOMAIN), __('« More Posts »', IRON_TEXT_DOMAIN)) . ')', 'paginate_scroll' => __('Dynamically load more items as you scroll down (infinite scrolling)', IRON_TEXT_DOMAIN)), 'std' => 'posts_nav_link'))); /** * Default sidebars also set in /includes/setup.php:iron_import_default_data() */ $redux_sections[] = array('icon' => 'th-large', 'icon_class' => 'fa-lg', 'title' => _x('Widgets Areas', 'Theme Options', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . _x('Manage your WordPress Widget Areas and additional settings related to page templates and widgets.', 'Theme Options', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'widget_areas', 'type' => 'group', 'title' => _x('Widget Areas', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => _x('Manage dynamic sidebars for your widgets.', 'Theme Options', IRON_TEXT_DOMAIN), 'std' => array(IRON_SIDEBAR_PREFIX . '0' => array('sidebar_name' => 'Default Blog Sidebar', 'sidebar_desc' => _x('Sidebar widget area found on Blog post-related page templates.', 'Theme Options', IRON_TEXT_DOMAIN), 'sidebar_grid' => 1, 'order_no' => 1), IRON_SIDEBAR_PREFIX . '1' => array('sidebar_name' => 'Default Video Sidebar', 'sidebar_desc' => _x('Sidebar widget area found on Video-related page templates.', 'Theme Options', IRON_TEXT_DOMAIN), 'sidebar_grid' => 1, 'order_no' => 2), IRON_SIDEBAR_PREFIX . '2' => array('sidebar_name' => 'Default Footer', 'sidebar_desc' => _x('Site footer widget area.', 'Theme Options', IRON_TEXT_DOMAIN), 'sidebar_grid' => 1, 'order_no' => 3)), 'options' => array('group' => array('name' => _x('Widget Area', 'Theme Options', IRON_TEXT_DOMAIN), 'title_key' => 'sidebar_name'), 'fields' => array(array('id' => 'sidebar_name', 'type' => 'text', 'title' => _x('Sidebar name', 'Theme Options', IRON_TEXT_DOMAIN)), array('id' => 'sidebar_desc', 'type' => 'textarea', 'title' => _x('Sidebar description (optional)', 'Theme Options', IRON_TEXT_DOMAIN))))), array('id' => 'single_post_default_sidebar', 'type' => 'widget_area_select', 'title' => __('Single Post Default Sidebar', IRON_TEXT_DOMAIN), 'std' => 'lush_sidebar_0'), array('id' => 'single_video_default_sidebar', 'type' => 'widget_area_select', 'title' => __('Single Video Default Sidebar', IRON_TEXT_DOMAIN), 'std' => 'lush_sidebar_1'), array('id' => 'single_event_default_sidebar', 'type' => 'widget_area_select', 'title' => __('Single Event Default Sidebar', IRON_TEXT_DOMAIN), 'std' => ''), array('id' => 'single_discography_default_sidebar', 'type' => 'widget_area_select', 'title' => __('Single Discography Default Sidebar', IRON_TEXT_DOMAIN), 'std' => ''), array('id' => 'single_photo_album_default_sidebar', 'type' => 'widget_area_select', 'title' => __('Single Photo Album Default Sidebar', IRON_TEXT_DOMAIN), 'std' => ''))); $redux_sections[] = array('icon' => 'eye', 'icon_class' => 'fa-lg', 'title' => __('Look and feel', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some look & feel options that you can edit. These options will override the selected preset.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'featured_color', 'type' => 'color', 'title' => __('Featured Color', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#f78888'), array('id' => 'primary_color_light', 'type' => 'color', 'title' => __('Primary Color 1', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#ffffff'), array('id' => 'primary_color_dark', 'type' => 'color', 'title' => __('Primary Color 2', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#f7f7f7'), array('id' => 'secondary_color_light', 'type' => 'color', 'title' => __('Secondary Color 1', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#353535'), array('id' => 'secondary_color_dark', 'type' => 'color', 'title' => __('Secondary Color 2', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#2e2e2e'), array('id' => 'text_color_light', 'type' => 'color', 'title' => __('Text Color 1', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#ffffff'), array('id' => 'text_color_dark', 'type' => 'color', 'title' => __('Text Color 2', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#353535'), array('id' => 'body_background', 'type' => 'background', 'title' => __('Body Background', IRON_TEXT_DOMAIN), 'sub_desc' => __('Body background options / Upload a custom background image', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'hide' => array('attachment'), 'std' => array('color' => '#ffffff')), array('id' => 'content_background', 'type' => 'background', 'title' => __('Content Background', IRON_TEXT_DOMAIN), 'sub_desc' => __('Content background options / Upload a custom background image', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'hide' => array('attachment'), 'std' => array('color' => '#ffffff')), array('id' => 'custom_css', 'type' => 'textarea', 'title' => __('Custom CSS', IRON_TEXT_DOMAIN), 'sub_desc' => __('This is for advanced users', IRON_TEXT_DOMAIN), 'rows' => '20', 'std' => ''))); $redux_sections[] = array('icon' => 'edit', 'icon_class' => 'fa-lg', 'title' => __('Typography', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some typography options that you can edit. These options will override the selected preset.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'body_typography', 'type' => 'typography', 'title' => __('Body Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => array()), array('id' => 'h1_typography', 'type' => 'typography', 'title' => __('Heading 1 Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => array('font' => "Open+Sans:600", 'font_readable' => "Open Sans")), array('id' => 'h2_typography', 'type' => 'typography', 'title' => __('Heading 2 Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => array('font_readable' => "Open Sans", 'font' => "Open+Sans:300", 'weight' => '300')), array('id' => 'h3_typography', 'type' => 'typography', 'title' => __('Heading 3 Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => array('font_readable' => "Open Sans", 'font' => "Open+Sans:300", 'weight' => '300')), array('id' => 'h4_typography', 'type' => 'typography', 'title' => __('Heading 4 Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => ''), array('id' => 'h5_typography', 'type' => 'typography', 'title' => __('Heading 5 Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => ''), array('id' => 'h6_typography', 'type' => 'typography', 'title' => __('Heading 6 Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => ''))); $redux_sections[] = array('icon' => 'chevron-up', 'icon_class' => 'fa-lg', 'title' => __('Header Options', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some header options that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'header_logo', 'type' => 'upload', 'title' => __('Header Logo', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your logo', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/logo.png', 'class' => 'greybg'), array('id' => 'retina_header_logo', 'type' => 'upload', 'title' => __('Retina Header Logo', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your retina logo (2x)', IRON_TEXT_DOMAIN), 'std' => get_iron_option('header_logo'), 'class' => 'greybg'), array('id' => 'header_logo_hide_on_scroll', 'type' => 'checkbox', 'title' => __('Hide Header Logo on scroll', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '0'), array('id' => 'header_menu_toggle_enabled', 'type' => 'radio', 'title' => __('Display Main Menu Icon', IRON_TEXT_DOMAIN), 'options' => array('1' => __('Show', IRON_TEXT_DOMAIN), '2' => __('Show on mobile only', IRON_TEXT_DOMAIN), '0' => __('Hide', IRON_TEXT_DOMAIN)), 'std' => '1'), array('id' => 'header_top_menu_enabled', 'type' => 'checkbox', 'title' => __('Hot Links', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '0'), array('id' => 'header_top_menu_hide_on_scroll', 'type' => 'checkbox', 'title' => __('Hot Links Hide on scroll', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'header_top_menu', 'type' => 'group', 'title' => _x('Hot Links Items', 'Theme Options', IRON_TEXT_DOMAIN), 'std' => array(0 => array('menu_page_name' => '', 'menu_page_is_menu' => '', 'menu_page_url' => '', 'pages_select' => '', 'menu_page_external_url' => '', 'menu_page_icon' => '', 'order_no' => 1)), 'options' => array('group' => array('name' => _x('Hot Links', 'Theme Options', IRON_TEXT_DOMAIN), 'title_key' => 'menu_page_name'), 'fields' => array(array('id' => 'menu_page_name', 'type' => 'text', 'title' => _x('Page Name', 'Theme Options', IRON_TEXT_DOMAIN)), array('id' => 'menu_page_is_menu', 'type' => 'checkbox', 'title' => _x('Is menu toggle', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => ''), array('id' => 'menu_page_url', 'type' => 'pages_select', 'title' => _x('Page URL', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => ''), array('id' => 'menu_page_external_url', 'type' => 'text', 'title' => _x('Page URL (External)', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => ''), array('id' => 'menu_page_url_target', 'type' => 'select', 'title' => _x('Page URL Target)', 'Theme Options', IRON_TEXT_DOMAIN), 'options' => array('_self' => 'Same Window', '_blank' => 'New Window'), 'sub_desc' => ''), array('id' => 'menu_page_icon', 'type' => 'fontawesome', 'title' => _x('Page URL Icon Class', 'Theme Options', IRON_TEXT_DOMAIN))))), array('id' => 'header_top_menu_background', 'type' => 'color', 'title' => __('Hot Links Background', IRON_TEXT_DOMAIN), 'std' => '#ffffff'), array('id' => 'header_top_menu_link_color', 'type' => 'color', 'title' => __('Hot Links Color', IRON_TEXT_DOMAIN), 'std' => '#ffffff'))); $redux_sections[] = array('icon' => 'chevron-down', 'icon_class' => 'fa-lg', 'title' => __('Footer Options', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some footer options that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 1, 'type' => 'info', 'desc' => '<h4 class="title">' . __('Site Footer', IRON_TEXT_DOMAIN) . '</h4>'), array('id' => 'footer-area_id', 'type' => 'widget_area_select', 'title' => __('Widget Area', IRON_TEXT_DOMAIN), 'std' => 'lush_sidebar_2'), array('id' => 'footer_social_media_enabled', 'type' => 'checkbox', 'title' => __('Footer Social Media Enabled', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'footer_back_to_top_enabled', 'type' => 'checkbox', 'title' => __('Back To Top Button', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 3, 'type' => 'info', 'desc' => '<h4 class="title">' . __('Copyright & Notices', IRON_TEXT_DOMAIN) . '</h4>'), array('id' => 'footer_bottom_logo', 'type' => 'upload', 'title' => __('Bottom Logo', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload a mini logo that will appear on the bottom. Could be a partner or a record label, for example.', IRON_TEXT_DOMAIN), 'desc' => 'Maximum Size : 200 × 100 px', 'std' => get_template_directory_uri() . '/images/logo-irontemplates-footer.png', 'class' => 'greybg'), array('id' => 'footer_bottom_link', 'type' => 'text', 'title' => __('Bottom Logo URL', IRON_TEXT_DOMAIN), 'sub_desc' => __('Add a URL to the mini logo that will appear on the bottom. The link opens in a new window.', IRON_TEXT_DOMAIN), 'std' => 'http://irontemplates.com/'), array('id' => 'footer_copyright', 'type' => 'editor', 'title' => __('Footer Copyright Text', IRON_TEXT_DOMAIN), 'sub_desc' => __('This is a little space under the field title which can be used for additonal info.', IRON_TEXT_DOMAIN), 'std' => 'Copyright © ' . date('Y') . ' Iron Templates<br>All rights reserved'))); $redux_sections[] = array('icon' => 'bars', 'icon_class' => 'fa-lg', 'title' => __('Menu Options', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some main menu options that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'menu_position', 'type' => 'radio', 'title' => __('Menu Position', IRON_TEXT_DOMAIN), 'options' => array('lefttype' => __('Left', IRON_TEXT_DOMAIN), 'righttype' => __('Right', IRON_TEXT_DOMAIN)), 'std' => 'righttype'), array('id' => 'menu_transition', 'type' => 'radio', 'title' => __('Menu Transition', IRON_TEXT_DOMAIN), 'options' => array('type1' => __('Push', IRON_TEXT_DOMAIN), 'type2' => __('Rotate Pusher', IRON_TEXT_DOMAIN), 'type3' => __('Scale & Rotate Pusher', IRON_TEXT_DOMAIN)), 'std' => 'type1'), array('id' => 'menu_logo', 'type' => 'upload', 'title' => __('Menu Logo', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your menu logo', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/menu-logo.png', 'class' => 'greybg'), array('id' => 'retina_menu_logo', 'type' => 'upload', 'title' => __('Menu Retina Logo', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your mobile version logo (2x)', IRON_TEXT_DOMAIN), 'std' => get_iron_option('menu_logo'), 'class' => 'greybg'), array('id' => 'menu_background', 'type' => 'background', 'title' => __('Menu Background', IRON_TEXT_DOMAIN), 'sub_desc' => __('Menu background options / Upload a custom background image', IRON_TEXT_DOMAIN), 'hide' => array('size', 'attachment'), 'class' => 'greybg', 'std' => array('color' => '#353535')), array('id' => 'menu_open_icon_color', 'type' => 'color', 'title' => __('Menu Open Icon Color', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#353535'), array('id' => 'menu_close_icon_color', 'type' => 'color', 'title' => __('Menu Close Icon Color', IRON_TEXT_DOMAIN), 'class' => 'greybg', 'std' => '#ffffff'), array('id' => 'menu_typography', 'type' => 'typography', 'title' => __('Menu Typography', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a font, font size and color', IRON_TEXT_DOMAIN), 'std' => array()), array('id' => 'menu_margin', 'type' => 'text', 'title' => __('Menu Item Margin (px)', IRON_TEXT_DOMAIN), 'sub_desc' => __('Set a menu item margin', IRON_TEXT_DOMAIN), 'std' => '0'))); $redux_sections[] = array('icon' => 'file-o', 'icon_class' => 'fa-lg', 'title' => __('Posts Settings', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some post options that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'post_archive_default_template', 'type' => 'radio', 'title' => __('Posts Archive Default Template', IRON_TEXT_DOMAIN), 'options' => array('index' => __('Blog List', IRON_TEXT_DOMAIN), 'archive-posts-grid' => __('Blog Posts (Grid 2-Columns)', IRON_TEXT_DOMAIN), 'archive-posts-grid3' => __('Blog Posts (Grid 3-Columns)', IRON_TEXT_DOMAIN), 'archive-posts-grid4' => __('Blog Posts (Grid 4-Columns)', IRON_TEXT_DOMAIN)), 'std' => 'index'), array('id' => 'single_post_featured_image', 'type' => 'radio', 'title' => __('Single Post Featured Image', IRON_TEXT_DOMAIN), 'options' => array('fullwidth' => __('Full Width', IRON_TEXT_DOMAIN), 'original' => __('Original', IRON_TEXT_DOMAIN), 'none' => __('None', IRON_TEXT_DOMAIN)), 'std' => 'fullwidth'), array('id' => 'show_post_date', 'type' => 'checkbox', 'title' => __('Show post date in post archive and single posts', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'show_post_author', 'type' => 'checkbox', 'title' => __('Show post author in single posts', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'show_post_categories', 'type' => 'checkbox', 'title' => __('Show post categories in single posts', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'show_post_tags', 'type' => 'checkbox', 'title' => __('Show post tags in single posts', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'single_post_settings', 'type' => 'info', 'desc' => '<br><h4 class="title">' . __('Single Posts Page Titles', IRON_TEXT_DOMAIN) . '</h4>'), array('id' => 'single_post_page_title', 'type' => 'text', 'title' => __('Single Post Page Title', IRON_TEXT_DOMAIN), 'std' => 'News'), array('id' => 'single_event_page_title', 'type' => 'text', 'title' => __('Single Event Page Title', IRON_TEXT_DOMAIN), 'std' => 'Events'), array('id' => 'single_video_page_title', 'type' => 'text', 'title' => __('Single Video Page Title', IRON_TEXT_DOMAIN), 'std' => 'Videos'), array('id' => 'single_album_page_title', 'type' => 'text', 'title' => __('Single Discography Page Title', IRON_TEXT_DOMAIN), 'std' => 'Discographies'), array('id' => 'single_shop_page_title', 'type' => 'text', 'title' => __('Single Shop Page Title', IRON_TEXT_DOMAIN), 'std' => 'Shop'))); $redux_sections[] = array('icon' => 'calendar', 'icon_class' => 'fa-lg', 'title' => __('Events Settings', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some events options that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'default_event_show_time', 'type' => 'checkbox', 'title' => __('Show the time on new events', IRON_TEXT_DOMAIN), 'sub_desc' => '<small><em>(' . __('This setting may be overridden for individual events.', IRON_TEXT_DOMAIN) . ')</em></small>', 'switch' => true, 'std' => '0'), array('id' => 'events_show_countdown_rollover', 'type' => 'checkbox', 'title' => __('Show countdown on rollover', IRON_TEXT_DOMAIN), 'sub_desc' => '<small><em>(' . __('This setting may be overridden for individual events.', IRON_TEXT_DOMAIN) . ')</em></small>', 'switch' => true, 'std' => '1'), array('id' => 'events_more_label_on_mobile', 'type' => 'text', 'title' => __('Bottom Logo URL', IRON_TEXT_DOMAIN), 'sub_desc' => __('"More" label shown on mobile version', IRON_TEXT_DOMAIN), 'std' => 'More'))); $redux_sections[] = array('icon' => 'picture-o', 'icon_class' => 'fa-lg', 'title' => __('Photos Settings', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here you can set multiple photo sizes for the dynamic photo galleries.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'photo_sizes', 'type' => 'group', 'title' => _x('Photo Sizes', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => _x('Add / update photo sizes.', 'Theme Options', IRON_TEXT_DOMAIN), 'std' => array(0 => array('size_name' => __('Small Square', IRON_TEXT_DOMAIN), 'size_width' => 150, 'size_height' => 150, 'order_no' => 1), 1 => array('size_name' => __('Small Portrait', IRON_TEXT_DOMAIN), 'size_width' => 150, 'size_height' => 300, 'order_no' => 1), 2 => array('size_name' => __('Small Landscape', IRON_TEXT_DOMAIN), 'size_width' => 300, 'size_height' => 150, 'order_no' => 1), 3 => array('size_name' => __('Medium Square', IRON_TEXT_DOMAIN), 'size_width' => 300, 'size_height' => 300, 'order_no' => 1), 4 => array('size_name' => __('Medium Portrait', IRON_TEXT_DOMAIN), 'size_width' => 300, 'size_height' => 600, 'order_no' => 1), 5 => array('size_name' => __('Medium Landscape', IRON_TEXT_DOMAIN), 'size_width' => 600, 'size_height' => 300, 'order_no' => 1), 6 => array('size_name' => __('Large Square', IRON_TEXT_DOMAIN), 'size_width' => 450, 'size_height' => 450, 'order_no' => 1), 7 => array('size_name' => __('Large Portrait', IRON_TEXT_DOMAIN), 'size_width' => 450, 'size_height' => 800, 'order_no' => 1), 8 => array('size_name' => __('Large Landscape', IRON_TEXT_DOMAIN), 'size_width' => 800, 'size_height' => 450, 'order_no' => 1)), 'options' => array('group' => array('name' => _x('Photo Sizes', 'Theme Options', IRON_TEXT_DOMAIN), 'title_key' => 'size_name'), 'fields' => array(array('id' => 'size_name', 'type' => 'text', 'title' => _x('Size Name', 'Theme Options', IRON_TEXT_DOMAIN)), array('id' => 'size_width', 'type' => 'text', 'title' => _x('Width', 'Theme Options', IRON_TEXT_DOMAIN)), array('id' => 'size_height', 'type' => 'text', 'title' => _x('Height', 'Theme Options', IRON_TEXT_DOMAIN))))), array('id' => 'lightbox-transition', 'type' => 'select', 'title' => __('Light Box Transition', IRON_TEXT_DOMAIN), 'options' => array('fade' => 'Fade', 'elastic' => 'Elastic'), 'std' => 'fade'))); $redux_sections[] = array('icon' => 'facebook', 'icon_class' => 'fa-lg', 'title' => __('Social Media', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some social settings that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'facebook_appid', 'type' => 'text', 'title' => __('Facebook App ID', IRON_TEXT_DOMAIN), 'sub_desc' => __('When you <a target="_blank" href="https://developers.facebook.com/setup/">register your website as an app</a>, you can get detailed analytics about the demographics of your users and how users are sharing from your website with <a target="_blank" href="https://www.facebook.com/insights/">Insights</a>.', IRON_TEXT_DOMAIN), 'std' => ''), array('id' => 'custom_social_actions', 'type' => 'textarea', 'title' => __('Custom Social Buttons', IRON_TEXT_DOMAIN), 'sub_desc' => __('Add your favorite drop-in bookmarking and social link-sharing scripts.<br /><br />e.g., <a target="_blank" href="//sharethis.com/">ShareThis</a>, <a target="_blank" href="//www.addthis.com/">AddThis</a>', IRON_TEXT_DOMAIN), 'rows' => '20', 'std' => ' <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_pinterest_pinit"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js"></script> <!-- AddThis Button END --> '), array('id' => 'social_icons', 'type' => 'group', 'title' => _x('Social Icons', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => _x('Add / update social media icons.', 'Theme Options', IRON_TEXT_DOMAIN), 'std' => array(0 => array('social_media_name' => __('Facebook', IRON_TEXT_DOMAIN), 'social_media_url' => 'https://facebook.com/envato', 'social_media_icon_class' => 'facebook', 'social_media_icon_url' => '', 'order_no' => 1), 1 => array('social_media_name' => __('Twitter', IRON_TEXT_DOMAIN), 'social_media_url' => 'https://twitter.com/envato', 'social_media_icon_class' => 'twitter', 'social_media_icon_url' => '', 'order_no' => 1)), 'options' => array('group' => array('name' => _x('Social Media', 'Theme Options', IRON_TEXT_DOMAIN), 'title_key' => 'social_media_name'), 'fields' => array(array('id' => 'social_media_name', 'type' => 'text', 'title' => _x('Social Media Name', 'Theme Options', IRON_TEXT_DOMAIN)), array('id' => 'social_media_url', 'type' => 'text', 'title' => _x('Social Media URL', 'Theme Options', IRON_TEXT_DOMAIN), 'sub_desc' => 'Ex: http://www.facebook.com/IronTemplates<br>'), array('id' => 'social_media_icon_class', 'type' => 'fontawesome', 'title' => _x('Social Media Icon Class', 'Theme Options', IRON_TEXT_DOMAIN)), array('id' => 'social_media_icon_url', 'type' => 'upload', 'title' => _x('Social Media Icon Image', 'Theme Options', IRON_TEXT_DOMAIN))))))); if (function_exists('is_plugin_active') && is_plugin_active('nmedia-mailchimp-widget/nm_mailchimp.php')) { $results = $wpdb->get_results('SELECT form_id, form_name FROM ' . $wpdb->prefix . 'nm_mc_forms ORDER BY form_name'); $newsletters = array(); foreach ($results as $result) { $newsletters[$result->form_id] = !empty($result->form_name) ? $result->form_name : $result->form_id; } $redux_sections[] = array('icon' => 'envelope', 'icon_class' => 'fa-lg', 'title' => __('Footer Newsletter', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some newsletter settings that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'footer_newsletter_enabled', 'type' => 'checkbox', 'title' => __('Footer Newsletter Form', IRON_TEXT_DOMAIN), 'sub_desc' => __('Enable / Disable Newsletter Form above the footer', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'), array('id' => 'footer_newsletter_home_only', 'type' => 'checkbox', 'title' => __('Show the footer newsletter on the home page only', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '0'), array('id' => 'footer_newsletter_title', 'type' => 'text', 'title' => __('Newsletter Title', IRON_TEXT_DOMAIN), 'std' => 'Newsletter'), array('id' => 'footer_newsletter_description', 'type' => 'textarea', 'title' => __('Newsletter Description', IRON_TEXT_DOMAIN), 'std' => 'Get monthly fresh updates in your mailbox'), array('id' => 'footer_newsletter_id', 'type' => 'select', 'title' => __('Newsletter Form', IRON_TEXT_DOMAIN), 'sub_desc' => __('Choose a Newsletter Form. You can manage your newsletter forms <a href="' . admin_url('admin.php?page=mailchimp-shortcodes') . '">here</a>', IRON_TEXT_DOMAIN), 'options' => $newsletters, 'std' => ''))); } $redux_sections[] = array('icon' => 'code', 'icon_class' => 'fa-lg', 'title' => __('Fav Icons & Metadata', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some metadata options that you can edit, including favicons and a short title for mobile home screens.<br>You can use this online tool to easily generate your favicons. <a href="http://iconifier.net" target="_blank" />http://iconifier.net/</a>', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'meta_favicon', 'type' => 'upload', 'title' => __('Favicon', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your shortcut icon', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/icons/favicon.ico', 'desc' => 'Icon Size: 32px × 32px', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon', 'type' => 'upload', 'title' => __('Apple Touch Icon (57×57)', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your shortcut icon', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/icons/apple-touch-icon-57x57-precomposed.png', 'desc' => 'Precomposed. Icon Size: 57px × 57px. For iPhone 3GS, 2011 iPod Touch and older Android devices.', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon_72x72', 'type' => 'upload', 'title' => __('Apple Touch Icon (72×72)', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your shortcut icon', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/icons/apple-touch-icon-72x72-precomposed.png', 'desc' => 'Precomposed. Icon Size: 72px × 72px. For 1st generation iPad, iPad 2 and iPad mini.', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon_114x114', 'type' => 'upload', 'title' => __('Apple Touch Icon (114×114)', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your shortcut icon', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/icons/apple-touch-icon-114x114-precomposed.png', 'desc' => 'Precomposed. Icon Size: 114px × 114px. For iPhone 4, 4S, 5 and 2012 iPod Touch.', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon_144x144', 'type' => 'upload', 'title' => __('Apple Touch Icon (144×144)', IRON_TEXT_DOMAIN), 'sub_desc' => __('Upload your shortcut icon', IRON_TEXT_DOMAIN), 'std' => get_template_directory_uri() . '/images/icons/apple-touch-icon-144x144-precomposed.png', 'desc' => 'Precomposed. Icon Size: 144px × 144px. For iPad 3rd and 4th generation.', 'class' => 'greybg'), array('id' => 'meta_apple_mobile_web_app_title', 'type' => 'text', 'title' => __('Apple Mobile Web App Title', IRON_TEXT_DOMAIN), 'desc' => '<br><br>Sets a different title for an iOS Home Screen icon. By default, Mobile Safari crops document titles to 13 characters.', 'std' => ''))); $redux_sections[] = array('icon' => 'exclamation-triangle', 'icon_class' => 'fa-lg', 'title' => __('404 Error', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here you can edit the 404 error page content.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => '404_page_title', 'type' => 'text', 'title' => __('Page Title', IRON_TEXT_DOMAIN), 'std' => 'Page not found'), array('id' => '404_page_content', 'type' => 'editor', 'wpautop' => false, 'title' => __('Page Content', IRON_TEXT_DOMAIN), 'std' => '<p style="text-align: center;">Are you lost? The content you were looking for is not here.</p><p style="text-align: center;"><a href="' . home_url('/') . '">Return to home page</a></p>'))); if (function_exists('is_plugin_active') && is_plugin_active('woocommerce/woocommerce.php')) { $redux_sections[] = array('icon' => 'shopping-cart ', 'icon_class' => 'fa-lg', 'title' => __('WooCommerce', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some WooCommerce settings that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'woo_backgrounds', 'type' => 'checkbox', 'title' => __('Enable WooCommerce Backgrounds', IRON_TEXT_DOMAIN), 'sub_desc' => __('This will add a background to product items and descriptions.<br><b>Primary Color 2</b> will be used for the background.', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '0'))); } if ($redux_args['dev_mode']) { $redux_sections[] = array('icon' => 'cog', 'icon_class' => 'fa-lg', 'title' => __('Developer Settings', IRON_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some developer settings that you can edit.', IRON_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'acf_lite', 'type' => 'checkbox', 'title' => __('Enable ACF LITE Mode', IRON_TEXT_DOMAIN), 'sub_desc' => __('<br>By default, ACF (Advanced Custom Fields) is running in LITE mode. <br>If you which to add your own custom fields using the ACF Admin Interface, you can turn off this option. <br><br><b>NB:</b><br> When ACF LITE is on, custom fields are loaded from the custom-fields.php file found in /includes/ <br>For more info on using ACF, visit <a target="_blank" href="http://www.advancedcustomfields.com/">www.advancedcustomfields.com</a>', IRON_TEXT_DOMAIN), 'switch' => true, 'std' => '1'))); } $redux_tabs = array(); if (function_exists('wp_get_theme')) { $theme_data = wp_get_theme(); $item_uri = $theme_data->get('ThemeURI'); $name = $theme_data->get('Name'); $description = $theme_data->get('Description'); $author = $theme_data->get('Author'); $author_uri = $theme_data->get('AuthorURI'); $version = $theme_data->get('Version'); $tags = $theme_data->get('Tags'); $item_info = '<div class="redux-opts-section-desc">'; $item_info .= '<p class="redux-opts-item-data description item-description"><h4>' . $name . '</h4>' . $description . '</p>'; $item_info .= '<p class="redux-opts-item-data description item-uri">' . __('<strong>Theme URL:</strong> ', IRON_TEXT_DOMAIN) . '<a href="' . $item_uri . '" target="_blank">' . $item_uri . '</a></p>'; $item_info .= '<p class="redux-opts-item-data description item-author">' . __('<strong>Author:</strong> ', IRON_TEXT_DOMAIN) . ($author_uri ? '<a href="' . $author_uri . '" target="_blank">' . $author . '</a>' : $author) . '</p>'; $item_info .= '<p class="redux-opts-item-data description item-version">' . __('<strong>Version:</strong> ', IRON_TEXT_DOMAIN) . $version . '</p>'; $item_info .= '<p class="redux-opts-item-data description item-tags">' . __('<strong>Tags:</strong> ', IRON_TEXT_DOMAIN) . implode(', ', $tags) . '</p>'; $item_info .= '</div>'; $redux_tabs['item_info'] = array('icon' => 'info', 'icon_class' => 'fa-lg', 'title' => __('Theme Information', IRON_TEXT_DOMAIN), 'content' => $item_info); } global $Redux_Options; $Redux_Options = new Redux_Options($redux_sections, $redux_args, $redux_tabs); }
load_theme_textdomain(IRON_TEXT_DOMAIN, IRON_PARENT_DIR . '/languages'); // Load functions require_once IRON_PARENT_DIR . '/includes/functions.php'; // Load upgrades/migrations require_once IRON_PARENT_DIR . '/includes/upgrade.php'; // Load Updates include_once IRON_PARENT_DIR . '/admin/updates.php'; // Load Admin Panel require_once IRON_PARENT_DIR . '/admin/options.php'; // Load dynamic styles class require_once IRON_PARENT_DIR . '/includes/classes/styles.class.php'; // Load Plugin installation and activation require_once IRON_PARENT_DIR . '/includes/classes/tgmpa.class.php'; require_once IRON_PARENT_DIR . '/includes/plugins.php'; // Load ACF $acflite = get_iron_option('acf_lite'); if (is_null($acflite)) { $acflite = true; } define('ACF_LITE', (bool) $acflite); if (!class_exists('acf')) { require_once 'includes/advanced-custom-fields/acf.php'; } // Load Custom Post types require_once IRON_PARENT_DIR . '/includes/post-types.php'; // Load Taxonomies require_once IRON_PARENT_DIR . '/includes/taxonomies.php'; // Load Widgets require_once IRON_PARENT_DIR . '/includes/classes/widget.class.php'; require_once IRON_PARENT_DIR . '/includes/widgets.php'; // Load Shortcodes
$attr[] = 'data-eventsfilter="' . $events_filter . '"'; $attr[] = 'data-isocol="' . $isocol . '"'; if ($paginate_method == 'paginate_scroll') { $paginate_method = "paginate_more"; } /** * Setup Dynamic Sidebar */ list($has_sidebar, $sidebar_position, $sidebar_area) = setup_dynamic_sidebar($page_for_archive->ID); /** * Setup Post Type Structure */ switch ($post_type) { case 'post': $tag = 'div'; $show_post_date = (bool) get_iron_option('show_post_date'); if (empty($item_template)) { $item_template = 'post_grid'; } if ($item_template == 'post_grid') { $class = 'articles-section'; } else { if ($item_template == 'post_isotope') { $class = 'isotope-wrap'; } else { $class = 'listing-section news'; } } $attr[] = 'data-callback="initGridDisplayNews,initIsotope"'; $caption = 'Older News'; $next = 'Older News';
} } } } register_field_group(array('id' => 'acf_sidebar-options', 'title' => 'Sidebar Options', 'fields' => array(array('key' => 'field_526d6ec715ee9', 'label' => 'Sidebar Position', 'name' => 'sidebar-position', 'type' => 'radio', 'choices' => array('disabled' => 'Disabled', 'left' => 'Left', 'right' => 'Right'), 'other_choice' => 0, 'save_other_choice' => 0, 'default_value' => $sidebar_position, 'layout' => 'vertical'), array('key' => 'field_526d6c0da8219', 'label' => 'Widget Area', 'name' => 'sidebar-area_id', 'type' => 'widget_area', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_526d6ec715ee9', 'operator' => '!=', 'value' => 'disabled')), 'allorany' => 'all'), 'allow_null' => 1, 'default_value' => $default_sidebar)), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'post', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'page', 'order_no' => 0, 'group_no' => 1)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'video', 'order_no' => 0, 'group_no' => 2)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'event', 'order_no' => 0, 'group_no' => 2)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'photo-album', 'order_no' => 0, 'group_no' => 2)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'album', 'order_no' => 0, 'group_no' => 2))), 'options' => array('position' => 'side', 'layout' => 'default', 'hide_on_screen' => array()), 'menu_order' => 0)); register_field_group(array('id' => 'single-post-options', 'title' => 'Single Post Options', 'fields' => array(array('key' => 'field_526d6ec715ef9', 'label' => 'Single Post Featured Image', 'name' => 'single_post_featured_image', 'type' => 'radio', 'choices' => array('fullwidth' => 'Full Width', 'original' => 'Original', 'none' => 'None'), 'other_choice' => 0, 'save_other_choice' => 0, 'default_value' => $single_post_featured_image, 'layout' => 'vertical')), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'post', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'side', 'layout' => 'default', 'hide_on_screen' => array()), 'menu_order' => 0)); register_field_group(array('id' => 'acf_news-template-settings', 'title' => 'Template Settings', 'fields' => array(array('key' => 'field_523382c925a72', 'label' => 'Enable Excerpts', 'name' => 'enable_excerpts', 'type' => 'true_false', 'default_value' => 0, 'placeholder' => 0)), 'location' => array(array(array('param' => 'page_template', 'operator' => '==', 'value' => 'index.php', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'page_template', 'operator' => '==', 'value' => 'archive-posts-grid.php', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'page_template', 'operator' => '==', 'value' => 'archive-posts-grid3.php', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'page_template', 'operator' => '==', 'value' => 'archive-posts-grid4.php', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'side', 'hide_on_screen' => array()), 'menu_order' => 0)); register_field_group(array('id' => 'acf_page-settings', 'title' => 'Page Settings', 'fields' => array(array('key' => 'field_523382c955a73', 'label' => 'Hide Page Title', 'name' => 'hide_page_title', 'type' => 'true_false', 'default_value' => 0, 'placeholder' => 0), array('key' => 'field_523382c955a74', 'label' => 'Background', 'name' => 'background', 'type' => 'image', 'save_format' => 'id', 'preview_size' => 'medium', 'library' => 'all'), array('key' => 'field_523382f555a75', 'label' => 'Background Repeat', 'name' => 'background_repeat', 'type' => 'select', 'choices' => array('repeat' => 'Repeat', 'no-repeat' => 'No Repeat', 'repeat-x' => 'Repeat X', 'repeat-y' => 'Repeat Y', 'inherit' => 'Inherit'), 'default_value' => '', 'allow_null' => 1, 'multiple' => 0), array('key' => 'field_5233837455a76', 'label' => 'Background Size', 'name' => 'background_size', 'type' => 'select', 'choices' => array('cover' => 'Cover', 'contain' => 'Contain', 'inherit' => 'Inherit'), 'default_value' => '', 'allow_null' => 1, 'multiple' => 0), array('key' => 'field_5233842d55a78', 'label' => 'Background Position', 'name' => 'background_position', 'type' => 'select', 'choices' => array('left top' => 'left top', 'left center' => 'left center', 'left bottom' => 'left bottom', 'right top' => 'right top', 'right center' => 'right center', 'right bottom' => 'right bottom', 'center top' => 'center top', 'center center' => 'center center', 'center bottom' => 'center bottom', 'inherit' => 'Inherit'), 'default_value' => '', 'allow_null' => 1, 'multiple' => 0), array('key' => 'field_523384ce55a79', 'label' => 'Background Color', 'name' => 'background_color', 'instructions' => 'Background Images will not be shown on mobile.<br>Please set a background color instead', 'type' => 'color_picker', 'default_value' => ''), array('key' => 'field_523384ce55a80', 'label' => 'Content Background Color', 'name' => 'content_background_color', 'type' => 'color_picker', 'default_value' => ''), array('key' => 'field_523384ce55a81', 'label' => 'Content Background Transparency', 'name' => 'content_background_transparency', 'instructions' => __('Set the content opacity between 0 and 1', IRON_TEXT_DOMAIN), 'type' => 'number', 'min' => 0, 'max' => 1, 'step' => 0.1, 'default_value' => 1)), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'page', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'post', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'event', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'video', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'album', 'order_no' => 0, 'group_no' => 0)), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'photo-album', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array()), 'menu_order' => 0)); register_field_group(array('id' => 'acf_page-banner', 'title' => 'Page Banner', 'fields' => array(array('key' => 'field_54ce55f555a01', 'label' => 'Background Type', 'name' => 'banner_background_type', 'type' => 'select', 'choices' => array('image-background' => 'Image Background', 'color-background' => 'Color Background'), 'default_value' => '', 'allow_null' => 1, 'multiple' => 0), array('key' => 'field_54ce55f555a02', 'label' => 'Page banner Background Color', 'name' => 'banner_background_color', 'instructions' => 'Set your desired page banner background color if not using an image', 'type' => 'color_picker', 'default_value' => '', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a01', 'operator' => '==', 'value' => 'color-background')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a03', 'label' => 'Parallax Effect ?', 'name' => 'banner_parallax', 'type' => 'true_false', 'default_value' => 0, 'placeholder' => 0, 'instructions' => 'This will cause your banner to have a parallax scroll effect.', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a01', 'operator' => '==', 'value' => 'image-background')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a04', 'label' => 'Page banner Image', 'name' => 'banner_image', 'instructions' => 'The image should be between 1600px - 2000px wide and have a minimum height of 475px for best results. Click "Browse" to upload and then "Insert into Post"', 'type' => 'image', 'save_format' => 'id', 'preview_size' => 'medium', 'library' => 'all', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a01', 'operator' => '==', 'value' => 'image-background')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a05', 'label' => 'Fullscreen Height', 'name' => 'banner_fullscreen', 'type' => 'true_false', 'default_value' => 0, 'placeholder' => 0, 'instructions' => 'Chooseing this option will allow your banner to always remain fullscreen on all devices/screen sizes.'), array('key' => 'field_54ce55f555a06', 'label' => 'Page banner Height', 'name' => 'banner_height', 'type' => 'text', 'default_value' => 0, 'placeholder' => 0, 'instructions' => 'How tall do you want your banner? Don\'t include "px" in the string. e.g. 350', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a05', 'operator' => '!=', 'value' => '1')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a13', 'label' => 'Content Type', 'name' => 'banner_content_type', 'type' => 'select', 'choices' => array('default-content' => 'Default Content (Title & Subtitle)', 'advanced-content' => 'Advanced Content (Texteditor)'), 'default_value' => 'default-content', 'allow_null' => 0, 'multiple' => 0), array('key' => 'field_54ce55f555a14', 'label' => 'Texteditor Content', 'name' => 'banner_texteditor_content', 'type' => 'wysiwyg', 'toolbar' => 'full', 'media_upload' => false, 'default_value' => '', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a13', 'operator' => '==', 'value' => 'advanced-content')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a07', 'label' => 'Page banner Title', 'name' => 'banner_title', 'type' => 'text', 'default_value' => '', 'placeholder' => '', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a13', 'operator' => '==', 'value' => 'default-content')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a08', 'label' => 'Page banner Subtitle', 'name' => 'banner_subtitle', 'type' => 'text', 'default_value' => '', 'placeholder' => '', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a13', 'operator' => '==', 'value' => 'default-content')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a09', 'label' => 'banner Horizontal Content Alignment', 'name' => 'banner_horizontal_content_alignment', 'instructions' => 'Configure the position for your slides content', 'type' => 'radio', 'choices' => array('left' => 'Left', 'centered' => 'Centered', 'right' => 'Right'), 'default_value' => 'centered', 'layout' => 'horizontal', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a13', 'operator' => '==', 'value' => 'default-content')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a10', 'label' => 'banner Vertical Content Alignment', 'name' => 'banner_vertical_content_alignment', 'instructions' => 'Configure the position for your slides content', 'type' => 'radio', 'choices' => array('top' => 'Top', 'middle' => 'Middle', 'bottom' => 'Bottom'), 'default_value' => 'middle', 'layout' => 'horizontal'), array('key' => 'field_54ce55f555a11', 'label' => 'Background Alignement', 'name' => 'banner_background_alignement', 'type' => 'select', 'choices' => array('top' => 'Top', 'center' => 'Center', 'bottom' => 'Bottom'), 'default_value' => 'center', 'allow_null' => 0, 'multiple' => 0, 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a01', 'operator' => '==', 'value' => 'image-background')), 'allorany' => 'all')), array('key' => 'field_54ce55f555a12', 'label' => 'Page banner Font Color', 'name' => 'banner_font_color', 'instructions' => 'Set your desired page banner font color', 'type' => 'color_picker', 'default_value' => '', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_54ce55f555a13', 'operator' => '==', 'value' => 'default-content')), 'allorany' => 'all'))), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'page', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array()), 'menu_order' => 0)); register_field_group(array('id' => 'acf_video-embedder', 'title' => 'Video Embedder', 'fields' => array(array('key' => 'field_51b8d3ffdfe45', 'label' => 'Video', 'name' => 'vid_video', 'type' => 'textarea', 'instructions' => 'Add the Embed Code from YouTube', 'default_value' => '<iframe width="640" height="360" src="http://www.youtube.com/embed/aHjpOzsQ9YI?feature=player_detailpage&wmode=opaque" frameborder="0" allowfullscreen></iframe>', 'placeholder' => '', 'maxlength' => '', 'formatting' => 'html')), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'video', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array(0 => 'excerpt', 1 => 'custom_fields', 2 => 'discussion', 3 => 'comments', 4 => 'revisions')), 'menu_order' => 0)); register_field_group(array('id' => 'acf_album-infos', 'title' => 'Album Infos', 'fields' => array(array('key' => 'field_51b8db2cd11c5', 'label' => 'Hide album within the Albums Posts template', 'instructions' => '<br style="clear:both">Could be useful for solo / remix albums<br><br>', 'name' => 'hide_album', 'type' => 'true_false', 'placeholder' => 0), array('key' => 'field_51b8db2cd11c4', 'label' => 'Release Date', 'name' => 'alb_release_date', 'type' => 'date_picker', 'date_format' => 'yy-mm-dd', 'display_format' => 'yy-mm-dd', 'first_day' => 1), array('key' => 'field_523b66d6f2382', 'label' => 'External Link', 'name' => 'alb_link_external', 'type' => 'text', 'instructions' => __('Users will be redirected to the link’s destination instead of the album’s details page.', IRON_TEXT_DOMAIN), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_51b8c4facc846', 'label' => 'Tracklist', 'name' => 'alb_tracklist', 'type' => 'repeater', 'sub_fields' => array(array('key' => 'field_51b8c51ecc847', 'label' => 'Title', 'name' => 'track_title', 'type' => 'text', 'column_width' => '', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8c5e3cc848', 'label' => 'Where to buy', 'name' => 'track_store', 'type' => 'text', 'instructions' => 'Add link to the online store to buy this track', 'column_width' => '', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8c5e3cc850', 'label' => 'Buy Track Label', 'name' => 'track_buy_label', 'type' => 'text', 'instructions' => 'Add your own buy track label', 'column_width' => '', 'default_value' => 'Buy Track', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8c637cc849', 'label' => 'MP3', 'name' => 'track_mp3', 'type' => 'file', 'instructions' => 'Upload the mp3 file', 'column_width' => '', 'save_format' => 'url', 'library' => 'all')), 'row_min' => 0, 'row_limit' => '', 'layout' => 'table', 'button_label' => '+ Add Track'), array('key' => 'field_51b8c6d6cc84a', 'label' => 'Store list', 'name' => 'alb_store_list', 'type' => 'repeater', 'instructions' => 'Links the the online stores to buy album', 'sub_fields' => array(array('key' => 'field_51b8c6fdcc84b', 'label' => 'Store Name', 'name' => 'store_name', 'type' => 'text', 'instructions' => 'Examples : iTunes, Bandcamp, Soundcloud, etc.', 'column_width' => '', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8c718cc84c', 'label' => 'Store Link', 'name' => 'store_link', 'type' => 'text', 'instructions' => 'Link to the online store', 'column_width' => '', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => '')), 'row_min' => 0, 'row_limit' => '', 'layout' => 'table', 'button_label' => '+ Add Store'), array('key' => 'field_51b8c792cc84d', 'label' => 'Review', 'name' => 'alb_review', 'type' => 'textarea', 'default_value' => '', 'formatting' => 'br', 'maxlength' => '', 'placeholder' => ''), array('key' => 'field_51b8c88fcc84e', 'label' => 'Review Author', 'name' => 'alb_review_author', 'type' => 'text', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => '')), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'album', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array(0 => 'excerpt', 1 => 'custom_fields', 2 => 'discussion', 3 => 'comments', 4 => 'categories', 5 => 'tags', 6 => 'send-trackbacks')), 'menu_order' => 0)); $photo_sizes_options = get_iron_option('photo_sizes'); $photo_sizes = array('random' => 'Random'); if (!empty($photo_sizes_options) && is_array($photo_sizes_options)) { foreach ($photo_sizes_options as $key => $size) { $photo_sizes["size_" . $key] = $size["size_name"] . " (" . $size["size_width"] . "x" . $size["size_height"] . ")"; } } register_field_group(array('id' => 'acf_photo_album', 'title' => 'Photo Album', 'fields' => array(array('key' => 'field_51c4d5b5f6475', 'label' => 'Album Photos', 'name' => 'album_photos', 'type' => 'repeater', 'sub_fields' => array(array('key' => 'field_51c4d6b5f6477', 'label' => 'Photo Upload', 'name' => 'photo_file', 'type' => 'image', 'column_width' => '', 'save_format' => 'object', 'preview_size' => 'medium', 'library' => 'all'), array('key' => 'field_51c4d622f6479', 'label' => 'Photo Size', 'name' => 'photo_size', 'type' => 'select', 'choices' => $photo_sizes, 'allow_null' => 0, 'default_value' => 'random'), array('key' => 'field_51c4d622f6476', 'label' => 'Photo Title', 'name' => 'photo_title', 'type' => 'text', 'column_width' => '', 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'html', 'maxlength' => ''), array('key' => 'field_51c4d622f6478', 'label' => 'Image Position', 'name' => 'photo_position', 'instructions' => 'Click on the picture where you would like to focus to automatically set the position within the dynamic grid on the frontend', 'type' => 'text', 'column_width' => '', 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'html', 'maxlength' => '')), 'row_min' => 0, 'row_limit' => '', 'layout' => 'row', 'button_label' => 'Add Photo')), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'photo-album', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array()), 'menu_order' => 0)); register_field_group(array('id' => 'acf_iosslider', 'title' => 'IOS Slider Photos', 'fields' => array(array('key' => 'field_61c4d5b5f6474', 'type' => 'message', 'message' => '<label for="acf-field-slider_shortcode">' . __('Shortcode') . '</label><input type="text" readonly value="[iron_iosslider id=' . (!empty($_GET["post"]) ? $_GET["post"] : '') . ']" />'), array('key' => 'field_61c4d5b5f6473', 'label' => 'Slider Height', 'instructions' => 'Height in Pixels)', 'name' => 'slider_height', 'type' => 'number', 'default_value' => '300', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_61c4d5b5f6475', 'label' => 'Slider Photos', 'name' => 'slider_photos', 'type' => 'repeater', 'sub_fields' => array(array('key' => 'field_5220bd6a85dfb', 'label' => 'Photo Upload', 'name' => 'photo_file', 'type' => 'image', 'column_width' => '', 'save_format' => 'url', 'preview_size' => 'medium', 'library' => 'all'), array('key' => 'field_5220bd6a85dea', 'label' => 'Photo Overlay Text 1', 'name' => 'photo_text_1', 'type' => 'text', 'default_value' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_5220bd6a85deb', 'label' => 'Photo Overlay Text 2', 'name' => 'photo_text_2', 'type' => 'text', 'default_value' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_5220bd6a85dfc', 'label' => 'Link Type', 'name' => 'slide_link_type', 'type' => 'radio', 'choices' => array('internal' => 'Internal Page', 'external' => 'External Link'), 'other_choice' => 0, 'save_other_choice' => 0, 'default_value' => 'internal', 'layout' => 'horizontal'), array('key' => 'field_51b9e1a1fde59', 'label' => 'Slide Link', 'name' => 'slide_link', 'type' => 'page_link', 'instructions' => 'Add link to redirect the user on click.', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_5220bd6a85dfc', 'operator' => '==', 'value' => 'internal')), 'allorany' => 'all'), 'post_type' => array(0 => 'all'), 'allow_null' => 0, 'multiple' => 0), array('key' => 'field_5220bdac85dfd', 'label' => 'Slide Link', 'name' => 'slide_link_external', 'type' => 'text', 'instructions' => 'Add link to redirect the user on click.', 'conditional_logic' => array('status' => 1, 'rules' => array(array('field' => 'field_5220bd6a85dfc', 'operator' => '==', 'value' => 'external')), 'allorany' => 'all'), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_52386855ea1e9', 'label' => 'Slide Call-To-Action', 'name' => 'slide_more_text', 'type' => 'text', 'default_value' => '', 'placeholder' => get_iron_option('slide_more_label') ? get_iron_option('slide_more_label') : __('Read More', IRON_TEXT_DOMAIN), 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => '')), 'row_min' => 0, 'row_limit' => '', 'layout' => 'row', 'button_label' => 'Add Slide')), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'iosslider', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array(0 => 'the_content', 1 => 'excerpt', 2 => 'custom_fields', 3 => 'discussion', 4 => 'comments', 5 => 'categories', 6 => 'tags', 7 => 'send-trackbacks')), 'menu_order' => 0)); $default_event_show_time = get_iron_option('default_event_show_time'); if (is_null($default_event_show_time)) { $default_event_show_time = true; } $events_show_countdown_rollover = get_iron_option('events_show_countdown_rollover'); if (is_null($events_show_countdown_rollover)) { $events_show_countdown_rollover = true; } register_field_group(array('id' => 'acf_event-infos', 'title' => 'Event Infos', 'fields' => array(array('key' => 'field_523b46ebe355f', 'type' => 'message', 'message' => '<p><strong for="acf-event-date">' . __('Event Date / Time') . '</strong></p>Please use the post publish date to set your event date'), array('key' => 'field_523b46ebe35ef', 'label' => '', 'name' => 'event_show_time', 'type' => 'true_false', 'message' => 'Show the time', 'default_value' => (bool) $default_event_show_time), array('key' => 'field_523b46ebe35f0', 'label' => '', 'name' => 'event_enable_countdown', 'type' => 'true_false', 'message' => 'Enable Rollover Countdown', 'default_value' => (bool) $events_show_countdown_rollover), array('key' => 'field_51b8bf97193f8', 'label' => 'City', 'name' => 'event_city', 'type' => 'text', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8bfa8193f9', 'label' => 'Venue', 'name' => 'event_venue', 'type' => 'text', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8bfbf193fb', 'label' => 'Map Link Label', 'name' => 'event_map_label', 'type' => 'text', 'default_value' => 'Google Map', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => 'Google Map', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8bfbf193fa', 'label' => 'Map Link', 'name' => 'event_map', 'type' => 'text', 'instructions' => 'Add the link to Google Maps pointing to the Venue', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8bff2193fd', 'label' => 'Call to Action Label', 'name' => 'event_action_label', 'type' => 'text', 'default_value' => 'Tickets', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => 'Tickets', 'prepend' => '', 'append' => ''), array('key' => 'field_51b8bff2193fb', 'label' => 'Call to Action Link', 'name' => 'event_link', 'type' => 'text', 'default_value' => '', 'formatting' => 'html', 'maxlength' => '', 'placeholder' => '', 'prepend' => '', 'append' => '')), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'event', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array(0 => 'excerpt', 1 => 'format', 2 => 'categories', 3 => 'tags', 4 => 'send-trackbacks')), 'menu_order' => 0)); register_field_group(array('id' => 'acf_page-event-template', 'title' => 'Events Query', 'fields' => array(array('key' => 'field_51b8bff2193fc', 'label' => 'Filter By', 'name' => 'events_filter', 'type' => 'select', 'choices' => array('upcoming' => 'Upcoming Events', 'past' => 'Past Events'), 'default_value' => 'upcoming', 'allow_null' => 0, 'multiple' => 0)), 'location' => array(array(array('param' => 'page_template', 'operator' => '==', 'value' => 'archive-event.php', 'order_no' => 0, 'group_no' => 0))), 'options' => array('position' => 'normal', 'layout' => 'default', 'hide_on_screen' => array()), 'menu_order' => 0)); }
if (get_iron_option('footer_bottom_logo')) { $output = '<img src="' . esc_url(get_iron_option('footer_bottom_logo')) . '" alt="">'; if (get_iron_option('footer_bottom_link')) { $output = sprintf('<a target="_blank" href="%s">%s</a>', esc_url(get_iron_option('footer_bottom_link')), $output); } echo $output . "\n"; } ?> <div class="text"><?php echo apply_filters('the_content', get_iron_option('footer_copyright')); ?> </div> <div class="clear"></div> <?php $footer_back_to_top_enabled = get_iron_option('footer_back_to_top_enabled'); $footer_back_to_top_text = get_iron_option('footer_back_to_top_text'); ?> <?php if ($footer_back_to_top_enabled) { ?> <a href="#" id="back-to-top" class="footer-wrapper-backtotop"><?php echo __($footer_back_to_top_text, IRON_TEXT_DOMAIN); ?> </a> <?php } ?> </div> </div> </footer>
<?php $template = get_iron_option('post_archive_default_template'); include_once locate_template($template . ".php");
/** * Register widget with WordPress. */ function __construct() { $widget_ops = array('classname' => 'iron_widget_events', 'description' => _x('List upcoming or past events on your site.', 'Widget', IRON_TEXT_DOMAIN)); self::$widget_defaults = array('title' => '', 'post_type' => 'event', 'filter' => '', 'number' => get_iron_option('events_per_page'), 'filter' => 'upcoming', 'action_title' => '', 'action_obj_id' => '', 'action_ext_link' => ''); parent::__construct('iron-events', IRON_WIDGET_PREFIX . __('Event - List', 'Widget', IRON_TEXT_DOMAIN), $widget_ops); add_action('save_post', array($this, 'flush_widget_cache')); add_action('deleted_post', array($this, 'flush_widget_cache')); add_action('switch_theme', array($this, 'flush_widget_cache')); }
} if (!empty($city)) { echo $city; } if (!empty($city) && !empty($venue)) { echo ', '; } if (!empty($venue)) { echo $venue; } ?> </span> </div> <?php $more_label = get_iron_option('events_more_label_on_mobile'); ?> <div class="event-more-button"><?php echo __($more_label, IRON_TEXT_DOMAIN); ?> </div> <div class="clear"></div> </div> <a href="<?php the_permalink(); ?> " class="buttons no-touch"> <?php if (!empty($show_countdown)) { ?> <!-- HOVER COUNTDOWN -->
* Setup Dynamic Sidebar */ list($has_sidebar, $sidebar_position, $sidebar_area) = setup_dynamic_sidebar($post->ID); ?> <!-- container --> <div class="container"> <div class="boxed"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php $single_title = get_iron_option('single_post_page_title'); if (!empty($single_title)) { ?> <span class="heading-t"></span> <h1><?php echo $single_title; ?> </h1> <span class="heading-b"></span> <?php } else { ?> <div class="heading-space"></div>
<?php $archive_page = get_iron_option('page_for_videos'); $archive_page = empty($archive_page) ? false : post_permalink($archive_page); /** * Setup Dynamic Sidebar */ list($has_sidebar, $sidebar_position, $sidebar_area) = setup_dynamic_sidebar($post->ID); ?> <!-- container --> <div class="container"> <div class="boxed"> <?php $single_title = get_iron_option('single_video_page_title'); if (!empty($single_title)) { ?> <span class="heading-t"></span> <h1><?php echo $single_title; ?> </h1> <span class="heading-b"></span> <?php } else { ?> <div class="heading-space"></div>
<?php get_template_part('parts/top-menu'); ?> <?php if (get_iron_option('header_logo') != '') { ?> <a href="<?php echo home_url('/'); ?> " class="site-logo"> <img id="menu-trigger" class="logo-desktop regular" src="<?php echo esc_url(get_iron_option('header_logo')); ?> " data-at2x="<?php echo esc_url(get_iron_option('retina_header_logo')); ?> " alt="<?php echo esc_attr(get_bloginfo('name')); ?> "> </a> <?php } ?> </header> <?php if (!empty($fixed_header)) { ?>
<?php get_header(); ?> <?php $title = get_iron_option('404_page_title'); $content = get_iron_option('404_page_content'); ?> <!-- container --> <div class="container"> <div class="content__wrapper boxed"> <!-- single-post --> <article class="single-post"> <span class="heading-t"></span> <h1><?php _e($title, IRON_TEXT_DOMAIN); ?> </h1> <span class="heading-b"></span> <?php _e($content, IRON_TEXT_DOMAIN); ?> </article> </div> </div> <?php
<?php $categories = get_terms($taxonomy); if (!empty($categories) && !isset($categories->errors)) { if ($taxonomy == 'video-category') { $archive_page = get_iron_option('page_for_videos'); $archive_page = empty($archive_page) ? false : post_permalink($archive_page); } else { if ($taxonomy == 'category') { $archive_page = get_option('page_for_posts'); $archive_page = empty($archive_page) ? false : post_permalink($archive_page); } } ?> <!-- widget-box --> <section class="widget-box"> <!-- title-box --> <header class="title-box"> <h2><?php echo __("CATEGORIES", IRON_TEXT_DOMAIN); ?> </h2> </header> <nav id="cat-list"> <ul> <?php if ($archive_page) { ?> <li><a href="<?php echo $archive_page; ?>