WordPress.org

Make WordPress Themes


Ignore:
Location:
interserver-platinum
Files:
1 added
4 deleted
35 edited

Legend:

Unmodified
Added
Removed
  • interserver-platinum/1.1.1/inc/customizer.php

    r85658 r85658  
    66 */ 
    77 
     8if(!function_exists('interserver_platinum_customize_register')){ 
    89 function interserver_platinum_customize_register( $wp_customize ) { 
    9     global $default; 
     10     
    1011    $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 
    1112    $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 
     
    1920     
    2021    // Load customize controls. 
    21     require get_template_directory(). '/inc/customizer/controls.php'; 
     22    include(locate_template('inc/customizer/controls.php')); 
    2223 
    2324    // Load sanitize option. 
    24     require get_template_directory(). '/inc/customizer/sanitize.php'; 
    25      
     25    include(locate_template('inc/customizer/sanitize.php')); 
     26 
     27    // Load customize defaults. 
     28    include(locate_template('inc/customizer/defaults.php')); 
     29 
    2630    // Load customize option. 
    27     require get_template_directory(). '/inc/customizer/options.php'; 
    28  
     31    include(locate_template('inc/customizer/options.php')); 
     32} 
    2933} 
    3034add_action( 'customize_register', 'interserver_platinum_customize_register' ); 
     
    3337 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 
    3438 */ 
     39if(!function_exists('interserver_platinum_customize_preview_js')){ 
    3540function interserver_platinum_customize_preview_js() { 
    3641    wp_enqueue_script( 'interserver_platinum_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); 
    3742} 
     43} 
    3844add_action( 'customize_preview_init', 'interserver_platinum_customize_preview_js' ); 
  • interserver-platinum/1.1.1/inc/customizer/defaults.php

    r85658 r85658  
    55 * @package Interserver Platinum 
    66 */ 
     7 
    78 
    89if ( ! function_exists( 'interserver_platinum_get_default_theme_options' ) ) : 
     
    128129        // Slider Text color 
    129130        $defaults['slider_text_color'] = '#ffffff';  
     131         
    130132        // Widgetized Footer Background Color 
    131133        $defaults['footer_widgets_background'] = '#151515'; 
     134 
    132135        // Footer Background Color 
    133136        $defaults['footer_background'] = '#242424'; 
     
    152155         
    153156        // Pass through filter. 
    154         $defaults = apply_filters( ' interserver_platinum_filter_default_theme_options', $defaults ); 
     157        $defaults = apply_filters('interserver_platinum_filter_default_theme_options', $defaults ); 
    155158        return $defaults; 
    156159    } 
     
    158161 
    159162$default = interserver_platinum_get_default_theme_options(); 
     163 
  • interserver-platinum/1.1.1/inc/customizer/options.php

    r85658 r85658  
    88 */ 
    99  
     10 
     11 global $wp_customize; 
     12 
    1013/*====================== Header Options ======================*/ 
    1114    $wp_customize->add_panel( 'header_options', array( 
     
    220223        ) 
    221224    );   
     225     
    222226    //Slider Custom Height 
    223227    $wp_customize->add_setting( 
  • interserver-platinum/1.1.1/inc/customizer/sanitize.php

    r85658 r85658  
    44 * @package Interserver Platinum 
    55 */ 
    6   
     6 
    77//Header type 
    88function interserver_platinum_sanitize_layout( $input ) { 
  • interserver-platinum/1.1.1/inc/hook/basic.php

    r85658 r85658  
    5353// Header Slider 
    5454function interserver_platinum_header_slider() { 
    55     global $default; 
     55  global $default; 
    5656    $front_header = get_theme_mod('front_header_type', $default['front_header_type']); 
    5757    $site_header = get_theme_mod('site_header_type', $default['site_header_type']); 
  • interserver-platinum/1.1.1/inc/hook/custom.php

    r85658 r85658  
    8989                <div class="col-md-6 col-sm-6 col-xs-12"> 
    9090                <div class="copyright"> 
    91                     <?php echo esc_html($copyright_text); ?> 
     91                    <?php echo wp_kses_data($copyright_text); ?> 
    9292                </div><!-- .copyright --> 
    9393                </div> 
     
    9797                <div class="col-md-6 col-sm-6 col-xs-12"> 
    9898                <div class="site-info"> 
    99                     <?php echo $powered_by_text; ?> 
     99                    <?php echo wp_kses_data($powered_by_text); ?> 
    100100                </div><!-- .site-info --> 
    101101                </div> 
     
    111111// Slider 
    112112if ( ! function_exists( 'interserver_platinum_display_featured_header' ) ) : 
    113     function interserver_platinum_display_featured_header () { 
     113    function interserver_platinum_display_featured_header (){ 
    114114    global $default; 
    115115    $front_header = get_theme_mod('front_header_type', $default['front_header_type']); 
     
    119119    } 
    120120    // Load Slider  
    121     get_template_part('template-parts/slider'); 
     121    include(locate_template('template-parts/slider.php')); 
    122122    if ($front_header != 'default' && is_front_page() || $site_header != 'default' && !is_front_page()) {    
    123123    echo '</div>'; 
    124124    } 
    125     ?> 
    126  
    127 <?php } 
     125    } 
    128126endif; 
    129127add_action('interserver_platinum_action_after_header','interserver_platinum_display_featured_header', 10); 
  • interserver-platinum/1.1.1/inc/hook/structure.php

    r85658 r85658  
    2323    <link rel="profile" href="http://gmpg.org/xfn/11"> 
    2424    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> 
    25     <?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) :  
    26      if ( get_theme_mod('site_favicon') ) : ?> 
    27         <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" /> 
    28     <?php endif; 
    29     endif;  
     25    <?php 
    3026    } 
    3127endif; 
  • interserver-platinum/1.1.1/inc/init.php

    r85658 r85658  
    55 * @package Interserver Platinum 
    66 */ 
     7 
     8 
    79/** 
    810 * Implement the Custom Header feature. 
    911 */ 
    10 require trailingslashit( get_template_directory() ) . '/inc/custom-header.php'; 
     12get_template_part('inc/custom','header'); 
    1113 
    1214/** 
    1315 * Custom functions that act independently of the theme templates. 
    1416 */ 
    15 require trailingslashit( get_template_directory() ) . '/inc/extras.php'; 
     17get_template_part('inc/extras'); 
    1618 
    1719/** 
    1820 * Custom template tags for this theme. 
    1921 */ 
    20 require trailingslashit( get_template_directory() ) . '/inc/template-tags.php'; 
     22get_template_part('inc/template','tags'); 
    2123 
    2224/** 
    2325 * Load Jetpack compatibility file. 
    2426 */ 
    25 require trailingslashit( get_template_directory() ) . '/inc/jetpack.php'; 
     27get_template_part('inc/jetpack'); 
    2628 
    2729/** 
    2830 * Woocommerce basic integration 
    2931 */ 
    30 require trailingslashit( get_template_directory() ) . '/inc/woocommerce.php'; 
     32get_template_part('inc/woocommerce'); 
    3133 
    3234// Load customize defaults. 
    33 require trailingslashit( get_template_directory() ). '/inc/customizer/defaults.php'; 
    34      
     35include(locate_template('inc/customizer/defaults.php')); 
    3536 
    3637/** 
    3738 * Customizer additions. 
    3839 */ 
    39 require trailingslashit( get_template_directory() ) . '/inc/customizer.php'; 
     40include(locate_template('inc/customizer.php')); 
    4041 
    4142/** 
    4243 * Load hooks. 
    4344 */ 
    44 require trailingslashit( get_template_directory() ) . 'inc/hook/structure.php'; 
    45 require trailingslashit( get_template_directory() ) . 'inc/hook/basic.php'; 
    46 require trailingslashit( get_template_directory() ) . 'inc/hook/custom.php'; 
    47  
    48  
     45include(locate_template('inc/hook/basic.php')); 
     46include(locate_template('inc/hook/structure.php')); 
     47include(locate_template('inc/hook/custom.php')); 
    4948/** 
    5049 * Load Customizer Styles. 
    5150 */ 
    52 require trailingslashit( get_template_directory() ). '/inc/customizer/styles.php'; 
     51get_template_part('inc/customizer/styles'); 
    5352 
    5453/** 
    5554 * TGM 
    5655 */ 
    57 require trailingslashit( get_template_directory() ) . 'lib/tgm/tgm.php'; 
     56get_template_part('lib/tgm/tgm'); 
    5857 
    5958/** 
    6059 * Demo Content Import 
    6160 */ 
    62 require trailingslashit( get_template_directory() ). '/demo-import/demo-setup.php'; 
     61get_template_part('demo-import/demo','setup'); 
  • interserver-platinum/1.1.1/inc/template-tags.php

    r85658 r85658  
    5858    ); 
    5959 
    60     echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; 
     60    echo '<span class="posted-on">' . wp_kses_data($posted_on) . '</span><span class="byline"> ' . wp_kses_data($byline) . '</span>'; 
    6161     
    6262    if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 
     
    6969    if ( $categories_list && interserver_platinum_categorized_blog() ) { 
    7070        /* translators: %s: category name */ 
    71         printf( '<span class="cat-links">' . __( 'Posted in %1$s','interserver-platinum' ) . '</span>', $categories_list ); 
     71        printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s','interserver-platinum' ) . '</span>', wp_kses_data($categories_list) ); 
    7272    } 
    7373} 
     
    8585        if ( $tags_list && is_single() ) { 
    8686            /* translators: %s: tag name */ 
    87             printf( '<span class="tags-links"><i class="fa fa-tags"></i>' . __( ' %1$s', 'interserver-platinum' ) . '</span>', $tags_list ); 
     87            printf( '<span class="tags-links"><i class="fa fa-tags"></i>' . esc_html__( ' %1$s', 'interserver-platinum' ) . '</span>', wp_kses_data($tags_list) ); 
    8888        } 
    8989    } 
  • interserver-platinum/1.1.1/languages/Interserver Platinum.pot

    r85658 r85658  
    44"Project-Id-Version: PACKAGE VERSION\n" 
    55"Report-Msgid-Bugs-To: \n" 
    6 "POT-Creation-Date: 2017-09-29 07:17+0000\n" 
     6"POT-Creation-Date: 2017-11-29 09:03+0000\n" 
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    1616 
    1717#. Name of the template 
    18 msgid "Front Page" 
     18#. Name of the template 
     19msgid "Full width" 
    1920msgstr "" 
    2021 
    2122#. Name of the template 
    22 #. Name of the template 
    23 msgid "Full width" 
     23msgid "Front Page" 
    2424msgstr "" 
    2525 
  • interserver-platinum/1.1.1/readme.txt

    r85658 r85658  
    22 
    33Theme Name      :  Interserver Platinum 
    4 Version         :  1.1 
     4Version         :  1.1.1 
    55Tested up to    :  WP 4.8.1 
    66Author          :  InterServer.Net Web Hosting  
  • interserver-platinum/1.1.1/style.css

    r85658 r85658  
    55Author URI: https://profiles.wordpress.org/interservernet-web-hosting 
    66Description: Interserver Platinum is a latest portfolio theme for various type of businesses. It is easily customizable and have various options in the admin section for the pages and the layouts. Follow these steps to manage Home page :<br>1. Create a new page and choose the Front Page Template for this page. 2. Go to  Appearancs > Customize > Static Front Page and set the above page as a static page for front page displays.  3. The slider on the homepage is the post slider so you have to create posts to make the slider work. The other sections of the home page can be managed from Appearancs > Customize > Home Page Sections. 
    7 Version: 1.1.0 
     7Version: 1.1.1 
    88License: GNU General Public License 
    99License URI: license.txt 
  • interserver-platinum/1.1.1/template-parts/slider.php

    r85658 r85658  
    77 
    88//Slider template 
    9  
    109if ( ! function_exists( 'interserver_platinum_featured_header_template' ) ) : 
    1110function interserver_platinum_featured_header_template() { 
Note: See TracChangeset for help on using the changeset viewer.