WordPress.org

Make WordPress Themes

Changes from matata/1.1 at r84328 to matata/1.1.1 at r84328


Ignore:
Location:
matata/1.1.1
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • matata/1.1.1/functions.php

    r84328 r84328  
    6464    ) ); 
    6565 
    66     /* 
    67      * Enable support for Post Formats. 
    68      * See https://developer.wordpress.org/themes/functionality/post-formats/ 
    69      */ 
    70     add_theme_support( 'post-formats', array( 
    71         'aside', 
    72         'image', 
    73         'video', 
    74         'quote', 
    75         'link', 
    76     ) ); 
    77  
    7866    // Set up the WordPress core custom background feature. 
    7967    add_theme_support( 'custom-background', apply_filters( 'matata_custom_background_args', array( 
     
    8169        'default-image' => '', 
    8270    ) ) ); 
     71 
     72    add_theme_support( 'custom-logo'); 
    8373} 
    8474endif; 
  • matata/1.1.1/header.php

    r84328 r84328  
    4040            <?php endif; // End header image check. ?> 
    4141 
    42             <?php if (get_theme_mod('matata_logo', '') != '') : ?> 
    43                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo esc_url(get_theme_mod('matata_logo')); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a> 
    44             <?php endif; ?> 
     42            <?php matata_the_custom_logo(); ?> 
    4543 
    4644            <?php 
  • matata/1.1.1/inc/customizer.php

    r84328 r84328  
    7070    )); 
    7171 
    72     // logo upload options 
    73     $wp_customize->add_section('matata_header_logo', array( 
    74        'priority' => 1, 
    75        'title' => __('Header Logo', 'matata'), 
    76        'panel' => 'matata_main_options' 
    77     )); 
    78  
    79     $wp_customize->add_setting('matata_logo', array( 
    80        'default' => '', 
    81        'capability' => 'edit_theme_options', 
    82        'sanitize_callback' => 'esc_url_raw' 
    83     )); 
    84  
    85     $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'matata_logo', array( 
    86        'label' => __('Upload logo for your header', 'matata'), 
    87        'section' => 'matata_header_logo', 
    88        'setting' => 'matata_logo' 
    89     ))); 
    90  
    9172    // home slider enable/disable 
    9273    $wp_customize->add_section('matata_home_slider_section', array( 
     
    130111    $wp_customize->add_setting('matata_slide_number', array( 
    131112        'default' => 3, 
     113        'capability' => 'edit_theme_options', 
    132114        'sanitize_callback' => 'matata_sanitize_number' 
    133115    )); 
  • matata/1.1.1/inc/extras.php

    r84328 r84328  
    155155 
    156156/****************************************************************************************/ 
     157 
     158function matata_the_custom_logo() { 
     159   if ( function_exists( 'the_custom_logo' ) ) { 
     160      the_custom_logo(); 
     161   } 
     162} 
  • matata/1.1.1/inc/home-slider.php

    r84328 r84328  
    88 */ 
    99 
    10 $count = get_theme_mod('matata_slide_number'); 
    1110$slidecat = get_theme_mod('matata_slide_categories'); 
     11$count = get_theme_mod('matata_slide_number', 3); 
    1212 
    1313if ($slidecat !== 'default'){ 
  • matata/1.1.1/readme.txt

    r84328 r84328  
    22 
    33Author: JusThemes.com 
    4 Contributors: automattic 
     4Contributors: JusThemes 
    55Tags: light, white, two-columns, right-sidebar, left-sidebar, responsive-layout, custom-background, custom-menu, custom-colors, threaded-comments, translation-ready, featured-images, theme-options 
    66 
     
    5656 
    5757== Changelog == 
     58= 1.1.1 - May 11 2016 = 
     59* Custom Logo Support, WordPress 4.5 
    5860 
    5961= 1.1 - Apr 25 2016 = 
  • matata/1.1.1/style.css

    r84328 r84328  
    55Author URI: http://justhemes.com 
    66Description: Matata is a perfect responsive theme for blogs and magazines. Suitable for news, newspaper, magazine, publishing, business and any kind of sites. Support Forum: http://justhemes.com/forums Demo: http://justhemes.com/demo/matata 
    7 Version: 1.1 
     7Version: 1.1.1 
    88License: GNU General Public License v2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1212 
    1313This theme, like WordPress, is licensed under the GPL. 
    14 Use it to make something cool, have fun, and share what you've learned with others. 
    1514 
    1615Normalizing styles have been helped along thanks to the fine work of 
Note: See TracChangeset for help on using the changeset viewer.