WordPress.org

Make WordPress Themes


Ignore:
Location:
enlightenment/1.1.3
Files:
42 edited

Legend:

Unmodified
Added
Removed
  • enlightenment/1.1.3/core/admin/custom-layouts.php

    r85658 r85658  
    5858    $args['multiple'] = false; 
    5959    $output = enlightenment_select_box( $args, false ); 
    60     ob_start(); ?> 
    61     <script> 
    62         jQuery(document).ready(function($) { 
    63             $('.select-template').change(function() { 
    64                 window.location = '<?php echo admin_url( 'themes.php?page=' . current_theme_supports( 'enlightenment-theme-settings', 'menu_slug' ) . '&tab=layouts&template=' ); ?>'+$(this).val(); 
    65             }); 
    66         }); 
    67     </script> 
    68     <?php 
    69     $output .= ob_get_clean(); 
    7060    if( ! $echo ) 
    7161        return $output; 
  • enlightenment/1.1.3/core/admin/grid-loop.php

    r85658 r85658  
    7575    $args['multiple'] = false; 
    7676    $output = enlightenment_select_box( $args, false ); 
    77     ob_start(); ?> 
    78     <script> 
    79         jQuery(document).ready(function($) { 
    80             $('.select-template').change(function() { 
    81                 window.location = '<?php echo admin_url( 'themes.php?page=' . current_theme_supports( 'enlightenment-theme-settings', 'menu_slug' ) . '&tab=grid_loop&template=' ); ?>'+$(this).val(); 
    82             }); 
    83         }); 
    84     </script> 
    85     <?php 
    86     $output .= ob_get_clean(); 
    8777    if( ! $echo ) 
    8878        return $output; 
  • enlightenment/1.1.3/core/admin/init.php

    r85658 r85658  
    6464    } 
    6565    wp_enqueue_script( 'enlightenment_theme_options_script', enlightenment_scripts_directory_uri() . '/settings.js' ); 
    66     $args = apply_filters( 'enlightenment_settings_args', array() ); 
     66    $tabs = enlightenment_theme_options_page_tabs(); 
     67    $args = apply_filters( 'enlightenment_settings_args', array( 
     68        'admin_url' => admin_url(), 
     69        'menu_slug' => current_theme_supports( 'enlightenment-theme-settings', 'menu_slug' ), 
     70        'current_tab' => isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : key( $tabs ), 
     71    ) ); 
    6772    if( ! empty( $args ) ) 
    6873        wp_localize_script( 'enlightenment_theme_options_script', 'enlightenment_settings_args', $args ); 
  • enlightenment/1.1.3/core/admin/post-formats-editor.php

    r85658 r85658  
    117117    $args['multiple'] = false; 
    118118    $output = enlightenment_select_box( $args, false ); 
    119     ob_start(); ?> 
    120     <script> 
    121         jQuery(document).ready(function($) { 
    122             $('.select-post-format').change(function() { 
    123                 window.location = '<?php echo admin_url( 'themes.php?page=' . current_theme_supports( 'enlightenment-theme-settings', 'menu_slug' ) . '&tab=post_formats&format=' ); ?>'+$(this).val(); 
    124             }); 
    125         }); 
    126     </script> 
    127     <?php 
    128     $output .= ob_get_clean(); 
    129119    if( ! $echo ) 
    130120        return $output; 
  • enlightenment/1.1.3/core/admin/template-editor.php

    r85658 r85658  
    208208    $args['multiple'] = false; 
    209209    $output = enlightenment_select_box( $args, false ); 
    210     ob_start(); ?> 
    211     <script> 
    212         jQuery(document).ready(function($) { 
    213             $('.select-template').change(function() { 
    214                 window.location = '<?php echo admin_url( 'themes.php?page=' . current_theme_supports( 'enlightenment-theme-settings', 'menu_slug' ) . '&tab=templates&template=' ); ?>'+$(this).val(); 
    215             }); 
    216         }); 
    217     </script> 
    218     <?php 
    219     $output .= ob_get_clean(); 
    220210    if( ! $echo ) 
    221211        return $output; 
  • enlightenment/1.1.3/core/admin/unlimited-sidebars.php

    r85658 r85658  
    1616    if( ! isset( $_GET['template'] ) ) { 
    1717        if( ! isset( $_GET['sidebar'] ) ) { 
    18             /*add_settings_section( 
    19                 'dynamic_sidebars', // Unique identifier for the settings section 
    20                 __( 'Dynamic Sidebars', 'enlightenment' ), // Section title 
    21                 '__return_false', // Section callback (we don't want anything) 
    22                 'enlightenment_theme_options' // Menu slug, used to uniquely identify the page 
    23             ); 
    24              
    25             $sidebar_options = enlightenment_theme_option( 'sidebars' ); 
    26             $sidebars = array(); 
    27             if( ! empty( $sidebar_options ) ) { 
    28                 foreach( $sidebar_options as $sidebar => $atts ) { 
    29                     $sidebars[] = array( 
    30                         'name' => 'sidebars[' . $sidebar . ']', 
    31                         'atts' => $atts, 
    32                     ); 
    33                 } 
    34             } 
    35              
    36             if( ! empty( $sidebars ) ) { 
    37                 add_settings_field( 
    38                     'edit_dynamic_sidebars',  // Unique identifier for the field for this section 
    39                     __( 'Edit Dynamic Sidebars', 'enlightenment' ), // Setting field label 
    40                     'enlightenment_edit_dynamic_sidebars', // Function that renders the settings field 
    41                     'enlightenment_theme_options', // Menu slug, used to uniquely identify the page 
    42                     'dynamic_sidebars', // Settings section. Same as the first argument in the add_settings_section() above 
    43                     array( 
    44                         'sidebars' => $sidebars, 
    45                     ) 
    46                 ); 
    47             }*/ 
    48              
    4918            $sidebar_options = enlightenment_theme_option( 'sidebars' ); 
    5019            $sidebars = array(); 
     
    7140                } 
    7241            } 
    73              
    74             /*global $wp_registered_sidebars; 
    75             $i = count( $wp_registered_sidebars );// + 1; 
    76             do { 
    77                 $i++; 
    78             } while( array_key_exists( 'sidebar-' . $i, $wp_registered_sidebars ) ); 
    79              
    80             add_settings_field( 
    81                 'add_dynamic_sidebar',  // Unique identifier for the field for this section 
    82                 __( 'Add Dynamic Sidebar', 'enlightenment' ), // Setting field label 
    83                 'enlightenment_add_dynamic_sidebar', // Function that renders the settings field 
    84                 'enlightenment_theme_options', // Menu slug, used to uniquely identify the page 
    85                 'dynamic_sidebars', // Settings section. Same as the first argument in the add_settings_section() above 
    86                 array( 
    87                     'name' => 'sidebars[sidebar-' . $i . ']', 
    88                 ) 
    89             );*/ 
    9042        } 
    9143         
     
    271223            ) 
    272224        ); 
    273          
    274         /*if( ! isset( $_GET['sidebar'] ) ) { 
    275             add_settings_field( 
    276                 'add_sidebar',  // Unique identifier for the field for this section 
    277                 '', // Setting field label 
    278                 'enlightenment_submit_button', // Function that renders the settings field 
    279                 'enlightenment_theme_options', // Menu slug, used to uniquely identify the page 
    280                 'add_dynamic_sidebar', // Settings section. Same as the first argument in the add_settings_section() above 
    281                 array( 
    282                     'name' => 'new-sidebar', 
    283                     'value' =>  __( 'Add New Sidebar', 'enlightenment' ), 
    284                 ) 
    285             ); 
    286         }*/ 
    287225    } 
    288226     
     
    481419    $args['multiple'] = false; 
    482420    $output = enlightenment_select_box( $args, false ); 
    483     ob_start(); ?> 
    484     <script> 
    485         jQuery(document).ready(function($) { 
    486             $('.select-template').change(function() { 
    487                 window.location = '<?php echo admin_url( 'themes.php?page=' . current_theme_supports( 'enlightenment-theme-settings', 'menu_slug' ) . '&tab=sidebars&template=' ); ?>'+$(this).val(); 
    488             }); 
    489         }); 
    490     </script> 
    491     <?php 
    492     $output .= ob_get_clean(); 
    493421    if( ! $echo ) 
    494422        return $output; 
     
    547475     
    548476    $input['sidebars'] = array_merge( $option, $input['sidebars'] ); 
    549          
     477     
    550478    foreach( $input['sidebars'] as $sidebar => $atts ) { 
    551479        if( isset( $input['sidebars'][$sidebar]['delete'] ) ) { 
     
    568496        } 
    569497         
    570         $input['sidebars'][$sidebar]['display_title'] = isset( $input['sidebars'][$sidebar]['display_title'] ); 
    571          
    572         $input['sidebars'][$sidebar]['display_description'] = isset( $input['sidebars'][$sidebar]['display_description'] ); 
     498        $input['sidebars'][$sidebar]['display_title'] = isset( $input['sidebars'][$sidebar]['display_title'] ) && false !== $input['sidebars'][$sidebar]['display_title']; 
     499         
     500        $input['sidebars'][$sidebar]['display_description'] = isset( $input['sidebars'][$sidebar]['display_description'] ) && false !== $input['sidebars'][$sidebar]['display_description']; 
    573501         
    574502        if( current_theme_supports( 'enlightenment-bootstrap' ) ) { 
    575             $input['sidebars'][$sidebar]['contain_widgets'] = isset( $input['sidebars'][$sidebar]['contain_widgets'] ); 
     503            $input['sidebars'][$sidebar]['contain_widgets'] = isset( $input['sidebars'][$sidebar]['contain_widgets'] ) && false !== $input['sidebars'][$sidebar]['contain_widgets']; 
    576504        } 
    577505         
  • enlightenment/1.1.3/core/admin/web-fonts.php

    r85658 r85658  
    256256add_filter( 'enlightenment_settings_args', 'enlightenment_build_google_fonts_list_args' ); 
    257257 
    258 function enlightenment_build_google_fonts_list_args( $srgs ) { 
     258function enlightenment_build_google_fonts_list_args( $args ) { 
    259259    $args['google_api_key'] = current_theme_supports( 'enlightenment-web-fonts', 'google_api_key' ); 
    260260    $args['live_preview_fonts'] = current_theme_supports( 'enlightenment-web-fonts', 'live_preview_fonts' ); 
  • enlightenment/1.1.3/core/js/settings.js

    r85658 r85658  
    296296            $('.sidebar-locations').slideDown(); 
    297297    }); 
     298     
     299    $('.select-template').change(function(event) { 
     300        event.stopPropagation(); 
     301        window.location = enlightenment_settings_args.admin_url + 'themes.php?page=' + enlightenment_settings_args.menu_slug + '&tab=' + enlightenment_settings_args.current_tab + '&template=' + $(this).val(); 
     302    }); 
     303     
     304    $('.select-post-format').change(function(event) { 
     305        event.stopPropagation(); 
     306        window.location = enlightenment_settings_args.admin_url + 'themes.php?page=' + enlightenment_settings_args.menu_slug + '&tab=' + enlightenment_settings_args.current_tab + '&format=' + $(this).val(); 
     307    }); 
    298308}); 
  • enlightenment/1.1.3/core/readme.txt

    r85658 r85658  
    22Contributors: Daniel Tara 
    33Requires at least: 3.9 
    4 Tested up to: 4.2 
    5 Stable tag: 1.1.2 
     4Tested up to: 4.2.2 
     5Stable tag: 1.1.3 
    66 
    77== License == 
     
    3131 
    3232== Changelog == 
     33 
     34= 1.1.3 = 
     35 
     36* Fixed change template select box bug 
     37* Fixed web fonts localize script args function bug 
     38* Fixed sidebar show sidebar title & description options 
    3339 
    3440= 1.1.2 = 
  • enlightenment/1.1.3/readme.txt

    r85658 r85658  
    88threaded-comments, translation-ready, photoblogging 
    99Requires at least: 3.9 
    10 Tested up to: 4.2 
    11 Stable tag: 1.1.2 
     10Tested up to: 4.2.2 
     11Stable tag: 1.1.3 
    1212 
    1313Description: Our flagship multipurpose theme powered by Enlightenment Framework. With a clean, modern and responsive design backed by a powerful and flexible code base. Showcase any type of content anywhere. Create unlimited layouts. Customize all templates to your preference. Take WordPress as CMS to another level. 
     
    7878 
    7979== Changelog == 
     80 
     81= 1.1.3 = 
     82 
     83* Updated Enlightenment Framework to version 1.1.3, see core/readme.txt for changelog 
    8084 
    8185= 1.1.2 = 
  • enlightenment/1.1.3/style.css

    r85658 r85658  
    44Theme URI: https://www.onedesigns.com/themes/enlightenment 
    55Description: Our flagship multipurpose theme powered by Enlightenment Framework. With a clean, modern and responsive design backed by a powerful and flexible code base. Showcase any type of content anywhere. Create unlimited layouts. Customize all templates to your preference. Take WordPress as CMS to another level. 
    6 Version: 1.1.2 
     6Version: 1.1.3 
    77Author: One Designs 
    88Author URI: https://www.onedesigns.com/ 
Note: See TracChangeset for help on using the changeset viewer.