Make WordPress Themes

Changeset 143444


Ignore:
Timestamp:
02/20/2021 06:51:40 PM (5 years ago)
Author:
themedropbox
Message:

New version of MotoSpeed - 1.3.0

Location:
motospeed/1.3.0
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • motospeed/1.3.0/functions.php

    r139037 r143444  
    156156        );
    157157        add_theme_support( 'custom-logo', $defaults );
     158
     159        // Define and register starter content to showcase the theme on new sites.
     160        $starter_content = array(
     161
     162            'widgets' => array(
     163                'sidebar-widget-area' => array(
     164                    'search',
     165                    'recent-posts',
     166                    'categories',
     167                    'archives',
     168                ),
     169
     170                'homepage-column-1-widget-area' => array(
     171                    'text_business_info'
     172                ),
     173
     174                'homepage-column-2-widget-area' => array(
     175                    'text_about'
     176                ),
     177
     178                'homepage-column-3-widget-area' => array(
     179                    'meta'
     180                ),
     181
     182                'footer-column-1-widget-area' => array(
     183                    'recent-comments'
     184                ),
     185
     186                'footer-column-2-widget-area' => array(
     187                    'recent-posts'
     188                ),
     189
     190                'footer-column-3-widget-area' => array(
     191                    'calendar'
     192                ),
     193            ),
     194
     195            'posts' => array(
     196                'home',
     197                'blog',
     198                'about',
     199                'contact'
     200            ),
     201
     202            // Default to a static front page and assign the front and posts pages.
     203            'options' => array(
     204                'show_on_front' => 'page',
     205                'page_on_front' => '{{home}}',
     206                'page_for_posts' => '{{blog}}',
     207            ),
     208
     209            // Set the front page section theme mods to the IDs of the core-registered pages.
     210            'theme_mods' => array(
     211                'motospeed_slider_display' => 1,
     212                'motospeed_slide1_image' => esc_url( get_template_directory_uri() . '/images/slider/1.jpg' ),
     213                'motospeed_slide2_image' => esc_url( get_template_directory_uri() . '/images/slider/2.jpg' ),
     214                'motospeed_slide3_image' => esc_url( get_template_directory_uri() . '/images/slider/3.jpg' ),
     215                'motospeed_slide4_image' => esc_url( get_template_directory_uri() . '/images/slider/4.jpg' ),
     216            ),
     217
     218            'nav_menus' => array(
     219
     220                // Assign a menu to the "primary" location.
     221                'primary' => array(
     222                    'name' => __( 'Primary Menu', 'motospeed' ),
     223                    'items' => array(
     224                        'link_home',
     225                        'page_blog',
     226                        'page_contact',
     227                        'page_about',
     228                    ),
     229                ),
     230
     231                // Assign a menu to the "footer" location.
     232                'footer' => array(
     233                    'name' => __( 'Footer Menu', 'motospeed' ),
     234                    'items' => array(
     235                        'link_home',
     236                        'page_about',
     237                        'page_blog',
     238                        'page_contact',
     239                    ),
     240                ),
     241            ),
     242        );
     243
     244        $starter_content = apply_filters( 'motospeed_starter_content', $starter_content );
     245        add_theme_support( 'starter-content', $starter_content );
    158246    }
    159247endif; // motospeed_setup
  • motospeed/1.3.0/readme.txt

    r142737 r143444  
    33Tags: blog, entertainment, two-columns, right-sidebar, custom-logo, custom-background, custom-header, custom-menu, threaded-comments, translation-ready, sticky-post, theme-options, footer-widgets
    44Tested up to: 5.6
    5 Stable tag: 1.1.1
     5Stable tag: 1.3.0
    66Requires PHP: 5.6
    77Requires at least: 5.3
     
    4242
    4343== Changelog ==
     44
     45= 1.3.0 =
     46* add starter content
    4447
    4548= 1.2.9 =
  • motospeed/1.3.0/style.css

    r142737 r143444  
    55Author URI: https://customizablethemes.com
    66Theme URI: https://customizablethemes.com/product/motospeed/
    7 Version: 1.2.9
     7Version: 1.3.0
    88Text Domain: motospeed
    99Tags: blog, entertainment, two-columns, right-sidebar, custom-logo, custom-background, custom-header, custom-menu, threaded-comments, translation-ready, sticky-post, theme-options, footer-widgets
Note: See TracChangeset for help on using the changeset viewer.