Changeset 3474222
- Timestamp:
- 03/04/2026 06:34:42 AM (4 weeks ago)
- Location:
- infility-global/trunk
- Files:
-
- 4 edited
-
infility_global.php (modified) (2 diffs)
-
widgets/elementor-tab/elementor-tab.php (modified) (2 diffs)
-
widgets/elementor-tab/includes/widgets/elementor_nav_posts.php (modified) (3 diffs)
-
widgets/elementor-tab/js/elementor_nav_posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
infility-global/trunk/infility_global.php
r3468303 r3474222 4 4 Plugin URI: https://www.infility.cn/ 5 5 Description: Infility公共插件 6 Version: 2.14.5 46 Version: 2.14.55 7 7 Author: Infility 8 8 Author URI: https://www.infility.cn/ … … 147 147 function __construct() 148 148 { 149 define( 'INFILITY_GLOBAL_VERSION', '2.14.5 4' );149 define( 'INFILITY_GLOBAL_VERSION', '2.14.55' ); 150 150 define( 'INFILITY_GLOBAL_PATH', plugin_dir_path( __FILE__ ) ); // fullpath/wp-content/plugins/infility-global/ // 有斜杠 151 151 define( 'INFILITY_GLOBAL_URL', plugins_url( '/', __FILE__ ) ); // https://the_domain/wp-content/plugins/infility-global/ // 斜杠是自己加的 -
infility-global/trunk/widgets/elementor-tab/elementor-tab.php
r3458821 r3474222 107 107 108 108 $is_curr_post = isset($_POST['is_curr_post']) ? sanitize_text_field($_POST['is_curr_post']) : 'no'; 109 $show_all_categories = isset($_POST['show_all_categories']) ? sanitize_text_field($_POST['show_all_categories']) : 'yes'; 109 110 $current_post_id = isset($_POST['current_post_id']) ? intval($_POST['current_post_id']) : 0; 110 111 $current_term_id = isset($_POST['current_term_id']) ? intval($_POST['current_term_id']) : 0; … … 139 140 } 140 141 141 if ($ is_curr_post === 'yes') {142 if ($show_all_categories !== 'yes') { 142 143 $current_category_id = 0; 143 144 if ($current_term_id) { -
infility-global/trunk/widgets/elementor-tab/includes/widgets/elementor_nav_posts.php
r3458821 r3474222 158 158 ); 159 159 160 $this->add_control( 161 'show_all_categories', 162 [ 163 'label' => '是否显示所有分类列表', 164 'type' => \Elementor\Controls_Manager::SWITCHER, 165 'default' => 'yes', 166 'label_on' => '是', 167 'label_off' => '否', 168 'description' => '如果选是,则显示所有分类和它们的子分类,如果选否则只显示当前分类和当前分类的子分类', 169 ] 170 ); 171 172 160 173 $this->add_control( 161 174 'show_hierarchical', … … 955 968 show_excerpt: '{{{ settings.show_excerpt }}}', 956 969 show_date: '{{{ settings.show_date }}}', 957 show_category: '{{{ settings.show_category }}}' 970 show_category: '{{{ settings.show_category }}}', 971 show_all_categories: '{{{ settings.show_all_categories }}}' 958 972 }; 959 973 … … 1083 1097 show_category: '<?php echo esc_js($settings['show_category']); ?>', 1084 1098 is_curr_post: '<?php echo esc_js($settings['is_curr_post']); ?>', 1099 show_all_categories: '<?php echo esc_js($settings['show_all_categories']); ?>', 1085 1100 current_post_id: '<?php echo get_the_ID(); ?>', 1086 1101 current_term_id: '<?php echo (is_category() || is_tax() || is_tag()) ? get_queried_object_id() : ""; ?>' -
infility-global/trunk/widgets/elementor-tab/js/elementor_nav_posts.js
r3458821 r3474222 531 531 custom_taxonomy: settings.custom_taxonomy, 532 532 is_curr_post: settings.is_curr_post, 533 show_all_categories: settings.show_all_categories, 533 534 current_post_id: settings.current_post_id, 534 535 current_term_id: settings.current_term_id,
Note: See TracChangeset
for help on using the changeset viewer.