Plugin Directory

Changeset 2047257


Ignore:
Timestamp:
03/09/2019 06:25:27 PM (7 years ago)
Author:
themecentury
Message:

error fixed

Location:
century-toolkit/trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • century-toolkit/trunk/century-toolkit.php

    r2046367 r2047257  
    3535 * @return ThemeCentury_Demo_Importer
    3636 */
    37 function MG() {
     37function century_toolkit() {
    3838    return ThemeCentury_Demo_Importer::instance();
    3939}
    4040
    4141// Global for backwards compatibility.
    42 $GLOBALS['century-toolkit'] = MG();
     42$GLOBALS['century-toolkit'] = century_toolkit();
  • century-toolkit/trunk/includes/admin/class-tcy-admin-demo-config.php

    r2046367 r2047257  
    4343    private function supported_themes(){
    4444
    45         $supported_themes = apply_filters( 'century_toolkit_supported_themes', array() );
     45        $demo_support =array(
     46
     47            'newspaper_lite' => array(
     48                'theme_name' => 'Newspaper Lite',
     49                'demo_class' => 'TCY_Theme_Demo_Newspaper_Lite',
     50            ),
     51            'newspaper_plus' => array(
     52                'theme_name' => 'Newspaper Plus',
     53                'demo_class' => 'TCY_Theme_Demo_Newspaper_Plus',
     54            )
     55        );
     56
     57        $supported_themes = apply_filters( 'century_toolkit_supported_themes', $demo_support );
    4658       
    4759        return $supported_themes;
  • century-toolkit/trunk/includes/class-tcy-main.php

    r2046367 r2047257  
    307307        // Enqueue the scripts only on the plugin page.
    308308        if ( $this->plugin_page === $hook ) {
    309             wp_enqueue_script( 'mg-main-js', MG()->plugin_url() . '/assets/js/main.js', array(
     309            wp_enqueue_script( 'mg-main-js', century_toolkit()->plugin_url() . '/assets/js/main.js', array(
    310310                'jquery',
    311311                'jquery-form'
     
    323323            );
    324324
    325             wp_enqueue_style( 'mg-main-css', MG()->plugin_url() . '/assets/css/main.css', array(), TCY_VERSION );
     325            wp_enqueue_style( 'mg-main-css', century_toolkit()->plugin_url() . '/assets/css/main.css', array(), TCY_VERSION );
    326326        }
    327327    }
Note: See TracChangeset for help on using the changeset viewer.