WordPress.org

Make WordPress Themes


Ignore:
Location:
mistercorporate
Files:
1 added
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • mistercorporate/1.1.3/functions.php

    r86901 r86901  
    1111function mistercorporate_setup() { 
    1212 
     13    load_theme_textdomain( 'mistercorporate', get_template_directory() . '/languages' ); 
     14 
    1315    /* 
    14      * Make theme available for translation. 
    15      * Translations can be filed in the /languages/ directory. 
     16     * Add logo upload support. 
    1617     */ 
    17     /* MistercorporateNS generated Load Text Domain Begin */ 
    18     load_theme_textdomain( 'mistercorporate', get_template_directory() . '/languages' ); 
    19     /* MistercorporateNS generated Load Text Domain End */ 
     18    add_theme_support( 'custom-logo' ); 
    2019 
    2120    // Add default posts and comments RSS feed links to head. 
     
    3938    ) ); 
    4039 
    41     /* 
    42      * Switch default core markup for search form, comment form, and comments 
    43      * to output valid HTML5. 
    44      */ 
     40 
    4541    add_theme_support( 'html5', array( 
    4642        'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' 
     
    4945    add_theme_support( 'custom-background', array('default-color' => 'FFFFFF') ); /*requires WP v >= 3.4  */ 
    5046    add_theme_support( 'custom-header' ); 
    51     add_editor_style();  
    5247 
    5348} 
    5449endif; // mistercorporate_setup 
    5550 
     51/* 
     52 * Register widget areas. 
     53 */ 
    5654add_action( 'after_setup_theme', 'mistercorporate_setup' ); 
    5755 
     
    6159function mistercorporate_widgets_init() { 
    6260 
    63     /* 
    64      * Register widget areas. 
    65      */ 
    66     /* MistercorporateNS generated Register Sidebars Begin */ 
     61    /* Mistercorporate generated Register Sidebars Begin */ 
    6762 
    6863    register_sidebar( array( 
     
    9590 
    9691 
    97     /* MistercorporateNS generated Register Sidebars End */ 
     92    /* Mistercorporate generated Register Sidebars End */ 
    9893} 
    9994add_action( 'widgets_init', 'mistercorporate_widgets_init' ); 
     
    105100 
    106101function mistercorporate_customize_register( $wp_customize ) { 
    107     // Do stuff with $wp_customize, the WP_Customize_Manager object. 
    108  
    109     /* MistercorporateNS generated Customizer Controls Begin */ 
     102 
     103    /* Mistercorporate generated Customizer Controls Begin */ 
    110104 
    111105    $wp_customize->add_panel( 'mistercoporate_panel', array( 
     
    124118    )); 
    125119 
    126     // $wp_customize->add_setting( 'mrcorp_header_bgk', array( 
    127     //     'sanitize_callback' => 'sanitize_text_field', 
    128     //     'transport'   => 'refresh', 
    129     //     'type' => 'theme_mod' 
    130     // )); 
    131  
    132     // $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'mrcorp_header_bgk', array( 
    133     //     'label' => __( 'Header Background', 'mistercorporate' ), 
    134     //     'type' => 'media', 
    135     //     'mime_type' => 'image', 
    136     //     'section' => 'mrcorp_header_section' 
    137     // ) ) ); 
    138120 
    139121    $wp_customize->add_section( 'mrcorp_footer_section', array( 
     
    143125 
    144126    $wp_customize->add_setting( 'mrcorp_footer_tw', array( 
    145         'sanitize_callback' => 'esc_url', 
     127        'sanitize_callback' => 'esc_url_raw', 
    146128        'transport'   => 'refresh', 
    147129        'type' => 'theme_mod' 
     
    155137 
    156138    $wp_customize->add_setting( 'mrcorp_footer_fb', array( 
    157         'sanitize_callback' => 'esc_url', 
     139        'sanitize_callback' => 'esc_url_raw', 
    158140        'transport'   => 'refresh', 
    159141        'type' => 'theme_mod' 
     
    167149 
    168150    $wp_customize->add_setting( 'mrcorp_footer_g', array( 
    169         'sanitize_callback' => 'esc_url', 
     151        'sanitize_callback' => 'esc_url_raw', 
    170152        'transport'   => 'refresh', 
    171153        'type' => 'theme_mod' 
     
    218200 
    219201    $wp_customize->add_setting( 'mrcorp_gallery_show', array( 
    220         'sanitize_callback' => 'sanitize_text_field', 
     202        'sanitize_callback' => 'absint', 
    221203        'transport'   => 'refresh', 
    222204        'type' => 'theme_mod' 
     
    260242    )); 
    261243 
    262     /* MistercorporateNS generated Customizer Controls End */ 
     244    /* Mistercorporate generated Customizer Controls End */ 
    263245 
    264246} 
     
    270252    function mistercorporate_enqueue_scripts() { 
    271253 
    272         /* MistercorporateNS generated Enqueue Scripts Begin */ 
     254    /* Mistercorporate generated Enqueue Scripts Begin */ 
    273255 
    274256    wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.js', array( 'jquery' ), '3.3.7', true ); 
     
    284266    } 
    285267 
    286     /* MistercorporateNS generated Enqueue Scripts End */ 
    287  
    288         /* MistercorporateNS generated Enqueue Styles Begin */ 
     268    /* Mistercorporate generated Enqueue Scripts End */ 
     269 
     270    /* Mistercorporate generated Enqueue Styles Begin */ 
    289271 
    290272    wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css', null, '3.3.7', 'all' ); 
     
    299281 
    300282    wp_enqueue_style( 'mistercorporate-style', get_stylesheet_uri() ); 
    301     /* MistercorporateNS generated Enqueue Styles End */ 
     283    /* Mistercorporate generated Enqueue Styles End */ 
    302284 
    303285    } 
     
    306288 
    307289/* 
    308  * Resource files included by MistercorporateNS. 
    309  */ 
    310 /* MistercorporateNS generated Include Resources Begin */ 
    311 require_once "inc/class/wp_bootstrap_navwalker.php"; 
    312  
    313     /* MistercorporateNS generated Include Resources End */ 
    314 /* MirsterCorporate Custom Function Begin */ 
    315  
    316  
    317  
    318  
    319  
     290 * Mistercorporate Walker menu. 
     291 */ 
     292 
     293require_once get_template_directory() . '/inc/class/mistercorporate_bootstrap_navwalker.php'; 
    320294 
    321295 
     
    331305require_once get_template_directory() . '/inc/mrcorporate-plugin-raccomended.php'; 
    332306 
    333 /* 
    334  * Add logo upload support. 
    335  */ 
    336 add_theme_support( 'custom-logo' ); 
     307 
    337308 
    338309/* 
     
    346317 
    347318 
    348 #################################################################### 
    349  
     319/* 
     320 * Mistercorporate Comment. 
     321 */ 
    350322function mistercorporate_comm( $comment, $args, $depth ) { 
    351323    ?> 
  • mistercorporate/1.1.3/header.php

    r86901 r86901  
    2222                        <i class="fa fa-bars"></i> 
    2323                    </button> 
    24                 <a class="navbar-brand" href="<?php echo esc_url( get_home_url() ); ?>"> 
     24                <a class="navbar-brand" href="<?php echo esc_url( home_url() ); ?>"> 
    2525                        <?php if ( get_theme_mod( 'custom_logo' ) ) : ?> 
    2626                            <?php $image_attributes = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), array(190,69) ); 
  • mistercorporate/1.1.3/readme.txt

    r86901 r86901  
    33Requires at least: WordPress 4.5 
    44Tested up to: WordPress 4.8 
    5 Version: 1.1.2 
     5Version: 1.1.3 
    66License: GPLv2 or later 
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    8282 
    8383== Changelog == 
     84= 1.1.3 = 
     85* Minor bug fix 
    8486= 1.1.2 = 
    8587* Minor bug fix 
  • mistercorporate/1.1.3/style.css

    r86901 r86901  
    11/* 
    22Theme Name: Mistercorporate 
    3 Theme URI: http://mistercorporate.nsthemes.com/ 
    43Author: NsThemes 
    54Author URI: http://www.nsthemes.com/ 
    65Description: Mistercorporate is an awsome one page WordPress theme, with gallery, pricing table, map, contact and much more. 
    7 Version: 1.1.2 
     6Version: 1.1.3 
    87License: GNU General Public License v2 or later 
    98License URI: http://www.gnu.org/licenses/gpl-2.0.html 
Note: See TracChangeset for help on using the changeset viewer.