<?php

/*-----------------------------------------------------------------------------------*/
/*	Update Visual Composer Parameters
/*-----------------------------------------------------------------------------------*/
//rows
vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => 'Center content?', 'param_name' => 'centered', 'value' => array('no', 'yes')));
vc_add_param('vc_row_inner', array('type' => 'dropdown', 'heading' => 'Center content?', 'param_name' => 'centered', 'value' => array('no', 'yes')));
//buttons
vc_add_param('vc_button', array('type' => 'colorpicker', 'heading' => 'Background Color', 'param_name' => 'color'));
vc_add_param('vc_button', array('type' => 'colorpicker', 'heading' => 'Text Color', 'param_name' => 'textcolor'));
vc_add_param('vc_button', array('type' => 'dropdown', 'heading' => 'Size', 'param_name' => 'size', 'value' => array('large', 'medium' => 'sd-button-medium', 'small' => 'sd-button-small')));
vc_add_param('vc_button', array('type' => 'dropdown', 'heading' => 'Type', 'param_name' => 'type', 'value' => array('background', 'outlined')));
vc_add_param('vc_button', array('type' => 'textfield', 'heading' => 'Border Radius', 'description' => 'In pixels (eg. 2px)', 'param_name' => 'radius'));
vc_add_param('vc_button', array('type' => 'textfield', 'heading' => 'Rel', 'description' => 'eg. nofollow', 'param_name' => 'rel'));
//separator
vc_add_param('vc_separator', array('type' => 'textfield', 'heading' => 'Margin Top', 'description' => 'Insert the top margin of the separator in pixels. (eg. 20px)', 'param_name' => 'margintop'));
vc_add_param('vc_separator', array('type' => 'textfield', 'heading' => 'Margin Bottom', 'description' => 'Insert the bottom margin of the separator in pixels. (eg. 20px)', 'value' => '0', 'param_name' => 'marginbottom'));
//separator text
vc_add_param('vc_text_separator', array('type' => 'dropdown', 'heading' => 'Heading Type', 'description' => 'Insert the bottom margin of the separator in pixels (eg. 20px)', 'value' => array("h2", "h3", "h4", "h5", "h6"), 'param_name' => 'heading'));
vc_add_param('vc_text_separator', array('type' => 'textfield', 'heading' => 'Margin Top', 'description' => 'Insert the top margin of the separator in pixels (eg. 20px)', 'value' => '0', 'param_name' => 'margintop'));
vc_add_param('vc_text_separator', array('type' => 'textfield', 'heading' => 'Margin Bottom', 'description' => 'Insert the bottom margin of the separator in pixels (eg. 20px)', 'value' => '20px', 'param_name' => 'marginbottom'));
//tabs
vc_add_param('vc_tabs', array('type' => 'dropdown', 'heading' => 'Icon Tabs?', 'param_name' => 'icons', 'value' => array('no', 'yes')));
vc_add_param('vc_tab', array('type' => 'dropdown', 'heading' => 'Icon', 'param_name' => 'icon', 'description' => 'Select an icon for your tab. See <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/cheatsheet/">Icons List Here.</a>', 'value' => sd_font_awesome_icons()));
        public function setSections()
        {
            /**
                          Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
                         * */
            // SD assets location
            $sd_assets_url = ReduxFramework::$_url . '../sd-assets/';
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'sd-framework'), $this->theme->display('Name'));
            ?>
            <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
                <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                        <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                            <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    esc_attr_e('Current theme preview');
                    ?>
" />
                        </a>
                <?php 
                }
                ?>
                    <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                esc_attr_e('Current theme preview');
                ?>
" />
                <?php 
            }
            ?>

                <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>

                <div>
                    <ul class="theme-info">
                        <li><?php 
            printf(__('By %s', 'sd-framework'), $this->theme->display('Author'));
            ?>
</li>
                        <li><?php 
            printf(__('Version %s', 'sd-framework'), $this->theme->display('Version'));
            ?>
