Changeset 178705
- Timestamp:
- 11/01/2022 03:13:46 PM (3 years ago)
- Location:
- limeasyblog/1.0.4
- Files:
- 8 added
- 1 deleted
- 6 edited
- 1 copied
- . (copied) (copied from limeasyblog/1.0.3)
- assets/styles/style/blu-retro (added)
- assets/styles/style/blu-retro/styles.css (added)
- assets/styles/style/grand-retro (added)
- assets/styles/style/grand-retro/styles.css (added)
- assets/styles/style/styles.css (deleted)
- functions.php (modified) (2 diffs)
- header.php (modified) (1 diff)
- inc/customizer.php (modified) (2 diffs)
- inc/template-functions.php (modified) (1 diff)
- languages (added)
- languages/en_EN.mo (added)
- languages/en_EN.po (added)
- languages/limeasyblog.pot (added)
- readme.txt (modified) (1 diff)
- style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
limeasyblog/1.0.4/functions.php
r177066 r178705 10 10 if ( ! defined( 'LIMEASYBLOG_VERSION' ) ) { 11 11 // Replace the version number of the theme on each release. 12 define( 'LIMEASYBLOG_VERSION', '1.0.3' ); 13 } 14 15 if ( ! defined( 'LIMEASYBLOG_TEMPLATE_DIRECTORY_URI' ) ) { 16 define( 'LIMEASYBLOG_TEMPLATE_DIRECTORY_URI', is_child_theme() ? get_theme_file_path() : get_template_directory_uri() ); 12 define( 'LIMEASYBLOG_VERSION', '1.0.4' ); 13 } 14 15 if ( ! defined( 'LIMEASYBLOG_DEFAULT_THEME_STYLE' ) ) { 16 // Default theme style. 17 define( 'LIMEASYBLOG_DEFAULT_THEME_STYLE', 'grand-retro' ); 18 } 19 20 if ( ! defined( 'limeasyblog_TEMPLATE_DIRECTORY_URI' ) ) { 21 define( 'limeasyblog_TEMPLATE_DIRECTORY_URI', is_child_theme() ? get_theme_file_path() : get_template_directory_uri() ); 17 22 } 18 23 โฆ โฆ 219 224 wp_enqueue_script( 'comment-reply' ); 220 225 } 221 222 wp_enqueue_style( 'limeasyblog-structure', get_template_directory_uri() . '/assets/styles/structure/structure.css', array(), LIMEASYBLOG_VERSION );223 wp_enqueue_style( 'limeasyblog-styles', get_template_directory_uri() . '/assets/styles/style/styles.css', array(), LIMEASYBLOG_VERSION);226 227 // enqueue theme style 228 limeasyblog_enqueue_theme_style(); 224 229 225 230 wp_enqueue_script( 'limeasyblog-scripts', get_template_directory_uri() . '/assets/js/functions.js', array('jquery'), LIMEASYBLOG_VERSION, true ); limeasyblog/1.0.4/header.php
r174650 r178705 22 22 </head> 23 23 24 <body <?php body_class( 'grand-retro'); ?>>24 <body <?php body_class( limeasyblog_get_body_class() ); ?>> 25 25 <?php wp_body_open(); ?> 26 26 <div id="page" class="site"> limeasyblog/1.0.4/inc/customizer.php
r177066 r178705 32 32 ); 33 33 } 34 35 // theme settings section 36 $wp_customize->add_section( 37 'limeasyblog_theme_setings_section', 38 array( 39 'title' => __( 'Theme settings', 'limeasyblog' ), 40 'priority' => 30, 41 ) 42 ); 43 44 $wp_customize->add_setting( 45 'limeasyblog_theme_setting_design', 46 array( 47 'capability' => 'edit_theme_options', 48 'sanitize_callback' => 'limeasyblog_sanitize_select', 49 'default' => 'grand-retro', 50 ) 51 ); 52 53 $wp_customize->add_control( 54 'limeasyblog_theme_setting_design', 55 array( 56 'type' => 'select', 57 'section' => 'limeasyblog_theme_setings_section', 58 'label' => __( 'Design', 'limeasyblog' ), 59 'description' => __( 'Select theme design', 'limeasyblog' ), 60 'choices' => array( 61 'grand-retro' => 'Grand Retro', 62 'blu-retro' => 'BluRetro', 63 ), 64 ) 65 ); 34 66 } 35 67 add_action( 'customize_register', 'limeasyblog_customize_register' ); โฆ โฆ 54 86 55 87 /** 88 * Sanitize select. 89 * 90 * @return mixed 91 */ 92 function limeasyblog_sanitize_select( $input, $setting ) { 93 94 // Ensure input is a slug. 95 $input = sanitize_key( $input ); 96 97 // Get list of choices from the control associated with the setting. 98 $choices = $setting->manager->get_control( $setting->id )->choices; 99 100 // If the input is a valid key, return it; otherwise, return the default. 101 return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); 102 } 103 104 /** 56 105 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 57 106 */ limeasyblog/1.0.4/inc/template-functions.php
r173560 r178705 36 36 } 37 37 add_action( 'wp_head', 'limeasyblog_pingback_header' ); 38 39 /** 40 * Get body classes 41 */ 42 if ( ! function_exists( 'limeasyblog_get_body_class' ) ) : 43 44 function limeasyblog_get_body_class() { 45 46 $design = get_theme_mod( 'limeasyblog_theme_setting_design' ); 47 $design = $design ? $design : LIMEASYBLOG_DEFAULT_THEME_STYLE; 48 49 switch ( $design ) { 50 case 'grand-retro': 51 $class = '_ulmt__grand-retro'; 52 break; 53 case 'blu-retro': 54 $class = '_ulmt__dos-theme'; 55 break; 56 default: 57 $class = $design; 58 } 59 60 return $class; 61 } 62 endif; 63 64 /** 65 * Enqueue theme styles 66 */ 67 if ( ! function_exists( 'limeasyblog_enqueue_theme_style' ) ) : 68 69 function limeasyblog_enqueue_theme_style() { 70 71 $style = get_theme_mod( 'limeasyblog_theme_setting_design' ); 72 $style = $style ? $style : LIMEASYBLOG_DEFAULT_THEME_STYLE; 73 74 wp_enqueue_style( 'limeasyblog-structure', get_template_directory_uri() . '/assets/styles/structure/structure.css', array(), LIMEASYBLOG_VERSION ); 75 wp_enqueue_style( "limeasyblog-styles-$style", get_template_directory_uri() . "/assets/styles/style/$style/styles.css", array(), LIMEASYBLOG_VERSION ); 76 } 77 endif; limeasyblog/1.0.4/readme.txt
r176625 r178705 1 1 === LimeasyBlog === 2 2 Contributors: unlimiTheme 3 Tags: custom-logo, custom-menu, featured-images, right-sidebar, blog 3 Tags: custom-logo, custom-menu, featured-images, right-sidebar, blog, translation ready, accessibility ready, theme options, sticky post 4 4 Tested up to: 6.0.2 5 5 Stable tag: trunk limeasyblog/1.0.4/style.css
r177066 r178705 5 5 Author URI: 6 6 Description: LimeasyBlog is a super fast theme perfect for blogs. LimeasyBlog is created with a minimalist design. Easily use with all the page builders you like. 7 Version: 1.0. 37 Version: 1.0.4 8 8 Tested up to: 6.0.2 9 9 Requires PHP: 5.6 โฆ โฆ 11 11 License URI: LICENSE 12 12 Text Domain: limeasyblog 13 Tags: custom-logo, custom-menu, featured-images, right-sidebar, blog 13 Tags: custom-logo, custom-menu, featured-images, right-sidebar, blog, translation ready, accessibility ready, theme options, sticky post 14 14 15 15 This theme, like WordPress, is licensed under the GPL.
Note: See TracChangeset for help on using the changeset viewer.