Changeset 2155669
- Timestamp:
- 09/12/2019 05:23:17 PM (6 years ago)
- Location:
- maester-toolkit
- Files:
-
- 37 added
- 4 edited
-
tags/1.0.7 (added)
-
tags/1.0.7/LICENSE.txt (added)
-
tags/1.0.7/README.txt (added)
-
tags/1.0.7/assets (added)
-
tags/1.0.7/assets/css (added)
-
tags/1.0.7/assets/css/main.css (added)
-
tags/1.0.7/assets/css/main.css.map (added)
-
tags/1.0.7/assets/css/main.min.css (added)
-
tags/1.0.7/assets/css/main.min.css.map (added)
-
tags/1.0.7/assets/img (added)
-
tags/1.0.7/assets/img/category.jpg (added)
-
tags/1.0.7/assets/img/course.jpg (added)
-
tags/1.0.7/assets/img/customizer-features (added)
-
tags/1.0.7/assets/img/customizer-features/disable-developer-credits.jpg (added)
-
tags/1.0.7/assets/js (added)
-
tags/1.0.7/assets/js/ajax-login-script.js (added)
-
tags/1.0.7/assets/js/main.js (added)
-
tags/1.0.7/assets/scss (added)
-
tags/1.0.7/assets/scss/_course-category.scss (added)
-
tags/1.0.7/assets/scss/_courses.scss (added)
-
tags/1.0.7/assets/scss/_mixin.scss (added)
-
tags/1.0.7/assets/scss/main.scss (added)
-
tags/1.0.7/elementor-addons (added)
-
tags/1.0.7/elementor-addons/elementor.php (added)
-
tags/1.0.7/elementor-addons/maester-category.php (added)
-
tags/1.0.7/elementor-addons/maester-courses.php (added)
-
tags/1.0.7/gulpfile.js (added)
-
tags/1.0.7/inc (added)
-
tags/1.0.7/inc/maester-toolkit-helper.php (added)
-
tags/1.0.7/inc/maester-toolkit-login-forms.php (added)
-
tags/1.0.7/inc/maester-toolkit-login.php (added)
-
tags/1.0.7/inc/maester-toolkit-options.php (added)
-
tags/1.0.7/inc/maester-toolkit-register.php (added)
-
tags/1.0.7/inc/maester-toolkit-shortcode.php (added)
-
tags/1.0.7/inc/maester-toolkit-taxonomy.php (added)
-
tags/1.0.7/inc/maester-toolkit-template-functions.php (added)
-
tags/1.0.7/maester-toolkit.php (added)
-
trunk/README.txt (modified) (1 diff)
-
trunk/inc/maester-toolkit-helper.php (modified) (1 diff)
-
trunk/inc/maester-toolkit-template-functions.php (modified) (5 diffs)
-
trunk/maester-toolkit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
maester-toolkit/trunk/README.txt
r2126101 r2155669 5 5 Requires at least: 4.3 6 6 Tested up to: 5.0.0 7 Stable tag: 1.0.17 Stable tag: trunk 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
maester-toolkit/trunk/inc/maester-toolkit-helper.php
r2126964 r2155669 107 107 } 108 108 } 109 110 111 /** 112 * Get Post Types for header search 113 * @param $post_type 114 * @return string 115 */ 116 function maester_toolkit_get_search_category_slug_by_post_type($post_type = 'post'){ 117 if(function_exists('tutor') && tutor()->course_post_type == $post_type){ 118 return 'course-category'; 119 }elseif(function_exists('WC') && 'product' == $post_type){ 120 return 'product_cat'; 121 }elseif('post' == $post_type){ 122 return 'category'; 123 }else{ 124 return false; 125 } 126 } 127 128 129 130 131 if ( ! function_exists( 'maester_toolkit_header_cart' ) ) { 132 /** 133 * Display Header Cart 134 * 135 * @since 1.0.0 136 * @uses maester_lite_is_woocommerce_activated() check if WooCommerce is activated 137 * @return void 138 */ 139 function maester_toolkit_header_cart() { 140 if ( maester_lite_is_woocommerce_activated() ) { 141 if ( is_cart() ) { 142 $class = 'current-menu-item'; 143 } else { 144 $class = ''; 145 } 146 ob_start(); 147 ?> 148 <ul id="site-header-cart" class="site-header-cart menu"> 149 <li class="<?php echo esc_attr( $class ); ?>"> 150 <?php maester_lite_cart_link(); ?> 151 </li> 152 <li> 153 <?php the_widget( 'WC_Widget_Cart', 'title=' ); ?> 154 </li> 155 </ul> 156 <?php 157 return ob_get_clean(); 158 } 159 } 160 } -
maester-toolkit/trunk/inc/maester-toolkit-template-functions.php
r2126964 r2155669 70 70 <li class="header-cart-menu"> 71 71 <div class="cart-menu-parent"> 72 <?php echo maester_ header_cart(); ?><i class="fas fa-shopping-basket"></i>72 <?php echo maester_toolkit_header_cart(); ?><i class="fas fa-shopping-basket"></i> 73 73 </div> 74 74 </li> … … 105 105 } 106 106 107 add_action('maester_ menubar_item_hook', 'maester_menubar_right_icons');107 add_action('maester_lite_menubar_item_hook', 'maester_menubar_right_icons'); 108 108 109 109 … … 120 120 'placeholder' => __('Search anything...', 'maester-toolkit'), 121 121 'post_type' => $post_type, 122 'taxonomy' => maester_ get_search_category_slug_by_post_type($post_type)122 'taxonomy' => maester_toolkit_get_search_category_slug_by_post_type($post_type) 123 123 ); 124 124 125 $cat_list = maester_ category_list($values['taxonomy']);125 $cat_list = maester_toolkit_category_list($values['taxonomy']); 126 126 if($en_search) { 127 127 ?> … … 146 146 } 147 147 148 add_action('maester_ header_item_hook', 'maester_toolkit_search_shortcode');148 add_action('maester_lite_header_item_hook', 'maester_toolkit_search_shortcode'); 149 149 150 150 … … 240 240 } 241 241 } 242 243 244 /** 245 * Filter the except length to 150 words. 246 * 247 * @param int $length Excerpt length. 248 * @return int (Maybe) modified excerpt length. 249 */ 250 function maester_toolkit_custom_excerpt_length( $length ) { 251 $maester_toolkit_excerpt_lenght = get_theme_mod('maester_excerpt_length', 25); 252 return $maester_toolkit_excerpt_lenght; 253 } 254 255 add_filter( 'excerpt_length', 'maester_toolkit_custom_excerpt_length', 999 ); -
maester-toolkit/trunk/maester-toolkit.php
r2135849 r2155669 6 6 Description: An essential toolkit plugin for Maester Theme 7 7 Author: feehatheme 8 Version: 1.0. 68 Version: 1.0.7 9 9 Author URI: https://feeha.net 10 10 Requires at least: 4.5
Note: See TracChangeset
for help on using the changeset viewer.