</li>
                        <li><?php 
            echo '<strong>' . __('Tags', 'sd-framework') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                    </ul>
                    <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
            <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'sd-framework'), $this->theme->parent()->display('Name'));
            }
            ?>

                </div>
            </div>

            <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                /** @global WP_Filesystem_Direct $wp_filesystem  */
                global $wp_filesystem;
                if (empty($wp_filesystem)) {
                    require_once ABSPATH . '/wp-admin/includes/file.php';
                    WP_Filesystem();
                }
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            //Default RSS URL
            $sd_default_feed = get_bloginfo('rss2_url');
            //Customize course fields names
            $sd_all_data = get_option('sd_data');
            // ACTUAL DECLARATION OF SECTIONS
            $this->sections[] = array('icon' => 'el-icon-cogs', 'title' => __('General', 'sd-framework'), 'fields' => array(array('id' => 'sd_favicon_upload', 'url' => false, 'type' => 'media', 'title' => __('Custom Favicon', 'sd-framework'), 'subtitle' => __('Upload your custom site favicon.', 'sd-framework'), 'default' => array('url' => get_template_directory_uri() . '/framework/images/favicon.ico')), array('id' => 'sd_sidebar_location', 'type' => 'image_select', 'title' => __('Sidebar Location', 'sd-framework'), 'subtitle' => __('Select the location of the sidebar.', 'sd-framework'), 'options' => array('1' => array('alt' => 'Right', 'img' => $sd_assets_url . 'img/2cr.png'), '2' => array('alt' => 'Left', 'img' => $sd_assets_url . 'img/2cl.png')), 'default' => '1'), array('id' => 'sd_pagination_type', 'type' => 'image_select', 'title' => __('Pagination Type', 'sd-framework'), 'subtitle' => __('Select the type of pagination.', 'sd-framework'), 'desc' => __('Pagination appears on blog, course, event pages and also on their archive pages.', 'sd-framework'), 'options' => array('1' => array('alt' => 'Default WordPress Pagination', 'img' => $sd_assets_url . 'img/sd-pagination-default.png'), '2' => array('alt' => 'Page Numbers', 'img' => $sd_assets_url . 'img/sd-pagination-numbers.png')), 'default' => '2'), array('id' => 'sd_blog_next', 'type' => 'text', 'title' => __('Next Posts', 'sd-framework'), 'subtitle' => __('Next posts button text.', 'sd-framework'), 'default' => 'Next Posts', 'required' => array('sd_pagination_type', "=", 1)), array('id' => 'sd_blog_prev', 'type' => 'text', 'title' => __('Previous Posts', 'sd-framework'), 'subtitle' => __('Previous posts button text.', 'sd-framework'), 'default' => 'Previous Posts', 'required' => array('sd_pagination_type', "=", 1)), array('id' => 'sd_courses_next', 'type' => 'text', 'title' => __('Next Courses', 'sd-framework'), 'subtitle' => __('Next courses button text.', 'sd-framework'), 'default' => 'Next Courses', 'required' => array('sd_pagination_type', "=", 1)), array('id' => 'sd_courses_prev', 'type' => 'text', 'title' => __('Previous Courses', 'sd-framework'), 'subtitle' => __('Previous courses button text.', 'sd-framework'), 'default' => 'Previous Courses', 'required' => array('sd_pagination_type', "=", 1)), array('id' => 'sd_events_next', 'type' => 'text', 'title' => __('Next Events', 'sd-framework'), 'subtitle' => __('Next events button text.', 'sd-framework'), 'default' => 'Next Events', 'required' => array('sd_pagination_type', "=", 1)), array('id' => 'sd_events_prev', 'type' => 'text', 'title' => __('Previous Events', 'sd-framework'), 'subtitle' => __('Previous events button text.', 'sd-framework'), 'default' => 'Previous Events', 'required' => array('sd_pagination_type', "=", 1))));
            $this->sections[] = array('title' => __('Homepage', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-home', 'fields' => array(array('id' => 'sd_home_slider', 'type' => 'switch', 'title' => __('Homepage Slider', 'sd-framework'), 'subtitle' => __('Enable or disable the homepage slider.', 'sd-framework'), 'desc' => __('Make sure that the slider\'s alias is "homeslider".', 'sd-framework'), 'default' => false, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework'))));
            $this->sections[] = array('title' => __('Header', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-minus', 'fields' => array(array('id' => 'sd_header_height', 'type' => 'dimensions', 'title' => __('Header Height', 'sd-framework'), 'subtitle' => __('Adjust the height of the header.', 'sd-framework'), 'desc' => __('Default: 135px', 'sd-framework'), 'units' => array('px'), 'compiler' => array('#sd-header'), 'width' => false), array('id' => 'sd_sticky_header', 'type' => 'switch', 'title' => __('Sticky Header', 'sd-framework'), 'subtitle' => __('Enable or disable the stycky header. Menu and logo will be sticky when user scrolls down.', 'sd-framework'), 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework'), 'default' => false), array('id' => 'sd_top_bar', 'type' => 'switch', 'title' => __('Top Bar', 'sd-framework'), 'subtitle' => __('Enable or disable the top header bar.', 'sd-framework'), 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework'), 'default' => true), array('id' => 'sd_top_bar_left', 'type' => 'switch', 'title' => __('Top Bar Left Fields', 'sd-framework'), 'subtitle' => __('Enable or disable the top bar left fields.', 'sd-framework'), 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework'), 'required' => array('sd_top_bar', "=", 1), 'default' => true), array('id' => 'sd_top_bar_first_field_icon', 'type' => 'select', 'select2' => array('containerCssClass' => 'fa'), 'title' => __('Top Bar First Field Icon', 'sd-framework'), 'subtitle' => __('Select an icon for the top bar first field.', 'sd-framework'), 'desc' => __('Select none to hide the icon.', 'sd-framework'), 'class' => ' font-icons fa', 'default' => 'fa fa-phone', 'options' => sd_font_awesome_icons(), 'required' => array('sd_top_bar_left', "=", 1)), array('id' => 'sd_top_bar_first_field', 'type' => 'text', 'title' => __('Top Bar First Field', 'sd-framework'), 'subtitle' => __('Insert a short content for the top bar first field.', 'sd-framework'), 'desc' => __(' Leave blank if you don\'t want to display it.', 'sd-framework'), 'default' => 'Call us: 1-800-123-4567', 'required' => array('sd_top_bar_left', "=", 1)), array('id' => 'sd_top_bar_second_field_icon', 'type' => 'select', 'select2' => array('containerCssClass' => 'fa'), 'title' => __('Top Bar Second Field Icon', 'sd-framework'), 'subtitle' => __('Select an icon for the top bar second field.', 'sd-framework'), 'desc' => __('Select none to hide the icon.', 'sd-framework'), 'class' => ' font-icons fa', 'default' => 'fa fa-envelope-o', 'options' => sd_font_awesome_icons(), 'required' => array('sd_top_bar_left', "=", 1)), array('id' => 'sd_top_bar_second_field', 'type' => 'text', 'title' => __('Top Bar Second Field', 'sd-framework'), 'subtitle' => __('Insert a short content for the top bar second field.', 'sd-framework'), 'desc' => __(' Leave blank if you don\'t want to display it.', 'sd-framework'), 'default' => '*****@*****.**', 'required' => array('sd_top_bar_left', "=", 1)), array('id' => 'sd_top_news', 'type' => 'text', 'title' => __('Top Header Short News', 'sd-framework'), 'subtitle' => __('Insert a short desc of your news.', 'sd-framework'), 'desc' => __(' Leave blank if you don\'t want to display it.', 'sd-framework'), 'default' => 'Admission open for 2014 batch', 'required' => array('sd_top_bar_left', "=", 1)), array('id' => 'sd_top_news_word', 'type' => 'text', 'title' => __('Rename the "News" word', 'sd-framework'), 'subtitle' => __('Insert a custom word instead of "News".', 'sd-framework'), 'default' => 'News', 'required' => array('sd_top_bar_left', "=", 1))));
            $this->sections[] = array('icon' => 'el-icon-podcast', 'title' => __('Social Icons', 'sd-framework'), 'subsection' => true, 'fields' => array(array('id' => 'sd_social_icons', 'type' => 'switch', 'title' => __('Header Social Icons', 'sd-framework'), 'subtitle' => __('Enable or disable the header social icons.', 'sd-framework'), 'default' => 1, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_social_icons_data', 'type' => 'sortable', 'title' => __('Header Social Icons', 'sd-framework'), 'subtitle' => __('Define and reorder the social icons however you want.', 'sd-framework'), 'desc' => __('Leave any field blank if you don\'t want to display it .', 'sd-framework'), 'label' => true, 'options' => array('facebook' => 'https://facebook.com/skatdesign', 'twitter' => 'http://twitter.com/skatdesign', 'linkedin' => 'https://www.linkedin.com/in/skatdesign', 'google-plus' => 'http://google.com/+skatdesign', 'youtube-play' => 'http://youtube.com/zabestof', 'vimeo-square' => '', 'pinterest' => 'http://www.pinterest.com/skatdesign/', 'instagram' => '', 'flickr' => '', 'rss' => $sd_default_feed), 'default' => array('facebook' => 'https://facebook.com/skatdesign', 'twitter' => 'http://twitter.com/skatdesign', 'linkedin' => 'https://www.linkedin.com/in/skatdesign', 'google-plus' => 'http://google.com/+skatdesign', 'youtube-play' => 'http://youtube.com/zabestof', 'vimeo-square' => '', 'pinterest' => 'http://www.pinterest.com/skatdesign/', 'instagram' => '', 'flickr' => '', 'rss' => $sd_default_feed), 'required' => array('sd_social_icons', "=", 1))));
            $this->sections[] = array('icon' => 'el-icon-star-alt', 'title' => __('Logo', 'sd-framework'), 'subsection' => true, 'fields' => array(array('id' => 'sd_logo_upload', 'type' => 'media', 'url' => false, 'title' => __('Custom Logo', 'sd-framework'), 'desc' => __('Upload your custom logo image.', 'sd-framework'), 'subtitle' => '', 'default' => array('url' => get_template_directory_uri() . '/framework/images/my-university-logo.png')), array('id' => 'sd_logo_margin_top', 'type' => 'spacing', 'title' => __('Logo Top Margin', 'sd-framework'), 'subtitle' => __('Adjust the top margin of the logo.', 'sd-framework'), 'desc' => __('Default: 22px', 'sd-framework'), 'compiler' => array('.sd-logo'), 'top' => true, 'right' => false, 'bottom' => false, 'left' => false, 'mode' => 'margin', 'units' => array('px'))));
            $this->sections[] = array('title' => __('Courses', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-book', 'fields' => array(array('id' => 'sd_courses_page_slug', 'type' => 'text', 'title' => __('Courses Slug', 'sd-framework'), 'subtitle' => __('Rename the slug of the courses.', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'courses-page'), array('id' => 'sd_courses_layout', 'type' => 'select', 'title' => __('Courses Layout', 'sd-framework'), 'subtitle' => __('Select the layout for the courses pages.', 'sd-framework'), 'desc' => __('This includes courses page, single courses posts and courses archive pages.', 'sd-framework'), 'options' => array('1' => 'With Sidebar', '2' => 'Full Width'), 'default' => '1'), array('id' => 'sd_courses_featured_img', 'type' => 'switch', 'title' => __('Featured Image', 'sd-framework'), 'subtitle' => __('Enable or disable the featured image for courses posts.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_courses_post_meta_enable', 'type' => 'switch', 'title' => __('Courses Post Meta', 'sd-framework'), 'subtitle' => __('Enable or disable the courses post meta.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_courses_post_meta', 'type' => 'checkbox', 'title' => __('Courses Post Meta Options', 'sd-framework'), 'subtitle' => __('Select what info do you want to display for the course meta.', 'sd-framework'), 'desc' => __('This info appears right under the featured image.', 'sd-framework'), 'options' => array('1' => __('ID', 'sd-framework'), '2' => __('Discipline', 'sd-framework'), '3' => __('Study level', 'sd-framework'), '4' => __('Course length', 'sd-framework'), '5' => __('Course location', 'sd-framework'), '6' => __('Professor', 'sd-framework')), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1', '6' => '1'), 'required' => array('sd_courses_post_meta_enable', "=", 1)), array('id' => 'sd_courses_comments', 'type' => 'switch', 'title' => __('Courses Comments', 'sd-framework'), 'subtitle' => __('Enable or disable the comments on the courses posts.', 'sd-framework'), 'desc' => __('While enabled this option can be overrided by the option in the WordPress editor.', 'sd-framework'), 'default' => false, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_courses_single_prev_next', 'type' => 'switch', 'title' => __('Next/Previous Course Links', 'sd-framework'), 'subtitle' => __('Enable or disable the next/previous links at the bottom of the course single post.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_courses_single_next', 'type' => 'text', 'title' => __('Next Course', 'sd-framework'), 'subtitle' => __('Next course button text.', 'sd-framework'), 'default' => 'Next Course', 'required' => array('sd_courses_single_prev_next', "=", 1)), array('id' => 'sd_courses_single_prev', 'type' => 'text', 'title' => __('Previous Course', 'sd-framework'), 'subtitle' => __('Previous course button text.', 'sd-framework'), 'default' => 'Previous Course', 'required' => array('sd_courses_single_prev_next', "=", 1))));
            $this->sections[] = array('icon' => 'el-icon-search', 'title' => __('Search Courses', 'sd-framework'), 'subsection' => true, 'fields' => array(array('id' => 'sd_search_courses', 'type' => 'switch', 'title' => __('Search Courses', 'sd-framework'), 'subtitle' => __('Enable or disable the search courses box.', 'sd-framework'), 'default' => false, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_search_courses_results', 'type' => 'select', 'data' => 'pages', 'title' => __('Course Search Results Page', 'redux-framework-demo'), 'subtitle' => __('Select your course search resulsts page.', 'sd-framework'), 'desc' => __('Make sure that the selected page has the "Search Course Results" page template assigned.', 'sd-framwork')), array('id' => 'sd_search_fields_rename_info', 'type' => 'info', 'desc' => __('<strong>Search Fields Renaming</strong>', 'sd-framework'), 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_discipline_name', 'type' => 'text', 'title' => $sd_all_data['sd_discipline_name'], 'subtitle' => __('Rename the field named "' . $sd_all_data['sd_discipline_name'] . '".', 'sd-framework'), 'desc' => __('Make sure you hit "Save Changes" right after you modify this field.', 'sd-framework'), 'default' => 'Discipline', 'hint' => array('content' => __('Note: The default name for this field is <strong>Discipline</strong>. This field is also a category for the professors section. Handle with care!', 'sd-framework')), 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_course_length_name', 'type' => 'text', 'title' => $sd_all_data['sd_course_length_name'], 'subtitle' => __('Rename the field named "' . $sd_all_data['sd_course_length_name'] . '".', 'sd-framework'), 'desc' => __('Make sure you hit "Save Changes" right after you modify this field.', 'sd-framework'), 'default' => 'Course Length', 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_study_level_name', 'type' => 'text', 'title' => $sd_all_data['sd_study_level_name'], 'subtitle' => __('Rename the field named "' . $sd_all_data['sd_study_level_name'] . '".', 'sd-framework'), 'desc' => __('Make sure you hit "Save Changes" right after you modify this field.', 'sd-framework'), 'default' => 'Study Level', 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_campus_location_name', 'type' => 'text', 'title' => $sd_all_data['sd_campus_location_name'], 'subtitle' => __('Rename the field named "' . $sd_all_data['sd_campus_location_name'] . '".', 'sd-framework'), 'desc' => __('Make sure you hit "Save Changes" right after you modify this field.', 'sd-framework'), 'default' => 'Campus Location', 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_search_fields_display_info', 'type' => 'info', 'desc' => __('<strong>Fields to Display</strong>', 'sd-framework'), 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_search_fields', 'type' => 'checkbox', 'title' => __('Search Fields', 'sd-framework'), 'subtitle' => __('Select which fields to display in the search box.', 'sd-framework'), 'options' => array('1' => $sd_all_data['sd_discipline_name'], '2' => $sd_all_data['sd_course_length_name'], '3' => $sd_all_data['sd_study_level_name'], '4' => $sd_all_data['sd_campus_location_name'], '5' => 'Keywords'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1'), 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_search_fields_slugs_info', 'type' => 'info', 'desc' => __('<strong>Courses Categories Slugs</strong>', 'sd-framework'), 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_discipline_slug', 'type' => 'text', 'title' => $sd_all_data['sd_discipline_name'], 'subtitle' => __('Change the slug of "' . $sd_all_data['sd_discipline_name'] . '".', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'course-discipline', 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_course_length_slug', 'type' => 'text', 'title' => $sd_all_data['sd_course_length_name'], 'subtitle' => __('Change the slug of "' . $sd_all_data['sd_course_length_name'] . '".', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'course-length', 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_study_level_slug', 'type' => 'text', 'title' => $sd_all_data['sd_study_level_name'], 'subtitle' => __('Change the slug of "' . $sd_all_data['sd_study_level_name'] . '".', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'study-level', 'required' => array('sd_search_courses', "=", 1)), array('id' => 'sd_campus_location_slug', 'type' => 'text', 'title' => $sd_all_data['sd_campus_location_name'], 'subtitle' => __('Change the slug of "' . $sd_all_data['sd_campus_location_name'] . '".', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'course-location', 'required' => array('sd_search_courses', "=", 1))));
            $this->sections[] = array('title' => __('Events', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-bullhorn', 'fields' => array(array('id' => 'sd_events_page_slug', 'type' => 'text', 'title' => __('Events Slug', 'sd-framework'), 'subtitle' => __('Rename the slug of the events.', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'events-page'), array('id' => 'sd_events_layout', 'type' => 'select', 'subtitle' => __('Select the layout for the events pages.', 'sd-framework'), 'desc' => __('This includes events page, single events posts and events archive pages.', 'sd-framework'), 'options' => array('1' => 'With Sidebar', '2' => 'Full Width'), 'default' => '1'), array('id' => 'sd_events_featured_img', 'type' => 'switch', 'title' => __('Featured Image', 'sd-framework'), 'subtitle' => __('Enable or disable the featured image for events posts.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_events_post_meta_enable', 'type' => 'switch', 'title' => __('Events Post Meta', 'sd-framework'), 'subtitle' => __('Enable or disable the events post meta.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_events_post_meta', 'type' => 'checkbox', 'title' => __('Events Post Meta Options', 'sd-framework'), 'subtitle' => __('Select what info do you want to display for the events meta.', 'sd-framework'), 'desc' => __('This info appears right under the featured image.', 'sd-framework'), 'options' => array('1' => 'Event hours', '2' => 'Event location'), 'default' => array('1' => '1', '2' => '1'), 'required' => array('sd_events_post_meta_enable', "=", 1)), array('id' => 'sd_events_comments', 'type' => 'switch', 'title' => __('Event Comments', 'sd-framework'), 'subtitle' => __('Enable or disable the comments on the events posts.', 'sd-framework'), 'desc' => __('While enabled this option can be overrided by the option in the WordPress editor.', 'sd-framework'), 'default' => false, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_events_single_prev_next', 'type' => 'switch', 'title' => __('Next/Previous Event Links', 'sd-framework'), 'subtitle' => __('Enable or disable the next/previous links at the bottom of the event single post.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_events_single_next', 'type' => 'text', 'title' => __('Next Event', 'sd-framework'), 'subtitle' => __('Next event button text.', 'sd-framework'), 'default' => 'Next Event', 'required' => array('sd_events_single_prev_next', "=", 1)), array('id' => 'sd_events_single_prev', 'type' => 'text', 'title' => __('Previous Event', 'sd-framework'), 'subtitle' => __('Previous event button text.', 'sd-framework'), 'default' => 'Previous Event', 'required' => array('sd_events_single_prev_next', "=", 1))));
            $this->sections[] = array('title' => __('Professors', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-user', 'fields' => array(array('id' => 'sd_professors_page_slug', 'type' => 'text', 'title' => __('Professors Slug', 'sd-framework'), 'subtitle' => __('Rename the slug of the professors.', 'sd-framework'), 'desc' => __('After making changes to this field make sure you go to Settings > Permalinks and hit "Save Changes" to prevent any 404 errors.', 'sd-framework'), 'default' => 'professors-page')));
            $this->sections[] = array('title' => __('Blog', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-pencil', 'fields' => array(array('id' => 'sd_blog_layout', 'type' => 'select', 'title' => __('Blog Layout', 'sd-framework'), 'subtitle' => __('Select the layout for the blog pages.', 'sd-framework'), 'desc' => __('This includes blog page, single posts, archive pages, category pages, tags and search results pages.', 'sd-framework'), 'options' => array('1' => 'With Sidebar', '2' => 'Full Width'), 'default' => '1'), array('id' => 'sd_blog_featured_img', 'type' => 'switch', 'title' => __('Featured Image', 'sd-framework'), 'subtitle' => __('Enable or disable the featured image for blog posts.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_blog_post_meta_enable', 'type' => 'switch', 'title' => __('Blog Post Meta', 'sd-framework'), 'subtitle' => __('Enable or disable the blog post meta.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_blog_post_meta', 'type' => 'checkbox', 'title' => __('Blog Post Meta Options', 'sd-framework'), 'subtitle' => __('Select what info do you want to display for the blog meta.', 'sd-framework'), 'desc' => __('This info appears right under the post title.', 'sd-framework'), 'options' => array('1' => 'Post date', '2' => 'Post author', '3' => 'Categories', '4' => 'Tags', '5' => 'Number of comments'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1'), 'required' => array('sd_blog_post_meta_enable', "=", 1)), array('id' => 'sd_blog_comments', 'type' => 'switch', 'title' => __('Blog Comments', 'sd-framework'), 'subtitle' => __('Enable or disable the comments on the blog posts.', 'sd-framework'), 'desc' => __('While enabled this option can be overrided by the option in the WordPress editor.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_blog_single_prev_next', 'type' => 'switch', 'title' => __('Next/Previous Post Links', 'sd-framework'), 'subtitle' => __('Enable or disable the next/previous links at the bottom of the single post.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_blog_single_next', 'type' => 'text', 'title' => __('Next Post', 'sd-framework'), 'subtitle' => __('Next post button text.', 'sd-framework'), 'default' => 'Next Post', 'required' => array('sd_blog_single_prev_next', "=", 1)), array('id' => 'sd_blog_single_prev', 'type' => 'text', 'title' => __('Previous Post', 'sd-framework'), 'subtitle' => __('Previous post button text.', 'sd-framework'), 'default' => 'Previous Post', 'required' => array('sd_blog_single_prev_next', "=", 1))));
            $this->sections[] = array('title' => __('Footer', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-download-alt', 'fields' => array(array('id' => 'sd_widgetized_footer', 'type' => 'switch', 'title' => __('Widgetized Footer', 'sd-framework'), 'subtitle' => __('Enable or disable the footer widgets section.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_copyright', 'type' => 'switch', 'title' => __('Copyright Box', 'sd-framework'), 'subtitle' => __('Enable or disable the footer copyright section.', 'sd-framework'), 'default' => true, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_copyright_text', 'type' => 'editor', 'title' => __('Custom Copyright Text', 'sd-framework'), 'subtitle' => __('Insert your custom copyright text.', 'sd-framework'), 'args' => array('media_buttons' => false), 'required' => array('sd_copyright', "=", 1))));
            $this->sections[] = array('icon' => 'el-icon-envelope', 'title' => __('Newsletter', 'sd-framework'), 'subsection' => true, 'fields' => array(array('id' => 'sd_newsletter_display', 'type' => 'button_set', 'title' => __('Display Newsletter Box', 'sd_framework'), 'subtitle' => __('Slelect how to display the footer newsletter box', 'sd-framework'), 'options' => array('1' => __('Disabled', 'sd-framework'), '2' => __('Homepage', 'sd-framework'), '3' => __('Sitewide', 'sd-framework')), 'default' => '3'), array('id' => 'sd_newsletter_word', 'type' => 'text', 'title' => __('Rename the "Newsletter" word', 'sd-framework'), 'subtitle' => __('Insert a custom word instead of "Newsletter".', 'sd-framework'), 'default' => 'Newsletter', 'required' => array('sd_newsletter_display', "=", array('2', '3'))), array('id' => 'sd_subscribe_word', 'type' => 'text', 'title' => __('Rename the "Subscribe" word', 'sd-framework'), 'subtitle' => __('Insert a custom word instead of "Subscribe".', 'sd-framework'), 'default' => 'Subscribe', 'required' => array('sd_newsletter_display', "=", array('2', '3'))), array('id' => 'sd_newsletter_code', 'type' => 'ace_editor', 'title' => __('Newsletter Form Code', 'sd-framework'), 'subtitle' => __('Insert the code of your newsletter form.', 'sd-framework'), 'desc' => __('(MailChimp code naked)', 'sd-framework'), 'mode' => 'html', 'theme' => 'chrome', 'options' => array('minLines' => 30), 'default' => '<!-- Begin MailChimp Signup Form -->

<div id="mc_embed_signup">
	<form action="//skat.us7.list-manage.com/subscribe/post?u=5ef55abee027ce066bca8313c&amp;id=46cd16464a" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
		<div class="mc-field-group">
			<label for="mce-EMAIL">Email Address </label>
			<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
		</div>
		<div id="mce-responses" class="clear">
			<div class="response" id="mce-error-response" style="display:none"></div>
			<div class="response" id="mce-success-response" style="display:none"></div>
		</div>
		<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
		<div style="position: absolute; left: -5000px;">
			<input type="text" name="b_5ef55abee027ce066bca8313c_46cd16464a" tabindex="-1" value="">
		</div>
		<div class="clear">
			<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
		</div>
	</form>
</div>
<!--End mc_embed_signup-->', 'required' => array('sd_newsletter_display', "=", array('2', '3')))));
            $this->sections[] = array('icon' => 'el-icon-twitter', 'title' => __('Twitter Box', 'sd-framework'), 'subsection' => true, 'fields' => array(array('id' => 'sd_twitter_box', 'type' => 'switch', 'title' => __('Twitter Box', 'sd-framework'), 'subtitle' => __('Enable or disable the footer Twitter box.', 'sd-framework'), 'default' => false, 'on' => __('Enabled', 'sd-framework'), 'off' => __('Disabled', 'sd-framework')), array('id' => 'sd_twitter_app_info', 'type' => 'info', 'notice' => true, 'icon' => 'el-icon-info-sign', 'style' => 'info', 'title' => '<a href="http://dev.twitter.com/apps" target="_blank">' . __('Learn more about creating a Twitter APP', 'sd-framweork') . '</a>', 'required' => array('sd_twitter_box', "=", 1)), array('id' => 'sd_twitter_username', 'type' => 'text', 'title' => __('Twitter Username', 'sd-framework'), 'subtitle' => __('Insert your Twitter username.', 'sd-framework'), 'required' => array('sd_twitter_box', "=", 1)), array('id' => 'sd_consumer_key', 'type' => 'text', 'title' => __('Consumer Key', 'sd-framework'), 'subtitle' => __('Insert your Twitter app. consumer key.', 'sd-framework'), 'required' => array('sd_twitter_box', "=", 1)), array('id' => 'sd_consumer_secret', 'type' => 'text', 'title' => __('Consumer Secret', 'sd-framework'), 'subtitle' => __('Insert your Twitter app. consumer secret.', 'sd-framework'), 'required' => array('sd_twitter_box', "=", 1)), array('id' => 'sd_access_token', 'type' => 'text', 'title' => __('Access Token', 'sd-framework'), 'subtitle' => __('Insert your Twitter app. access token.', 'sd-framework'), 'required' => array('sd_twitter_box', "=", 1)), array('id' => 'sd_access_token_secret', 'type' => 'text', 'title' => __('Access Token Secret', 'sd-framework'), 'subtitle' => __('Insert your Twitter app. access token secret.', 'sd-framework'), 'required' => array('sd_twitter_box', "=", 1))));
            $this->sections[] = array('title' => __('Typography', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-font', 'fields' => array(array('id' => 'sd_body_typography', 'type' => 'typography', 'title' => __('Body', 'sd-framework'), 'subtitle' => __('Specify the body font properties.', 'sd-framework'), 'google' => true, 'font-backup' => true, 'font-style' => false, 'font-weight' => false, 'text-align' => false, 'text-align' => false, 'compiler' => array('body')), array('id' => 'sd_headings', 'type' => 'typography', 'title' => __('Headings', 'sd-framework'), 'subtitle' => __('Specify the headings font properties.', 'sd-framework'), 'desc' => __('(h1, h2, h3, h4, h5, h6 headings)', 'sd-framework'), 'google' => true, 'font-backup' => true, 'font-style' => false, 'text-align' => false, 'font-size' => false, 'line-height' => false, 'font-weight' => true, 'compiler' => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6')), array('id' => 'sd_menu_typography', 'type' => 'typography', 'title' => __('Menu', 'sd-framework'), 'subtitle' => __('Specify the menu font properties.', 'sd-framework'), 'google' => true, 'font-backup' => true, 'font-style' => false, 'text-align' => false, 'line-height' => false, 'font-weight' => false, 'color' => false, 'compiler' => array('.sf-menu a')), array('id' => 'sd_page_title_typography', 'type' => 'typography', 'title' => __('Page Titles', 'sd-framework'), 'subtitle' => __('Specify the page titles font properties.', 'sd-framework'), 'google' => true, 'font-backup' => true, 'font-style' => false, 'text-align' => false, 'font-weight' => true, 'compiler' => array('.sd-page-top h2'))));
            $this->sections[] = array('title' => __('Styling', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-brush', 'fields' => array(array('id' => 'sd_theme_overall', 'type' => 'color', 'title' => __('Theme\'s Main Color', 'sd-framework'), 'subtitle' => __('Select the main color of the theme.', 'sd-framework'), 'desc' => __('Default is #0191c6', 'sd-framework'), 'transparent' => false, 'compiler' => array('color' => 'a:hover, .sd-colored, .sd-latest-blog-short .more-link, .sd-list-style li:before, .sd-events-shortcode .sd-event-date, .sd-events-page .sd-event-date, .sd-learn-more, .sd-subscribe-text, .sd-icon-tabs .sd-tab-titles .ui-tabs-selected a, .sd-icon-tabs .sd-tab-titles .ui-tabs-active a, .sd-tab-titles .ui-tabs-selected a, .sd-tab-titles .ui-tabs-active a, .sd-entry-meta i, .sd-current-page, .wpcf7-submit, .sd-professor-discipline, .wpb_accordion_section .ui-accordion-header-active a, .ui-accordion-header-active span:before, .sd-testimonials h4, .sd-responsive-menu-close i, #sd-submit-comments:hover, .sd-entry-meta a:hover, body .wpb_toggle_title_active:before', 'border-color' => '.sd-icon-tabs .sd-tab-titles .ui-tabs-selected a,.sd-icon-tabs .sd-tab-titles .ui-tabs-active a, .sd-icon-tabs .sd-tab-titles .ui-tabs-selected a .sd-icon-span, .sd-icon-tabs .sd-tab-titles .ui-tabs-active a .sd-icon-span, .more-link, .sd-learn-more, .sd-footer-sidebar-widget .wpcf7-submit, .sd-current-page, .sd-inactive, .sd-next-page, .sd-previous-page, .sd-last-page, .sd-first-page, .sd-nav-previous a, .sd-nav-next a, .wpcf7-submit, .sd-read-more, blockquote, .sd-prev-post a, .sd-next-post a, #sd-submit-comments, .wpb_toggle', 'background-color' => '.sd-entry-gallery .flexslider:hover .flex-next, .sd-entry-gallery .flexslider:hover .flex-prev, .sidr ul li:hover > a, .sidr ul li:hover > span, .sidr ul li.active > a, .sidr ul li.active > span, .sidr ul li.sidr-class-active > a, .sidr ul li.sidr-class-active > span')), array('id' => 'sd_link_color', 'type' => 'color', 'title' => __('Theme\'s Links Color', 'sd-framework'), 'subtitle' => __('Select the main color of the links.', 'sd-framework'), 'desc' => __('Default is #2f3c40', 'sd-framework'), 'transparent' => false, 'compiler' => array('color' => 'a')), array('id' => 'sd_header_styling_info', 'type' => 'info', 'desc' => __('Header Styling', 'sd-framework')), array('id' => 'sd_header_bg', 'type' => 'color', 'title' => __('Header Background', 'sd-framework'), 'subtitle' => __('Select the header background color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '#sd-header')), array('id' => 'sd_top_bar_bg', 'type' => 'color', 'title' => __('Top Bar Background', 'sd-framework'), 'subtitle' => __('Select the header top bar background color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-header-top')), array('id' => 'sd_top_bar_border', 'type' => 'color', 'title' => __('Top Bar Border', 'sd-framework'), 'subtitle' => __('Select the header top bar border color.', 'sd-framework'), 'desc' => __('Default is #e4e4e4', 'sd-framework'), 'transparent' => false, 'compiler' => array('border-color' => '.sd-header-top, .sd-header-left-options li, .sd-header-social a, .sd-header-social')), array('id' => 'sd_top_bar_text', 'type' => 'color', 'title' => __('Top Bar Text', 'sd-framework'), 'subtitle' => __('Select the header top bar text color.', 'sd-framework'), 'desc' => __('Default is #666565', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-header-left-options li, .sd-header-left-options li, .sd-header-social a')), array('id' => 'sd_top_bar_news_text_bg', 'type' => 'color', 'title' => __('Top Bar "News" Word Background', 'sd-framework'), 'subtitle' => __('Select the header top bar "News" word background color.', 'sd-framework'), 'desc' => __('Default is #f96868', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-news-span')), array('id' => 'sd_top_bar_news_content_bg', 'type' => 'color', 'title' => __('Top Bar News Content Background', 'sd-framework'), 'subtitle' => __('Select the header top bar news content background color.', 'sd-framework'), 'desc' => __('Default is #e9e9e9', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-news-content-span')), array('id' => 'sd_menu_styling_info', 'type' => 'info', 'desc' => __('Menu Styling', 'sd-framework')), array('id' => 'sd_menu_margin_top', 'type' => 'spacing', 'title' => __('Menu Top Margin', 'sd-framework'), 'subtitle' => __('Adjust the top margin of the menu.', 'sd-framework'), 'desc' => __('Default is 28px', 'sd-framework'), 'top' => true, 'right' => false, 'bottom' => false, 'left' => false, 'units' => array('px'), 'display_units' => true, 'mode' => 'margin', 'compiler' => array('.sd-menu-wrapper')), array('id' => 'sd_menu_link', 'type' => 'color', 'title' => __('Menu Links', 'sd-framework'), 'subtitle' => __('Select the menu color.', 'sd-framework'), 'desc' => __('Default is #62524c', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sf-menu a')), array('id' => 'sd_menu_link_hover', 'type' => 'color', 'title' => __('Menu Links Hover', 'sd-framework'), 'subtitle' => __('Select the hovering menu links color.', 'sd-framework'), 'desc' => __('Default is #fff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sf-menu li a:hover, .current-menu-item a, .sf-menu li.sfHover a')), array('id' => 'sd_menu_bg', 'type' => 'color', 'title' => __('Menu Background', 'sd-framework'), 'subtitle' => __('Select the menu background color.', 'sd-framework'), 'desc' => __('Default is #2a2e30', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.current-menu-item a, .sf-menu li a:hover, .sf-menu li.sfHover > a, #sd-main-menu .current-menu-item > a')), array('id' => 'sd_menu_dropdown_link', 'type' => 'color', 'title' => __('Dropdown Menu Links', 'sd-framework'), 'subtitle' => __('Select the dropdown menu link color.', 'sd-framework'), 'desc' => __('Default is #e3edf1', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sf-menu li li a, .sd-megamenu li a')), array('id' => 'sd_menu_dropdown_bg', 'type' => 'color', 'title' => __('Dropdown Menu Background', 'sd-framework'), 'subtitle' => __('Select the dropdown menu background color.', 'sd-framework'), 'desc' => __('Default is #2a2e30', 'sd-framework'), 'default' => '', 'transparent' => false, 'compiler' => array('background-color' => '.sf-menu li ul, sf-menu li li ul, .sf-menu li li ul, .sd-megamenu li a')), array('id' => 'sd_menu_dropdown_hover_bg', 'type' => 'color', 'title' => __('Dropdown Menu Hover Background', 'sd-framework'), 'subtitle' => __('Select the dropdown menu hover background color.', 'sd-framework'), 'desc' => __('Default is #0191c6', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sf-menu li li a:hover, .sf-menu li li.sfHover > a, .sf-menu li li.sfHover li a:hover, #sd-main-menu .sd-megamenu .sfHover a:hover')), array('id' => 'sd_search_box_styling_info', 'type' => 'info', 'desc' => __('Courses Search Box Styling', 'sd-framework')), array('id' => 'sd_course_search_bg', 'type' => 'color', 'title' => __('Course Search Background', 'sd-framework'), 'subtitle' => __('Select the course search box background color.', 'sd-framework'), 'desc' => __('Default is #0191c6', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-search-courses')), array('id' => 'sd_course_search_title', 'type' => 'color', 'title' => __('Search Boxt Title', 'sd-framework'), 'subtitle' => __('Select the course search box title color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-search-courses h2')), array('id' => 'sd_course_search_button', 'type' => 'color', 'title' => __('Search Box Button', 'sd-framework'), 'subtitle' => __('Select the course search box button color.', 'sd-framework'), 'desc' => __('Default is #2a2e30', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.wpas-submit input')), array('id' => 'sd_course_search_button_text', 'type' => 'color', 'title' => __('Search Box Button Text', 'sd-framework'), 'subtitle' => __('Select the course search box button text color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'default' => '', 'transparent' => false, 'compiler' => array('.wpas-submit input')), array('id' => 'sd_newsletter_styling_info', 'type' => 'info', 'desc' => __('Newsletter Box Styling', 'sd-framework')), array('id' => 'sd_newsletter_bg', 'type' => 'color', 'title' => __('Newsletter Background', 'sd-framework'), 'subtitle' => __('Select the newsletter box background color.', 'sd-framework'), 'desc' => __('Default is #f6f8f8', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-newsletter-wrapper')), array('id' => 'sd_newsletter_small_text', 'type' => 'color', 'title' => __('Newsletter Small Text', 'sd-framework'), 'subtitle' => __('Select the newsletter small text color.', 'sd-framework'), 'desc' => __('Default is #0191c6', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-subscribe-text')), array('id' => 'sd_newsletter_large_text', 'type' => 'color', 'title' => __('Newsletter Large Text', 'sd-framework'), 'subtitle' => __('Select the newsletter large text color.', 'sd-framework'), 'desc' => __('Default is #13232c', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-newsletter-text'), 'mode' => 'color'), array('id' => 'sd_newsletter_button', 'type' => 'color', 'title' => __('Newsletter Button', 'sd-framework'), 'subtitle' => __('Select the newsletter button color.', 'sd-framework'), 'desc' => __('Default is #0191c6', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-newsletter-wrapper input[type="submit"]')), array('id' => 'sd_newsletter_button_border', 'type' => 'color', 'title' => __('Newsletter Button Border', 'sd-framework'), 'subtitle' => __('Select the newsletter button border color.', 'sd-framework'), 'desc' => __('Default is #02688d', 'sd-framework'), 'transparent' => false, 'compiler' => array('border-color' => '.sd-newsletter-wrapper input[type="submit"]')), array('id' => 'sd_newsletter_button_text', 'type' => 'color', 'title' => __('Newsletter Button Text', 'sd-framework'), 'subtitle' => __('Select the newsletter button text color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-newsletter-wrapper input[type="submit"]')), array('id' => 'sd_twitter_box_styling_info', 'type' => 'info', 'desc' => __('Twitter Box Styling', 'sd-framework')), array('id' => 'sd_twitter_box_bg', 'type' => 'color', 'title' => __('Twitter Box Background', 'sd-framework'), 'subtitle' => __('Select the Twitter box background color.', 'sd-framework'), 'desc' => __('Default is #59d5fe', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-twitter-feed')), array('id' => 'sd_twitter_box_icon', 'type' => 'color', 'title' => __('Twitter Box Icon', 'sd-framework'), 'subtitle' => __('Select the Twitter box icon color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-twitter-feed i')), array('id' => 'sd_twitter_box_text', 'type' => 'color', 'title' => __('Twitter Box Text', 'sd-framework'), 'subtitle' => __('Select the Twitter box text color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-latest-tweets-slider')), array('id' => 'sd_twitter_box_link', 'type' => 'link_color', 'title' => __('Twitter Box Links', 'sd-framework'), 'subtitle' => __('Select the Twitter box link colors.', 'sd-framework'), 'desc' => __('Default is #2c1d13 and #2c1d13', 'sd-framework'), 'regular' => true, 'hover' => true, 'active' => false, 'visited' => false, 'compiler' => array('.sd-latest-tweets-slider a')), array('id' => 'sd_footer_styling_info', 'type' => 'info', 'desc' => __('Footer Styling', 'sd-framework')), array('id' => 'sd_footer_bg', 'type' => 'color', 'title' => __('Footer Background', 'sd-framework'), 'subtitle' => __('Select the footer background color.', 'sd-framework'), 'desc' => __('Default is #13232c', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '#sd-footer')), array('id' => 'sd_footer_titles', 'type' => 'color', 'title' => __('Footer Widget Titles', 'sd-framework'), 'subtitle' => __('Select the footer widget titles color.', 'sd-framework'), 'desc' => __('Default is #dcdcdc', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-footer-title')), array('id' => 'sd_footer_text', 'type' => 'color', 'title' => __('Footer Text', 'sd-framework'), 'subtitle' => __('Select the footer text color.', 'sd-framework'), 'desc' => __('Default is #3b5868', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-footer-widgets')), array('id' => 'sd_footer_link', 'type' => 'link_color', 'title' => __('Footer Links', 'sd-framework'), 'subtitle' => __('Select the footer link colors.', 'sd-framework'), 'desc' => __('Default is #3b5868 and #ffffff', 'sd-framework'), 'regular' => true, 'hover' => true, 'active' => false, 'visited' => false, 'compiler' => array('.sd-footer-widgets a, .blogroll li:before, #sd-footer .widget_nav_menu li:before')), array('id' => 'sd_footer_form_fields_bg', 'type' => 'color', 'title' => __('Footer Form Fields Background', 'sd-framework'), 'subtitle' => __('Select the footer form fields background color.', 'sd-framework'), 'desc' => __('Default is #1e323d', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-footer-sidebar-widget .wpcf7-text, .sd-footer-sidebar-widget .wpcf7-textarea, .sd-footer-sidebar-widget .wpcf7-captchar')), array('id' => 'sd_footer_form_fields_text', 'type' => 'color', 'title' => __('Footer Form Fields Text', 'sd-framework'), 'subtitle' => __('Select the footer form fields text color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-footer-sidebar-widget .wpcf7-text, .sd-footer-sidebar-widget .wpcf7-textarea, .sd-footer-sidebar-widget .wpcf7-captchar')), array('id' => 'sd_footer_form_fields_placeholder', 'type' => 'color', 'title' => __('Footer Form Fields Placeholders', 'sd-framework'), 'subtitle' => __('Select the footer form fields placeholders color.', 'sd-framework'), 'desc' => __('Default is #55656d', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-footer-sidebar-widget input::-moz-placeholder, .sd-footer-sidebar-widget textarea::-moz-placeholder')), array('id' => 'sd_footer_form_button_border', 'type' => 'color', 'title' => __('Footer Form Button Border', 'sd-framework'), 'subtitle' => __('Select the footer form button color.', 'sd-framework'), 'desc' => __('Default is #0191c6', 'sd-framework'), 'transparent' => false, 'compiler' => array('border-color' => '.sd-footer-sidebar-widget .wpcf7-submit')), array('id' => 'sd_footer_form_button_text', 'type' => 'color', 'title' => __('Footer Form Button Text', 'sd-framework'), 'subtitle' => __('Select the footer form button text color.', 'sd-framework'), 'desc' => __('Default is #ffffff', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-footer-sidebar-widget .wpcf7-submit')), array('id' => 'sd_footer_copyright_bg', 'type' => 'color', 'title' => __('Copyright Background', 'sd-framework'), 'subtitle' => __('Select the copyright background color.', 'sd-framework'), 'desc' => __('Default is #06161f', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-copyright')), array('id' => 'sd_footer_copyright_text', 'type' => 'color', 'title' => __('Copyright Text', 'sd-framework'), 'subtitle' => __('Select the copyright text color.', 'sd-framework'), 'desc' => __('Default is #213641', 'sd-framework'), 'transparent' => false, 'compiler' => array('.sd-copyright')), array('id' => 'sd_footer_copyright_link', 'type' => 'link_color', 'title' => __('Copyright Links', 'sd-framework'), 'subtitle' => __('Select the copyright link colors.', 'sd-framework'), 'desc' => __('Default is #2f3c40 and #ffffff', 'sd-framework'), 'regular' => true, 'hover' => true, 'active' => false, 'visited' => false, 'compiler' => array('.sd-copyright a')), array('id' => 'sd_page_top_styling_info', 'type' => 'info', 'desc' => __('Page Top Titles Styling', 'sd-framework')), array('id' => 'sd_page_top_padding', 'type' => 'spacing', 'title' => __('Page Title Padding', 'sd-framework'), 'subtitle' => __('Insert your custom page title paddings.', 'sd-framework'), 'desc' => __('Defaults are: Top = 80px and Bottom = 70px', 'sd-framework'), 'top' => true, 'right' => false, 'bottom' => true, 'left' => false, 'units' => array('px'), 'units_extended' => false, 'display_units' => true, 'default' => '', 'mode' => 'padding', 'compiler' => array('.sd-page-top')), array('id' => 'sd_page_top_bg', 'type' => 'color', 'title' => __('Page Top Background', 'sd-framework'), 'subtitle' => __('Select the page top titles background color.', 'sd-framework'), 'desc' => __('Default is #dbdbdb', 'sd-framework'), 'transparent' => false, 'compiler' => array('background-color' => '.sd-page-top')), array('id' => 'sd_custom_css_styling_info', 'type' => 'info', 'desc' => __('Custom CSS Styling', 'sd-framework')), array('id' => 'sd_custom_css', 'type' => 'ace_editor', 'title' => __('Custom Styling', 'sd-framework'), 'subtitle' => __('Insert your custom CSS code here.', 'sd-framework'), 'mode' => 'css', 'theme' => 'chrome', 'options' => array('minLines' => 50))));
            $this->sections[] = array('title' => __('404 Page', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-error', 'fields' => array(array('id' => 'sd_404_layout', 'type' => 'select', 'title' => __('404 Page Layout', 'sd-framework'), 'subtitle' => __('Select the layout for the 404 error page.', 'sd-framework'), 'options' => array('1' => 'With Sidebar', '2' => 'Full Width'), 'default' => '1'), array('id' => 'sd_404_title', 'type' => 'text', 'title' => __('404 Page Title', 'sd-framework'), 'subtitle' => __('Inert a custom 404 error page title.', 'sd-framework'), 'default' => 'Ooops, 404 Not Found!'), array('id' => 'sd_404_content', 'type' => 'editor', 'title' => __('404 Page Content', 'sd-framework'), 'subtitle' => __('Insert your custom content for the 404 error page.', 'sd-framework'))));
            $this->sections[] = array('title' => __('Admin Page', 'sd-framework'), 'desc' => '', 'icon' => 'el-icon-lock', 'fields' => array(array('id' => 'sd_admin_logo_upload', 'type' => 'media', 'url' => false, 'title' => __('Custom Admin Logo', 'sd-framework'), 'compiler' => 'true', 'desc' => __('Upload your custom admin logo image.', 'sd-framework'), 'default' => array('url' => get_template_directory_uri() . '/framework/images/my-university-logo.png')), array('id' => 'sd_admin_logo_height', 'type' => 'dimensions', 'title' => __('Logo Height', 'sd-framework'), 'subtitle' => __('Insert the height of your logo.', 'sd-framework'), 'width' => false, 'units' => array('px')), array('id' => 'sd_admin_url', 'type' => 'text', 'title' => __('Admin logo URL', 'sd-framework'), 'subtitle' => __('Insert your custom admin logo URL.', 'sd-framework'), 'desc' => __('Always start with http://', 'sd-framework'))));
        }
Exemple #3
0
 function sd_icon_box_vcmap()
 {
     vc_map(array('name' => 'Icon Box', 'description' => 'Insert an icon box', 'base' => "sd_icon_box", 'class' => "sd_icon_box", 'category' => 'My University', 'icon' => "icon-wpb-sd-icon-box", 'admin_enqueue_css' => get_template_directory_uri() . '/framework/inc/vc/assets/css/sd-vc-admin-styles.css', 'front_enqueue_css' => get_template_directory_uri() . '/framework/inc/vc/assets/css/sd-vc-admin-styles.css', 'params' => array(array('type' => 'textfield', 'class' => '', 'heading' => 'Title', 'param_name' => 'title', 'value' => 'Sample Title', 'description' => 'Insert your title.'), array('type' => 'textarea_html', 'class' => '', 'heading' => 'Content', 'param_name' => 'content', 'value' => 'I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'description' => 'Insert the content of the box.'), array('type' => 'dropdown', 'class' => '', 'heading' => 'Icon', 'param_name' => 'icon', 'value' => sd_font_awesome_icons(), 'description' => 'Select an icon. See <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/cheatsheet/">Icons List Here.</a>'), array('type' => 'colorpicker', 'class' => '', 'heading' => 'Icon Color', 'param_name' => 'icon_color', 'value' => '#000000', 'description' => 'Select the color of your icon.'), array('type' => 'textfield', 'class' => '', 'heading' => 'Icon Size', 'param_name' => 'icon_size', 'value' => '24px', 'description' => 'Insert the icons size in pixels (eg. 24px).'), array('type' => 'dropdown', 'class' => '', 'heading' => 'Heading Type', 'param_name' => 'heading', 'value' => array('h2', 'h3', 'h4', 'h5', 'h6'), 'description' => 'Select the heading type.'), array('type' => 'dropdown', 'class' => '', 'heading' => 'Box Style', 'param_name' => 'style', 'value' => array('left', 'center'), 'description' => 'Select the style of the box.'), array('type' => 'textfield', 'class' => '', 'heading' => 'Left Padding', 'param_name' => 'padding', 'value' => '35px', 'description' => 'Insert the padding in pixels (eg. 35px) (usable only when left style is selected).'))));
 }