Changeset 2047257
- Timestamp:
- 03/09/2019 06:25:27 PM (7 years ago)
- Location:
- century-toolkit/trunk
- Files:
-
- 4 added
- 3 edited
-
century-toolkit.php (modified) (1 diff)
-
includes/admin/class-tcy-admin-demo-config.php (modified) (1 diff)
-
includes/class-tcy-main.php (modified) (2 diffs)
-
includes/theme-demo (added)
-
includes/theme-demo/class-tcy-theme-demo-newspaper-lite.php (added)
-
includes/theme-demo/class-tcy-theme-demo-newspaper-plus.php (added)
-
package-lock.json (added)
Legend:
- Unmodified
- Added
- Removed
-
century-toolkit/trunk/century-toolkit.php
r2046367 r2047257 35 35 * @return ThemeCentury_Demo_Importer 36 36 */ 37 function MG() {37 function century_toolkit() { 38 38 return ThemeCentury_Demo_Importer::instance(); 39 39 } 40 40 41 41 // 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 43 43 private function supported_themes(){ 44 44 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 ); 46 58 47 59 return $supported_themes; -
century-toolkit/trunk/includes/class-tcy-main.php
r2046367 r2047257 307 307 // Enqueue the scripts only on the plugin page. 308 308 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( 310 310 'jquery', 311 311 'jquery-form' … … 323 323 ); 324 324 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 ); 326 326 } 327 327 }
Note: See TracChangeset
for help on using the changeset viewer.