Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Setup -- Probably want to keep this stuff...
- require_once( dirname(__FILE__) . '/setup.php' );
- pagelines_disable_settings( array( 'panel' => 'color_control', 'keep' => false ) );
- // Default typography
- pl_default_setting( array( 'key' => 'type_headers', 'value' => array('font' => 'lato', 'transform' => 'capitalize' ) ) );
- pl_default_setting( array( 'key' => 'type_primary', 'value' => array('font' => 'ofl_sorts_mill_goudy_tt' ) ) );
- pl_default_setting( array( 'key' => 'type_secondary', 'value' => array('font' => 'lato', 'transform' => 'uppercase' ) ) );
- // Supports these additional sections
- pl_support_section( array( 'slug' => 'pagelines-reader', 'class_name' => 'plReader', 'disable_color' => true ) );
- pl_support_section( array( 'slug' => 'pagelines-profiles', 'class_name' => 'PLProfiles', 'disable_color' => true ) );
- pl_support_section( array( 'slug' => 'pagelines-pricing', 'class_name' => 'PLPricing', 'disable_color' => true ) );
- // ===========
- // = Filters =
- // ===========
- add_filter('pagelines_post_metabar','wt_metabar');
- function wt_metabar(){
- ob_start();?>
- <div id="postmeta" class="accent">
- <span id="date">
- <?php the_date();?>
- </span>
- <span id="author">
- <?php echo do_shortcode('[post_author_posts_link]');?>
- </span>
- <?php $cats = get_the_category_list( );
- if ($cats) { ?>
- <span id="cats">
- <?php echo do_shortcode('[post_categories]');?>
- </span>
- <?php } ?>
- </div>
- <?php
- return ob_get_clean();
- }
- // =========
- // = Hooks =
- // =========
- add_action('wp_footer','insert_white_fade');
- function insert_white_fade(){
- ?>
- <script type="text/javascript">
- var $j = jQuery.noConflict();
- $j('.searchform input.submit').attr('src','<?php echo CHILD_IMAGES?>/search.png');
- <?php echo '$j("#dynamic-content").find(".content").first().prepend("<img id=\"feature_holder_bg\" src=\"'.CHILD_IMAGES.'/white_box_fade.png\"/>");';?>
- <?php echo '$j(".buddypress-page #dynamic-content").find("#content").first().prepend("<img id=\"feature_holder_bg\" src=\"'.CHILD_IMAGES.'/white_box_fade.png\"/>");';?>
- </script>
- <?php
- }
- add_filter('pagelines_options_array', 'ignite_options');
- function ignite_options($original_option_array){
- $ignite_options_array = array(
- 'Ignite_options' => array(
- 'color_options' => array(
- 'default' => 'black',
- 'type' => 'select',
- 'selectvalues' => array(
- 'black' => array('name'=> __( 'Black', 'pagelines' )),
- 'grey' => array('name'=> __( 'Grey', 'pagelines' )),
- 'red' => array('name'=> __( 'Red', 'pagelines' )),
- 'darkBlue' => array('name'=> __( 'Dark Blue', 'pagelines' )),
- 'lightBlue' => array('name'=> __( 'Light Blue', 'pagelines' )),
- 'orange' => array('name'=> __( 'Orange', 'pagelines' )),
- 'green' => array('name'=> __( 'Green', 'pagelines' )),
- 'purple' => array('name'=> __( 'Purple', 'pagelines' )),
- ),
- 'inputlabel'=> __( 'Select your Color Scheme', 'pagelines' ),
- 'title' => __( 'Ignite Color Options', 'pagelines' ),
- 'shortexp' => __( 'Select Which To Show', 'pagelines' ),
- 'exp' => __( "Select the main color scheme for this child theme", 'pagelines' )
- ),
- 'header_shadows' => array(
- 'default' => 'yes',
- 'type' => 'select',
- 'selectvalues' => array(
- 'yes' => array('name'=> __( 'Yes', 'pagelines' )),
- 'no' => array('name'=> __( 'No', 'pagelines' )),
- ),
- 'inputlabel'=> __( 'Use text shadow on post/page headers', 'pagelines' ),
- 'title' => __( 'Text Shadows', 'pagelines' ),
- 'shortexp' => __( 'Select Which To Show', 'pagelines' ),
- ),
- 'custom-text-colors' => array(
- 'title' => 'Ignite Text Colors',
- 'layout' => 'layout',
- 'shortexp' => 'This section controls the basic theme text color options',
- 'type' => 'color_multi',
- 'selectvalues' => array(
- 'ignite_text' => array(
- 'default' => '',
- 'css_prop' => 'color',
- 'selectors' => 'body',
- 'inputlabel' => 'Body Text Color',
- ),
- 'ignite_link' => array(
- 'default' => '',
- 'css_prop' => 'color',
- 'selectors' => 'body a',
- 'inputlabel' => 'Link Color',
- ),
- 'ignite_link_hover' => array(
- 'default' => '',
- 'css_prop' => 'color',
- 'selectors' => 'body a:hover',
- 'inputlabel' => 'Link Hover Color',
- ),
- )
- ),
- )
- );
- return array_merge($original_option_array, $ignite_options_array);
- }
- add_filter('pagelines_options_header_footer', 'ignite_nav_options');
- function ignite_nav_options($original_option_array){
- $ignite_nav_new = array(
- 'drop_down_options' => array(
- 'default' => '',
- 'type' => 'check_multi',
- 'selectvalues'=> array(
- 'enable_drop_down' => array(
- 'default' => false,
- 'type' => 'check',
- 'scope' => '',
- 'inputlabel' => __( 'Enable Drop Down Navigation?', 'pagelines' ),
- 'title' => __( 'Drop Down Navigation', 'pagelines' ),
- 'shortexp' => __( 'Enable universal drop down navigation', 'pagelines' ),
- 'exp' => __( 'Checking this option will create drop down menus for all child pages when users hover over main navigation items.', 'pagelines' )
- ),
- 'drop_down_arrows' => array(
- 'default' => true,
- 'type' => 'check',
- 'scope' => '',
- 'inputlabel' => __( 'Enable Arrows on Drop Down Menu?', 'pagelines' ),
- 'title' => __( 'Drop Down Arrows', 'pagelines' ),
- 'shortexp' => __( 'Enable arrows for drop down navigation', 'pagelines' ),
- 'exp' => __( 'Checking this option will create arrows for the drop down menus', 'pagelines' )
- )),
- 'inputlabel' => __( 'Select Which Drop Down Options To Show', 'pagelines' ),
- 'title' => __( 'Drop Down Navigation - Nav and BrandNav Section', 'pagelines' ),
- 'shortexp' => __( 'Select Which To Show', 'pagelines' ),
- 'exp' => __( 'Enable drop downs and choose the options you would like to show', 'pagelines' )
- ),
- );
- return array_merge($original_option_array, $ignite_nav_new);
- }
- add_filter('pagelines_lesscode', 'trans_css');
- function trans_css( $less ){
- if(ploption('header_shadows') == 'no')
- $less .= ".fpost .post-title h2 a, .clip .post-title h4 a, .fpost .post-title h2 a:hover, .clip .post-title h4 a:hover, h1.entry-title {
- text-shadow:none;
- }";
- return $less;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement