Changeset 3220786
- Timestamp:
- 01/11/2025 05:05:56 PM (2 months ago)
- Location:
- unlimited-theme-addons/trunk
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
unlimited-theme-addons/trunk/inc/addons/uta-template-shortcode/uta-template-shortcode.php
r2700168 r3220786 36 36 /** 37 37 * Register Custom Post 38 * 38 * 39 39 * Register custo post type for template shortcode which allow to get shortcode each created item. 40 40 * … … 82 82 /** 83 83 * Add elementor support. 84 * 84 * 85 85 * Add elementor support for template post type. 86 86 * … … 92 92 } 93 93 94 94 95 95 /** 96 96 * Custom post type column. 97 * 97 * 98 98 * Add column in custom post type. 99 99 * … … 108 108 /** 109 109 * Custom column content 110 * 111 * Add content for cus otm column in shortcode.110 * 111 * Add content for custom column in shortcode. 112 112 * 113 113 * @param string $column_name … … 116 116 */ 117 117 public function uta_template_shortcode_column_content( $column_name, $post_ID ) { 118 119 if ( 'uta-template-shortcode' == $column_name ) { 120 echo esc_html('[uta-template id="' . $post_ID . '"]'); 118 // Check user permissions 119 if ( 'uta-template-shortcode' === $column_name ) { 120 if ( current_user_can( 'edit_others_posts', $post_ID ) ) { // Allow only users who can edit this post 121 echo esc_html( '[uta-template id="' . intval( $post_ID ) . '"]' ); 122 } else { 123 // Optionally display a placeholder or message for unauthorized users 124 echo esc_html__( 'Restricted', 'unlimited-theme-addons' ); 125 } 121 126 } 122 127 } … … 125 130 /** 126 131 * Custom post type column. 127 * 132 * 128 133 * Add column in custom post type. 129 134 * … … 138 143 /** 139 144 * Custom column content 140 * 145 * 141 146 * Add content for cusotm column in shortcode. 142 147 * … … 147 152 public function manage_elementor_library_posts_custom_column_content( $column_name, $post_ID ) { 148 153 if ( 'uta-template-shortcode' == $column_name ) { 149 154 if ( ! current_user_can( 'edit_others_posts', $post_ID ) ) { 155 echo esc_html__( 'Restricted', 'unlimited-theme-addons' ); 156 return; 157 } 150 158 echo esc_html('[uta-template id="' . $post_ID . '"]'); 151 159 } … … 155 163 /** 156 164 * Render shortcode content 157 * 165 * 158 166 * Get page content by applying shortcode. 159 167 * 160 168 * @param [type] $atts 161 * @return void169 * @return string 162 170 */ 163 171 public function uta_template_render_shortcode( $atts ) { … … 191 199 if ( ! empty($the_content) ) { 192 200 $response = $the_content; 193 } 201 } 194 202 } 195 203 … … 201 209 /** 202 210 * Add shortcode box inside the page. 203 * 211 * 204 212 * Shortcode for inside the page so that user can get PHP or normal shortcode. 205 213 * … … 207 215 */ 208 216 public function uta_template_add_meta_boxes(){ 209 add_meta_box('uta-shortcode-box','Unlimited Theme Addons Template Shortcode',[ $this, 'uta_template_add_meta_boxes_content' ],'uta_template','side','high'); 217 add_meta_box('uta-shortcode-box','Unlimited Theme Addons Template Shortcode',[ $this, 'uta_template_add_meta_boxes_content' ],'uta_template','side','high'); 210 218 } 211 219 … … 214 222 /** 215 223 * Shortcode box content 216 * 224 * 217 225 * Add content for shortcode box inside the custom post type pages. 218 226 * … … 221 229 */ 222 230 function uta_template_add_meta_boxes_content( $post ) { ?> 223 <h4 style="margin-bottom:5px;"> Shortcode</h4>231 <h4 style="margin-bottom:5px;"><?php esc_html_e('Shortcode', 'unlimited-theme-addons');?></h4> 224 232 <input type='text' class='widefat' value='[uta-template id="<?php echo esc_attr($post->ID); ?>"]' readonly=""> 225 226 <h4 style="margin-bottom:5px;"> PHP Code</h4>233 234 <h4 style="margin-bottom:5px;"><?php esc_html_e('PHP Code', 'unlimited-theme-addons');?></h4> 227 235 <input type='text' class='widefat' value="<?php echo do_shortcode('[uta-template id="<?php echo esc_attr($post->ID); ?>"]'); ?>" readonly=""> 228 236 <?php -
unlimited-theme-addons/trunk/inc/codepopular-promotion.php
r3195449 r3220786 28 28 $data = json_decode(wp_remote_retrieve_body($response), true); 29 29 30 if (isset($data['active']) && $data['active'] === 'yes'){ 31 ?> 32 <div class="codepopular-pro-widget"> 33 <a href="<?php echo esc_url($data['link']);?>?utm_source=uta_dashboard_feed_banner" target="_blank"> 34 <img src="<?php echo esc_url($data['square_banner'])?>" alt="CodePopular" style="width: 100%;"/> 35 </a> 36 </div> 37 <?php 38 } 30 if ( isset( $data['active'] ) && $data['active'] === 'yes' ) { 31 // Get the attachment ID from the image URL 32 $image_url = esc_url( $data['square_banner'] ); 33 $attachment_id = attachment_url_to_postid( $image_url ); 34 35 if ( $attachment_id ) { 36 ?> 37 <div class="codepopular-pro-widget"> 38 <a href="<?php echo esc_url( $data['link'] ); ?>?utm_source=uta_dashboard_feed_banner" target="_blank"> 39 <?php echo wp_get_attachment_image( $attachment_id, 'full', false, array( 'alt' => 'CodePopular', 'style' => 'width: 100%;' ) ); ?> 40 </a> 41 </div> 42 <?php 43 } 44 } 45 39 46 40 47 // Enter the name of your blog here followed by /wp-json/wp/v2/posts and add filters like this one that limits the result to 2 posts. -
unlimited-theme-addons/trunk/inc/elementor/elementor.php
r3027786 r3220786 23 23 'uta-elements', 24 24 [ 25 'title' => esc_html__(' utaElements', 'unlimited-theme-addons'),25 'title' => esc_html__('UTA Elements', 'unlimited-theme-addons'), 26 26 'icon' => 'fa fa-plug', 27 27 ] … … 104 104 ); 105 105 106 // Accordion. 106 // Accordion. 107 107 wp_register_style( 108 108 'uta-accordion', … … 129 129 130 130 131 // Counter Up. 131 // Counter Up. 132 132 wp_register_style( 133 133 'uta-odometer', … … 138 138 139 139 140 // Counter Up. 140 // Counter Up. 141 141 wp_register_style( 142 142 'uta-counter-up', … … 146 146 ); 147 147 148 149 150 // Infobox. 148 149 150 // Infobox. 151 151 wp_register_style( 152 152 'uta-infobox', … … 156 156 ); 157 157 158 // Post. 158 // Post. 159 159 wp_register_style( 160 160 'uta-blog', … … 164 164 ); 165 165 166 // Pricing. 166 // Pricing. 167 167 wp_register_style( 168 168 'uta-pricing', … … 172 172 ); 173 173 174 // Product Grid. 174 // Product Grid. 175 175 wp_register_style( 176 176 'uta-product-grid', … … 180 180 ); 181 181 182 // Product List. 182 // Product List. 183 183 wp_register_style( 184 184 'uta-product-list', … … 188 188 ); 189 189 190 // Search. 190 // Search. 191 191 wp_register_style( 192 192 'uta-product-search', … … 196 196 ); 197 197 198 // Tab. 198 // Tab. 199 199 wp_register_style( 200 200 'uta-tab', … … 204 204 ); 205 205 206 // Team. 206 // Team. 207 207 wp_register_style( 208 208 'uta-team', … … 212 212 ); 213 213 214 // Testimonial. 214 // Testimonial. 215 215 wp_register_style( 216 216 'uta-testimonial', … … 220 220 ); 221 221 222 // Section Title. 222 // Section Title. 223 223 wp_register_style( 224 224 'uta-title', … … 228 228 ); 229 229 230 // Video. 230 // Video. 231 231 wp_register_style( 232 232 'uta-video', … … 474 474 if ( array_key_exists('blockquote', $widget_list) && 'off' !== $widget_list['blockquote'] || empty($widget_list['blockquote']) ) { 475 475 include_once(UTA_PLUGIN_PATH . 'inc/elementor/widgets/blockquote/Uta_Blockquote.php'); 476 } 477 }476 } 477 } 478 478 } 479 479 -
unlimited-theme-addons/trunk/inc/elementor/widgets/accordion/Uta_Accordion.php
r2715336 r3220786 26 26 /** 27 27 * Widget CSS. 28 * 28 * 29 29 * @return string 30 30 */ … … 38 38 /** 39 39 * Widget script. 40 * 40 * 41 41 * @return string 42 42 */ … … 728 728 break; 729 729 730 case 'image': 731 // $image_url = Group_Control_Image_Size::get_attachment_image_src( $acc_tab['image']['id'], null, $acc_tab ); 732 733 // if ( ! $image_url ) { 734 $image_url = $acc_tab['image']['url']; 735 // } 736 737 $image_html = '<div class="uta-accordion-image">'; 738 739 $image_html .= '<img src="' . esc_url( $image_url ) . '" alt="' . esc_attr( Control_Media::get_image_alt( $acc_tab['image'] ) ) . '">'; 740 741 $image_html .= '</div>'; 742 743 $output = $image_html; 744 break; 730 case 'image': 731 // Get the attachment ID for the image URL 732 $attachment_id = attachment_url_to_postid($acc_tab['image']['url']); 733 734 // Use wp_get_attachment_image() to output the image 735 $image_html = '<div class="uta-accordion-image">'; 736 737 // Use wp_get_attachment_image() to display the image 738 $image_html .= wp_get_attachment_image($attachment_id, 'full', false, array( 739 'alt' => esc_attr(Control_Media::get_image_alt($acc_tab['image'])), 740 )); 741 742 $image_html .= '</div>'; 743 744 $output = $image_html; 745 break; 746 745 747 746 748 case 'section': … … 763 765 } 764 766 765 767 766 768 767 769 … … 770 772 */ 771 773 protected function render( $instance = [] ) { 772 774 773 775 // get our input from the widget settings. 774 776 775 777 $settings = $this->get_settings_for_display(); 776 778 … … 785 787 786 788 } 787 789 788 790 } 789 791 -
unlimited-theme-addons/trunk/inc/elementor/widgets/accordion/template/layout-1.php
r2696843 r3220786 1 <?php 2 3 ?> -
unlimited-theme-addons/trunk/inc/elementor/widgets/blockquote/Uta_Blockquote.php
r2715336 r3220786 214 214 'name' => 'blockquote_typography', 215 215 'label' => __('Typography', 'unlimited-theme-addons'), 216 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,217 216 'selector' => '{{WRAPPER}} .uta-blockquote p', 218 217 ] -
unlimited-theme-addons/trunk/inc/elementor/widgets/blockquote/template/style-1.php
r2696843 r3220786 1 1 <?php 2 ?> 2 3 <div class="uta-blockquote uta-quote-default"> 3 4 Coming Soon 4 5 </div> 6 <?php 7 ?> -
unlimited-theme-addons/trunk/inc/elementor/widgets/blockquote/template/style-2.php
r2696843 r3220786 1 1 <?php 2 ?> 2 3 <div class="uta-blockquote uta-quote-default"> 3 4 Coming Soon 4 5 </div> 6 <?php 7 ?> -
unlimited-theme-addons/trunk/inc/elementor/widgets/blog/Uta_Blog.php
r2715336 r3220786 146 146 <!-- blog --> 147 147 <div class="uta-blog-item"> 148 <div class="uta-blog-item-img"> 149 <?php if ( has_post_thumbnail() ) : ?> 150 <a href="<?php the_permalink(); ?>"> 151 <img src="<?php echo esc_url(get_the_post_thumbnail_url(get_the_ID(), 'uta-360-200')); ?>" alt="<?php the_title() ?>"> 152 </a> 153 <span><?php the_category(',') ?></span> 154 <?php endif ?> 155 </div> 148 <div class="uta-blog-item-img"> 149 <?php if ( has_post_thumbnail() ) : ?> 150 <a href="<?php the_permalink(); ?>"> 151 <?php 152 // Get the attachment ID for the post thumbnail 153 $attachment_id = get_post_thumbnail_id( get_the_ID() ); 154 155 // Use wp_get_attachment_image() to output the image 156 echo wp_get_attachment_image( $attachment_id, 'uta-360-200', false, array( 157 'alt' => get_the_title(), 158 'class' => 'post-thumbnail', // Optional: Add a class if needed 159 )); 160 ?> 161 </a> 162 <span><?php the_category(', ') ?></span> 163 <?php endif ?> 164 </div> 165 156 166 157 167 <div class="uta-blog-item-content"> -
unlimited-theme-addons/trunk/inc/elementor/widgets/button/Uta_Button.php
r2715336 r3220786 23 23 /** 24 24 * Widget CSS. 25 * 25 * 26 26 * @return string 27 27 */ … … 35 35 /** 36 36 * Widget script. 37 * 38 * @return string37 * 38 * @return array 39 39 */ 40 public function get_script_depends() { 41 $scripts = []; 42 43 return $scripts; 40 public function get_script_depends(): array 41 { 42 return []; 44 43 } 45 44 46 45 47 public function get_keywords() { 46 public function get_keywords(): array 47 { 48 48 return [ 49 49 'button', … … 57 57 } 58 58 59 public function get_categories() { 59 public function get_categories(): array 60 { 60 61 return [ 'uta-elements' ]; 61 62 } … … 68 69 * @return string support URL. 69 70 */ 70 public function get_custom_help_url() { 71 public function get_custom_help_url(): string 72 { 71 73 return 'https://codepopular.com/contact/'; 72 74 } … … 86 88 [ 87 89 'label' => esc_html__('Button Style', 'unlimited-theme-addons'), 88 'type' => \Elementor\Controls_Manager::SELECT,90 'type' => Controls_Manager::SELECT, 89 91 'options' => [ 90 92 'style-default' => esc_html__('Default', 'unlimited-theme-addons'), … … 107 109 [ 108 110 'label' => __('Button Text', 'unlimited-theme-addons'), 109 'type' => \Elementor\Controls_Manager::TEXT,111 'type' => Controls_Manager::TEXT, 110 112 'default' => __('Raed More', 'unlimited-theme-addons'), 111 113 ] … … 116 118 [ 117 119 'label' => __('Icon', 'unlimited-theme-addons'), 118 'type' => \Elementor\Controls_Manager::SWITCHER,120 'type' => Controls_Manager::SWITCHER, 119 121 'label_on' => __('Yes', 'unlimited-theme-addons'), 120 122 'label_off' => __('No', 'unlimited-theme-addons'), … … 141 143 [ 142 144 'label' => __('Button URL', 'unlimited-theme-addons'), 143 'type' => \Elementor\Controls_Manager::TEXT,145 'type' => Controls_Manager::TEXT, 144 146 'default' => '#', 145 147 ] … … 150 152 [ 151 153 'label' => __('Popup Video', 'unlimited-theme-addons'), 152 'type' => \Elementor\Controls_Manager::SWITCHER,154 'type' => Controls_Manager::SWITCHER, 153 155 'label_on' => __('Yes', 'unlimited-theme-addons'), 154 156 'label_off' => __('No', 'unlimited-theme-addons'), … … 162 164 [ 163 165 'label' => __('Alignment', 'unlimited-theme-addons'), 164 'type' => \Elementor\Controls_Manager::CHOOSE,166 'type' => Controls_Manager::CHOOSE, 165 167 'options' => [ 166 168 'left' => [ … … 187 189 [ 188 190 'label' => __('Drop Shadow', 'unlimited-theme-addons'), 189 'type' => \Elementor\Controls_Manager::SWITCHER,191 'type' => Controls_Manager::SWITCHER, 190 192 'label_on' => __('Show', 'unlimited-theme-addons'), 191 193 'label_off' => __('Hide', 'unlimited-theme-addons'), … … 205 207 ) 206 208 ); 207 /* 208 * Padding 209 */ 209 210 // Button padding 210 211 $this->add_responsive_control( 211 212 'uta_button_padding', 212 213 [ 213 214 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 214 'type' => \Elementor\Controls_Manager::DIMENSIONS,215 'type' => Controls_Manager::DIMENSIONS, 215 216 'size_units' => [ 'px', '%', 'em' ], 216 217 'selectors' => [ … … 229 230 ); 230 231 231 // Button Typography Default232 $this->add_group_control(233 Group_Control_Typography::get_type(),234 [235 236 237 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,238 'selector' => '{{WRAPPER}} .uta-btn', 239 'condition' => [ 240 'uta_button_style' => [ 'style-default'],241 ], 242 ]243 ); 232 // Button Typography Default 233 $this->add_group_control( 234 Group_Control_Typography::get_type(), 235 [ 236 'name' => 'uta_button_typography', 237 'label' => __('Typography', 'unlimited-theme-addons'), 238 'selector' => '{{WRAPPER}} .uta-btn', 239 'condition' => [ 240 'uta_button_style' => [ 'style-default' ], 241 ], 242 ] 243 ); 244 244 245 // Button Typography 1 245 246 $this->add_group_control( … … 248 249 'name' => 'uta_button_1_typography', 249 250 'label' => __('Typography', 'unlimited-theme-addons'), 250 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,251 251 'selector' => '{{WRAPPER}} .uta-button-1', 252 252 'condition' => [ … … 261 261 'name' => 'uta_button_2_typography', 262 262 'label' => __('Typography', 'unlimited-theme-addons'), 263 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,264 263 'selector' => '{{WRAPPER}} .uta-button-2', 265 264 'condition' => [ … … 274 273 'name' => 'uta_button_3_typography', 275 274 'label' => __('Typography', 'unlimited-theme-addons'), 276 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,277 275 'selector' => '{{WRAPPER}} .uta-button-3', 278 276 'condition' => [ … … 287 285 'name' => 'uta_button_4_typography', 288 286 'label' => __('Typography', 'unlimited-theme-addons'), 289 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1, 290 'selector' => '{{WRAPPER}} .uta-button-4', 287 'selector' => '{{WRAPPER}} .uta-button-4', 291 288 'condition' => [ 292 289 'uta_button_style' => [ 'style-4' ], … … 300 297 'name' => 'uta_button_5_typography', 301 298 'label' => __('Typography', 'unlimited-theme-addons'), 302 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1, 303 'selector' => '{{WRAPPER}} .uta-button-5', 299 'selector' => '{{WRAPPER}} .uta-button-5', 304 300 'condition' => [ 305 301 'uta_button_style' => [ 'style-5' ], … … 313 309 'name' => 'uta_button_6_typography', 314 310 'label' => __('Typography', 'unlimited-theme-addons'), 315 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,316 311 'selector' => '{{WRAPPER}} .uta-button-6', 317 312 'condition' => [ … … 326 321 'name' => 'uta_button_7_typography', 327 322 'label' => __('Typography', 'unlimited-theme-addons'), 328 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,329 323 'selector' => '{{WRAPPER}} .uta-button-7', 330 324 'condition' => [ … … 339 333 'name' => 'uta_button_8_typography', 340 334 'label' => __('Typography', 'unlimited-theme-addons'), 341 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,342 335 'selector' => '{{WRAPPER}} .uta-button-8', 343 336 'condition' => [ … … 352 345 'name' => 'uta_button_9_typography', 353 346 'label' => __('Typography', 'unlimited-theme-addons'), 354 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,355 347 'selector' => '{{WRAPPER}} .uta-button-9', 356 348 'condition' => [ … … 361 353 362 354 /* 363 * Tab 355 * Tab 364 356 */ 365 357 $this->start_controls_tabs( … … 405 397 ); 406 398 /* 407 * Border 408 */ 409 $this->add_group_control( 410 \Elementor\Group_Control_Border::get_type(),399 * Border 400 */ 401 $this->add_group_control( 402 Group_Control_Border::get_type(), 411 403 [ 412 404 'name' => 'uta_button_item_border', … … 450 442 ); 451 443 /* 452 * Border 453 */ 454 $this->add_group_control( 455 \Elementor\Group_Control_Border::get_type(),444 * Border 445 */ 446 $this->add_group_control( 447 Group_Control_Border::get_type(), 456 448 [ 457 449 'name' => 'uta_button_item1_border', … … 495 487 ); 496 488 /* 497 * Border 498 */ 499 $this->add_group_control( 500 \Elementor\Group_Control_Border::get_type(),489 * Border 490 */ 491 $this->add_group_control( 492 Group_Control_Border::get_type(), 501 493 [ 502 494 'name' => 'uta_button_item2_border', … … 541 533 ); 542 534 /* 543 * Border 544 */ 545 $this->add_group_control( 546 \Elementor\Group_Control_Border::get_type(),535 * Border 536 */ 537 $this->add_group_control( 538 Group_Control_Border::get_type(), 547 539 [ 548 540 'name' => 'uta_button_item3_border', … … 586 578 ); 587 579 /* 588 * Border 589 */ 590 $this->add_group_control( 591 \Elementor\Group_Control_Border::get_type(),580 * Border 581 */ 582 $this->add_group_control( 583 Group_Control_Border::get_type(), 592 584 [ 593 585 'name' => 'uta_button_item4_border', … … 630 622 ); 631 623 /* 632 * Border 633 */ 634 $this->add_group_control( 635 \Elementor\Group_Control_Border::get_type(),624 * Border 625 */ 626 $this->add_group_control( 627 Group_Control_Border::get_type(), 636 628 [ 637 629 'name' => 'uta_button_item5_border', … … 675 667 ); 676 668 /* 677 * Border 678 */ 679 $this->add_group_control( 680 \Elementor\Group_Control_Border::get_type(),669 * Border 670 */ 671 $this->add_group_control( 672 Group_Control_Border::get_type(), 681 673 [ 682 674 'name' => 'uta_button_item6_border', … … 719 711 ); 720 712 /* 721 * Border 722 */ 723 $this->add_group_control( 724 \Elementor\Group_Control_Border::get_type(),713 * Border 714 */ 715 $this->add_group_control( 716 Group_Control_Border::get_type(), 725 717 [ 726 718 'name' => 'uta_button_item7_border', … … 763 755 ); 764 756 /* 765 * Border 766 */ 767 $this->add_group_control( 768 \Elementor\Group_Control_Border::get_type(),757 * Border 758 */ 759 $this->add_group_control( 760 Group_Control_Border::get_type(), 769 761 [ 770 762 'name' => 'uta_button_item8_border', … … 807 799 ); 808 800 /* 809 * Border 810 */ 811 $this->add_group_control( 812 \Elementor\Group_Control_Border::get_type(),801 * Border 802 */ 803 $this->add_group_control( 804 Group_Control_Border::get_type(), 813 805 [ 814 806 'name' => 'uta_button_item9_border', … … 861 853 ); 862 854 /* 863 * Border 864 */ 865 $this->add_group_control( 866 \Elementor\Group_Control_Border::get_type(),855 * Border 856 */ 857 $this->add_group_control( 858 Group_Control_Border::get_type(), 867 859 [ 868 860 'name' => 'uta_button__hover_item_border', … … 906 898 ); 907 899 /* 908 * Border 909 */ 910 $this->add_group_control( 911 \Elementor\Group_Control_Border::get_type(),900 * Border 901 */ 902 $this->add_group_control( 903 Group_Control_Border::get_type(), 912 904 [ 913 905 'name' => 'uta_button_item1hover_border', … … 951 943 ); 952 944 /* 953 * Border 954 */ 955 $this->add_group_control( 956 \Elementor\Group_Control_Border::get_type(),945 * Border 946 */ 947 $this->add_group_control( 948 Group_Control_Border::get_type(), 957 949 [ 958 950 'name' => 'uta_buttonhover_item2_border', … … 997 989 ); 998 990 /* 999 * Border 1000 */ 1001 $this->add_group_control( 1002 \Elementor\Group_Control_Border::get_type(),991 * Border 992 */ 993 $this->add_group_control( 994 Group_Control_Border::get_type(), 1003 995 [ 1004 996 'name' => 'uta_button_item3_hover_border', … … 1042 1034 ); 1043 1035 /* 1044 * Border 1045 */ 1046 $this->add_group_control( 1047 \Elementor\Group_Control_Border::get_type(),1036 * Border 1037 */ 1038 $this->add_group_control( 1039 Group_Control_Border::get_type(), 1048 1040 [ 1049 1041 'name' => 'uta_button_hover_item4_border', … … 1086 1078 ); 1087 1079 /* 1088 * Border 1089 */ 1090 $this->add_group_control( 1091 \Elementor\Group_Control_Border::get_type(),1080 * Border 1081 */ 1082 $this->add_group_control( 1083 Group_Control_Border::get_type(), 1092 1084 [ 1093 1085 'name' => 'uta_button_hover_item5_border', … … 1161 1153 ); 1162 1154 /* 1163 * Border 1164 */ 1165 $this->add_group_control( 1166 \Elementor\Group_Control_Border::get_type(),1155 * Border 1156 */ 1157 $this->add_group_control( 1158 Group_Control_Border::get_type(), 1167 1159 [ 1168 1160 'name' => 'uta_button_hover_item7_border', … … 1205 1197 ); 1206 1198 /* 1207 * Border 1208 */ 1209 $this->add_group_control( 1210 \Elementor\Group_Control_Border::get_type(),1199 * Border 1200 */ 1201 $this->add_group_control( 1202 Group_Control_Border::get_type(), 1211 1203 [ 1212 1204 'name' => 'uta_button_hover_item8_border', … … 1249 1241 ); 1250 1242 /* 1251 * Border 1252 */ 1253 $this->add_group_control( 1254 \Elementor\Group_Control_Border::get_type(),1243 * Border 1244 */ 1245 $this->add_group_control( 1246 Group_Control_Border::get_type(), 1255 1247 [ 1256 1248 'name' => 'uta_button_item9_hover_border', … … 1271 1263 1272 1264 protected function render( $instance = [] ) { 1273 1265 1274 1266 // get our input from the widget settings. 1275 1267 1276 1268 $settings = $this->get_settings_for_display(); 1277 1269 … … 1340 1332 ?> 1341 1333 </div> 1342 1334 1343 1335 1344 1336 <?php 1345 1337 } 1346 1338 1347 1339 } 1348 1340 -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/Uta_Client_Logo.php
r2715336 r3220786 15 15 * @return string 16 16 */ 17 public function get_name() { 17 public function get_name(): string 18 { 18 19 return 'uta-company-logo'; 19 20 } … … 23 24 * @return string 24 25 */ 25 public function get_title() { 26 public function get_title(): string 27 { 26 28 return esc_html__( 'UTA Company Logo', 'unlimited-theme-addons' ); 27 29 } … … 31 33 * @return string 32 34 */ 33 public function get_icon() { 35 public function get_icon(): string 36 { 34 37 return 'eicon-logo'; 35 38 } … … 37 40 /** 38 41 * Widget CSS. 39 * 42 * 40 43 * @return string 41 44 */ 42 45 // public function get_style_depends() { 43 46 // $styles = ['slick-theme', 'slick', 'uta-company-logo']; 44 47 45 48 // return $styles; 46 49 // } 47 50 48 51 /** 49 52 * Widget script. 50 * 51 * @return string 52 */53 public function get_script_depends() {54 $scripts = [ 'uta-slick', 'uta-main' ];55 return $scripts;53 * 54 * @return string[] 55 */ 56 public function get_script_depends(): array 57 { 58 return [ 'uta-slick', 'uta-main' ]; 56 59 } 57 60 … … 60 63 * @return array|string[] 61 64 */ 62 public function get_keywords() { 65 public function get_keywords(): array 66 { 63 67 return [ 64 68 'uta company logo', … … 77 81 * @return array|string[] 78 82 */ 79 public function get_categories() { 83 public function get_categories(): array 84 { 80 85 return [ 'uta-elements' ]; 81 86 } … … 331 336 ); 332 337 /* 333 * Padding 338 * Padding 334 339 */ 335 340 $this->add_control( … … 345 350 ); 346 351 /* 347 * Margin 352 * Margin 348 353 */ 349 354 $this->add_control( … … 359 364 ); 360 365 /* 361 * Border 366 * Border 362 367 */ 363 368 $this->add_group_control( … … 498 503 // Normal Image. 499 504 $uta_company_logo_url = ! empty($logo['uta_company_logo_website_link']['url']) ? $logo['uta_company_logo_website_link']['url'] : ''; 500 $uta_company_logo_alt = \Elementor\Control_Media::get_image_alt($logo['uta_company_logo_image_normal']);505 $uta_company_logo_alt = Control_Media::get_image_alt($logo['uta_company_logo_image_normal']); 501 506 502 507 // Hover Image. 503 508 $uta_company_logo_hover_img = ! empty($logo['uta_company_logo_image_hover']['url']) ? $logo['uta_company_logo_image_hover']['url'] : ''; 504 $uta_company_logo_hover_alt = \Elementor\Control_Media::get_image_alt($logo['uta_company_logo_image_hover']);509 $uta_company_logo_hover_alt = Control_Media::get_image_alt($logo['uta_company_logo_image_hover']); 505 510 506 511 $uta_company_logo_url_is_external = ! empty($logo['uta_company_logo_website_link']['is_external']) && 'on' === $logo['uta_company_logo_website_link']['is_external'] ? '_blank' : ''; 507 512 508 // Company logo style default. 509 if ( 'style-default' === $settings['uta_company_logo_style'] ) { 510 require (__DIR__) . '/template/style-default.php'; 511 } 512 513 // Company logo style 1. 514 if ( 'style-1' === $settings['uta_company_logo_style'] ) { 515 require (__DIR__) . '/template/style-1.php'; 516 } 517 518 // Company logo style 2. 519 if ( 'style-2' === $settings['uta_company_logo_style'] ) { 520 require (__DIR__) . '/template/style-2.php'; 521 } 522 523 // Company logo style 3. 524 if ( 'style-3' === $settings['uta_company_logo_style'] ) { 525 require (__DIR__) . '/template/style-3.php'; 526 } 527 528 // Company logo style 4. 529 if ( 'style-4' === $settings['uta_company_logo_style'] ) { 530 require (__DIR__) . '/template/style-4.php'; 531 } 532 533 // Company logo style 5. 534 if ( 'style-5' === $settings['uta_company_logo_style'] ) { 535 require (__DIR__) . '/template/style-5.php'; 536 } 537 538 // Company logo style 6. 539 if ( 'style-6' === $settings['uta_company_logo_style'] ) { 540 require (__DIR__) . '/template/style-6.php'; 541 } 542 543 // Company logo style 7. 544 if ( 'style-7' === $settings['uta_company_logo_style'] ) { 545 require (__DIR__) . '/template/style-7.php'; 546 } 547 548 // Company logo style 8. 549 if ( 'style-8' === $settings['uta_company_logo_style'] ) { 550 require (__DIR__) . '/template/style-8.php'; 551 } 552 553 554 // Company logo style 9. 555 if ( 'style-9' === $settings['uta_company_logo_style'] ) { 556 require (__DIR__) . '/template/style-9.php'; 557 } 558 559 // Company logo style 10. 560 if ( 'style-10' === $settings['uta_company_logo_style'] ) { 561 require (__DIR__) . '/template/style-10.php'; 562 } 513 // Check if the style setting exists and matches the expected format. 514 $style = $settings['uta_company_logo_style'] ?? ''; 515 $file_path = __DIR__ . '/template/' . $style . '.php'; 516 517 if (preg_match('/^style-(default|\d+)$/', $style) && file_exists($file_path)) { 518 require $file_path; 519 } else { 520 // Optionally handle invalid or missing styles here. 521 // For example, load a default template or log an error. 522 require __DIR__ . '/template/style-default.php'; 523 } 563 524 564 525 endforeach; ?> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-1.php
r2696843 r3220786 1 1 <div class="uta-company-logo-item-single"> 2 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 3 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt); ?>"> 2 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php echo esc_attr($uta_company_logo_url_is_external); ?>"> 3 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 4 <?php 5 // Display the logo using wp_get_attachment_image 6 echo wp_get_attachment_image( 7 $logo['uta_company_logo_image_normal']['id'], // Image ID 8 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 9 false, // No need for the 'icon' argument 10 [ 11 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 12 ] 13 ); 14 ?> 15 <?php endif; ?> 4 16 </a> 5 17 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-10.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 5 </a> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php echo esc_attr($uta_company_logo_url_is_external); ?>"> 4 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 5 <?php 6 // Use wp_get_attachment_image() to display the image 7 echo wp_get_attachment_image( 8 $logo['uta_company_logo_image_normal']['id'], // Image ID 9 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 10 false, // No need for the 'icon' argument 11 [ 12 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 13 ] 14 ); 15 ?> 16 <?php endif; ?> 17 </a> 6 18 </div> 7 19 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-2.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 3 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 4 <?php 5 // Display the normal logo using wp_get_attachment_image 6 echo wp_get_attachment_image( 7 $logo['uta_company_logo_image_normal']['id'], // Image ID 8 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 9 false, // No need for the 'icon' argument 10 [ 11 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 12 ] 13 ); 14 ?> 15 <?php endif; ?> 16 4 17 <a class="uta-partner-overly" href="<?php echo esc_url_raw($uta_company_logo_url);?>"> 5 <img src="<?php echo esc_url($logo['uta_company_logo_image_hover']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_hover_alt);?>"> 18 <?php if ( ! empty( $logo['uta_company_logo_image_hover']['id'] ) ) : ?> 19 <?php 20 // Display the hover logo using wp_get_attachment_image 21 echo wp_get_attachment_image( 22 $logo['uta_company_logo_image_hover']['id'], // Image ID 23 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 24 false, // No need for the 'icon' argument 25 [ 26 'alt' => esc_attr($uta_company_logo_hover_alt), // Alt text for the hover image 27 ] 28 ); 29 ?> 30 <?php endif; ?> 6 31 </a> 7 32 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-3.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 5 </a> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php echo esc_attr($uta_company_logo_url_is_external); ?>"> 4 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 5 <?php 6 // Use wp_get_attachment_image() to properly enqueue the image 7 echo wp_get_attachment_image( 8 $logo['uta_company_logo_image_normal']['id'], // Image ID 9 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 10 false, // No need for the 'icon' argument 11 [ 12 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 13 ] 14 ); 15 ?> 16 <?php endif; ?> 17 </a> 6 18 </div> 7 19 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-4.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 5 </a> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 5 <?php 6 // Use wp_get_attachment_image() to properly enqueue the image 7 echo wp_get_attachment_image( 8 $logo['uta_company_logo_image_normal']['id'], // Image ID 9 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 10 false, // No need for the 'icon' argument 11 [ 12 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 13 ] 14 ); 15 ?> 16 <?php endif; ?> 17 </a> 6 18 </div> 7 19 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-5.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 5 </a> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 5 <?php 6 // Use wp_get_attachment_image() for the normal image 7 echo wp_get_attachment_image( 8 $logo['uta_company_logo_image_normal']['id'], // Image ID 9 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 10 false, // No need for the 'icon' argument 11 [ 12 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 13 ] 14 ); 15 ?> 16 <?php endif; ?> 17 </a> 6 18 </div> 7 19 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-6.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 3 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 4 <?php 5 // Use wp_get_attachment_image() for the normal image 6 echo wp_get_attachment_image( 7 $logo['uta_company_logo_image_normal']['id'], // Image ID 8 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 9 false, // No need for the 'icon' argument 10 [ 11 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 12 ] 13 ); 14 ?> 15 <?php endif; ?> 16 4 17 <div class="overly"> 5 18 <div class="overly-full"> 6 <h2><a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"><?php echo esc_html($logo['uta_company_logo_list_title']);?></a></h2> 19 <h2> 20 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 21 <?php echo esc_html($logo['uta_company_logo_list_title']);?> 22 </a> 23 </h2> 7 24 </div> 8 25 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-7.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 3 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 4 <?php 5 // Use wp_get_attachment_image() for the normal image 6 echo wp_get_attachment_image( 7 $logo['uta_company_logo_image_normal']['id'], // Image ID 8 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 9 false, // No need for the 'icon' argument 10 [ 11 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 12 ] 13 ); 14 ?> 15 <?php endif; ?> 16 4 17 <a class="uta-partner-overly" href="<?php echo esc_url_raw($uta_company_logo_url);?>"> 5 <img src="<?php echo esc_url($logo['uta_company_logo_image_hover']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_hover_alt);?>"> 18 <?php if ( ! empty( $logo['uta_company_logo_image_hover']['id'] ) ) : ?> 19 <?php 20 // Use wp_get_attachment_image() for the hover image 21 echo wp_get_attachment_image( 22 $logo['uta_company_logo_image_hover']['id'], // Image ID 23 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 24 false, // No need for the 'icon' argument 25 [ 26 'alt' => esc_attr($uta_company_logo_hover_alt), // Alt text for the image 27 ] 28 ); 29 ?> 30 <?php endif; ?> 6 31 </a> 7 32 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-8.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 3 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 4 <?php 5 // Use wp_get_attachment_image() for the normal image 6 echo wp_get_attachment_image( 7 $logo['uta_company_logo_image_normal']['id'], // Image ID 8 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 9 false, // No need for the 'icon' argument 10 [ 11 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 12 ] 13 ); 14 ?> 15 <?php endif; ?> 16 4 17 <a class="uta-partner-overly" href="<?php echo esc_url_raw($uta_company_logo_url);?>"> 5 <img src="<?php echo esc_url($logo['uta_company_logo_image_hover']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_hover_alt);?>"> 18 <?php if ( ! empty( $logo['uta_company_logo_image_hover']['id'] ) ) : ?> 19 <?php 20 // Use wp_get_attachment_image() for the hover image 21 echo wp_get_attachment_image( 22 $logo['uta_company_logo_image_hover']['id'], // Image ID 23 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 24 false, // No need for the 'icon' argument 25 [ 26 'alt' => esc_attr($uta_company_logo_hover_alt), // Alt text for the image 27 ] 28 ); 29 ?> 30 <?php endif; ?> 6 31 </a> 7 32 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-9.php
r2696843 r3220786 1 1 <div class="uta-company-logo-single"> 2 2 <div class="uta-company-logo-single-full"> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url);?>" target="<?php esc_attr($uta_company_logo_url_is_external); ?>"> 4 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt);?>"> 3 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php echo esc_attr($uta_company_logo_url_is_external); ?>"> 4 <?php if ( ! empty( $logo['uta_company_logo_image_normal']['id'] ) ) : ?> 5 <?php 6 // Use wp_get_attachment_image() to display the image 7 echo wp_get_attachment_image( 8 $logo['uta_company_logo_image_normal']['id'], // Image ID 9 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 10 false, // No need for the 'icon' argument 11 [ 12 'alt' => esc_attr($uta_company_logo_alt), // Alt text for the image 13 ] 14 ); 15 ?> 16 <?php endif; ?> 5 17 </a> 6 18 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/client-logo/template/style-default.php
r2696843 r3220786 1 1 <div class="uta-company-logo-item-single"> 2 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php echo esc_attr( $uta_company_logo_url_is_external );?>"> 3 <img src="<?php echo esc_url($logo['uta_company_logo_image_normal']['url']); ?>" alt="<?php echo esc_attr($uta_company_logo_alt); ?>"> 2 <a href="<?php echo esc_url_raw($uta_company_logo_url); ?>" target="<?php echo esc_attr($uta_company_logo_url_is_external); ?>"> 3 <?php 4 // Get the attachment ID for the logo image 5 $attachment_id = attachment_url_to_postid($logo['uta_company_logo_image_normal']['url']); 6 7 // Use wp_get_attachment_image() to output the image 8 echo wp_get_attachment_image($attachment_id, 'full', false, array( 9 'alt' => esc_attr($uta_company_logo_alt), 10 )); 11 ?> 4 12 </a> 5 13 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/counterup/Uta_counterup.php
r2715336 r3220786 2 2 3 3 namespace Elementor; 4 5 use \Elementor\Core\Schemes\Typography;6 4 7 5 if ( ! defined('ABSPATH')) exit; // Exit if accessed directly … … 18 16 * @return string 19 17 */ 20 public function get_name() { 18 public function get_name(): string 19 { 21 20 return 'uta-counter-up'; 22 21 } … … 26 25 * @return string 27 26 */ 28 public function get_title() { 27 public function get_title(): string 28 { 29 29 return esc_html__('UTA Counter Up', 'unlimited-theme-addons'); 30 30 } … … 34 34 * @return string 35 35 */ 36 public function get_icon() { 36 public function get_icon(): string 37 { 37 38 return 'eicon-logo'; 38 39 } … … 40 41 /** 41 42 * Widget CSS. 42 * 43 * 43 44 * @return string 44 45 */ … … 52 53 /** 53 54 * Widget script. 54 * 55 * @return string 55 * 56 * @return string[] 56 57 */ 57 58 public function get_script_depends() { 58 $scripts = [ 'uta-jquery-appear', 'uta-odometer', 'uta-main' ]; 59 60 return $scripts; 59 return [ 'uta-jquery-appear', 'uta-odometer', 'uta-main' ]; 61 60 } 62 61 … … 66 65 * @return array|string[] 67 66 */ 68 public function get_keywords() { 67 public function get_keywords(): array 68 { 69 69 return [ 70 70 'uta counter up', … … 83 83 * @return array|string[] 84 84 */ 85 public function get_categories() { 85 public function get_categories(): array 86 { 86 87 return [ 'uta-elements' ]; 87 88 } … … 94 95 * @return string support URL. 95 96 */ 96 public function get_custom_help_url() { 97 public function get_custom_help_url(): string 98 { 97 99 return 'https://codepopular.com/contact/'; 98 100 } … … 121 123 [ 122 124 'label' => esc_html__('Countr Up Style', 'unlimited-theme-addons'), 123 'type' => \Elementor\Controls_Manager::SELECT,125 'type' => Controls_Manager::SELECT, 124 126 'options' => [ 125 127 'style-default' => esc_html__('Default', 'unlimited-theme-addons'), … … 187 189 [ 188 190 'label' => __('Icon', 'unlimited-theme-addons'), 189 'type' => \Elementor\Controls_Manager::SWITCHER,191 'type' => Controls_Manager::SWITCHER, 190 192 'label_on' => __('Yes', 'unlimited-theme-addons'), 191 193 'label_off' => __('No', 'unlimited-theme-addons'), … … 220 222 221 223 /* 222 * Padding 224 * Padding 223 225 */ 224 226 $this->add_responsive_control( … … 226 228 [ 227 229 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 228 'type' => \Elementor\Controls_Manager::DIMENSIONS,230 'type' => Controls_Manager::DIMENSIONS, 229 231 'size_units' => [ 'px', '%', 'em' ], 230 232 'selectors' => [ … … 234 236 ); 235 237 /* 236 * Margin 238 * Margin 237 239 */ 238 240 $this->add_responsive_control( … … 240 242 [ 241 243 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 242 'type' => \Elementor\Controls_Manager::DIMENSIONS,244 'type' => Controls_Manager::DIMENSIONS, 243 245 'size_units' => [ 'px', '%', 'em' ], 244 246 'selectors' => [ … … 262 264 263 265 /* 264 * Border 266 * Border 265 267 */ 266 268 $this->add_group_control( … … 291 293 [ 292 294 'label' => esc_html__('Border Radius', 'unlimited-theme-addons'), 293 'type' => \Elementor\Controls_Manager::DIMENSIONS,295 'type' => Controls_Manager::DIMENSIONS, 294 296 'size_units' => [ 'px', '%', 'em' ], 295 297 'selectors' => [ … … 365 367 ); 366 368 /* 367 * Margin 369 * Margin 368 370 */ 369 371 $this->add_responsive_control( … … 371 373 [ 372 374 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 373 'type' => \Elementor\Controls_Manager::DIMENSIONS,375 'type' => Controls_Manager::DIMENSIONS, 374 376 'size_units' => [ 'px', '%', 'em' ], 375 377 'selectors' => [ … … 393 395 'name' => 'counterup_title_typography', 394 396 'label' => __('Typography', 'unlimited-theme-addons'), 395 'scheme' => Typography::TYPOGRAPHY_2,396 397 'selector' => '{{WRAPPER}} .uta-counter-item h2', 397 398 ] 398 399 ); 399 400 /* 400 * Margin 401 * Margin 401 402 */ 402 403 $this->add_responsive_control( … … 404 405 [ 405 406 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 406 'type' => \Elementor\Controls_Manager::DIMENSIONS,407 'type' => Controls_Manager::DIMENSIONS, 407 408 'size_units' => [ 'px', '%', 'em' ], 408 409 'selectors' => [ … … 437 438 'name' => 'counterup_cont_typography', 438 439 'label' => __('Typography', 'unlimited-theme-addons'), 439 'scheme' => Typography::TYPOGRAPHY_2,440 440 'selector' => '{{WRAPPER}} .uta-counter-item p', 441 441 ] 442 442 ); 443 443 /* 444 * Margin 444 * Margin 445 445 */ 446 446 $this->add_responsive_control( … … 448 448 [ 449 449 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 450 'type' => \Elementor\Controls_Manager::DIMENSIONS,450 'type' => Controls_Manager::DIMENSIONS, 451 451 'size_units' => [ 'px', '%', 'em' ], 452 452 'selectors' => [ -
unlimited-theme-addons/trunk/inc/elementor/widgets/infobox/Uta_Infobox.php
r2715336 r3220786 21 21 /** 22 22 * Widget CSS. 23 * 23 * 24 24 * @return string 25 25 */ … … 33 33 /** 34 34 * Widget script. 35 * 35 * 36 36 * @return string 37 37 */ … … 146 146 ); 147 147 /* 148 * Padding 148 * Padding 149 149 */ 150 150 $this->add_responsive_control( … … 162 162 ); 163 163 /* 164 * Margin 164 * Margin 165 165 */ 166 166 $this->add_responsive_control( … … 178 178 ); 179 179 /* 180 * Border 180 * Border 181 181 */ 182 182 $this->add_group_control( … … 185 185 'name' => 'uta_info_item_border', 186 186 'label' => esc_html__('Border', 'unlimited-theme-addons'), 187 'selector' => 187 'selector' => 188 188 '{{WRAPPER}} .uta-infobox-item, 189 189 {{WRAPPER}} .uta-infobox-item.style-04, … … 215 215 'name' => 'uta_info_box_shadow', 216 216 'label' => __('Box Shadow', 'unlimited-theme-addons'), 217 'selector' => 217 'selector' => 218 218 '{{WRAPPER}} .uta-infobox-item, 219 219 {{WRAPPER}} .uta-infobox-item.style-04, … … 260 260 ); 261 261 /* 262 * Padding 262 * Padding 263 263 */ 264 264 $this->add_responsive_control( … … 410 410 ); 411 411 /* 412 * Padding 412 * Padding 413 413 */ 414 414 $this->add_responsive_control( … … 440 440 'name' => 'info_title_typography', 441 441 'label' => __('Typography', 'unlimited-theme-addons'), 442 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1, 443 'selector' => 442 'selector' => 444 443 '{{WRAPPER}} .uta-infobox-item h4, 445 444 {{WRAPPER}} .uta-infobox-item.style-01 .content h4, … … 513 512 ); 514 513 /* 515 * Padding 514 * Padding 516 515 */ 517 516 $this->add_responsive_control( … … 543 542 'name' => 'info_content_typography', 544 543 'label' => __('Typography', 'unlimited-theme-addons'), 545 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1, 546 'selector' => 544 'selector' => 547 545 '{{WRAPPER}} .uta-infobox-item p, 548 546 {{WRAPPER}} .uta-infobox-item.style-01 .content p, -
unlimited-theme-addons/trunk/inc/elementor/widgets/pricing/Uta_Pricing.php
r2715336 r3220786 23 23 /** 24 24 * Widget CSS. 25 * 25 * 26 26 * @return string 27 27 */ … … 35 35 /** 36 36 * Widget script. 37 * 37 * 38 38 * @return string 39 39 */ … … 76 76 [ 77 77 'label' => esc_html__('Pricing Style', 'unlimited-theme-addons'), 78 'type' => \Elementor\Controls_Manager::SELECT,78 'type' => Controls_Manager::SELECT, 79 79 'options' => [ 80 80 'style-default' => esc_html__('Default', 'unlimited-theme-addons'), … … 91 91 [ 92 92 'label' => __('Title', 'unlimited-theme-addons'), 93 'type' => \Elementor\Controls_Manager::TEXT,93 'type' => Controls_Manager::TEXT, 94 94 'default' => 'Standard Plan', 95 95 ] … … 100 100 [ 101 101 'label' => __('Price', 'unlimited-theme-addons'), 102 'type' => \Elementor\Controls_Manager::TEXT,102 'type' => Controls_Manager::TEXT, 103 103 'default' => '70', 104 104 ] … … 109 109 [ 110 110 'label' => __('Currency', 'unlimited-theme-addons'), 111 'type' => \Elementor\Controls_Manager::TEXT,111 'type' => Controls_Manager::TEXT, 112 112 'default' => __('$', 'unlimited-theme-addons'), 113 113 ] … … 118 118 [ 119 119 'label' => __('Package', 'unlimited-theme-addons'), 120 'type' => \Elementor\Controls_Manager::SELECT,120 'type' => Controls_Manager::SELECT, 121 121 'default' => 'Yealry', 122 122 'options' => [ … … 136 136 [ 137 137 'label' => __('Feature', 'unlimited-theme-addons'), 138 'type' => \Elementor\Controls_Manager::TEXTAREA,138 'type' => Controls_Manager::TEXTAREA, 139 139 'default' => __('10 Free Domain Names', 'unlimited-theme-addons'), 140 140 ] … … 145 145 [ 146 146 'label' => __('Feature List', 'unlimited-theme-addons'), 147 'type' => \Elementor\Controls_Manager::REPEATER,147 'type' => Controls_Manager::REPEATER, 148 148 'fields' => $feature->get_controls(), 149 149 'default' => [ … … 172 172 [ 173 173 'label' => __('button text', 'unlimited-theme-addons'), 174 'type' => \Elementor\Controls_Manager::TEXT,174 'type' => Controls_Manager::TEXT, 175 175 'default' => 'Select Plan', 176 176 ] … … 181 181 [ 182 182 'label' => __('button URL', 'unlimited-theme-addons'), 183 'type' => \Elementor\Controls_Manager::TEXT,183 'type' => Controls_Manager::TEXT, 184 184 'default' => '#', 185 185 ] … … 190 190 [ 191 191 'label' => __('Active Table', 'unlimited-theme-addons'), 192 'type' => \Elementor\Controls_Manager::SWITCHER,192 'type' => Controls_Manager::SWITCHER, 193 193 'label_on' => __('On', 'unlimited-theme-addons'), 194 194 'label_off' => __('Off', 'unlimited-theme-addons'), … … 202 202 [ 203 203 'label' => __('Active Title', 'unlimited-theme-addons'), 204 'type' => \Elementor\Controls_Manager::TEXT,204 'type' => Controls_Manager::TEXT, 205 205 'default' => 'Popular', 206 206 ] … … 219 219 ); 220 220 /* 221 * Padding 221 * Padding 222 222 */ 223 223 $this->add_responsive_control( … … 225 225 [ 226 226 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 227 'type' => \Elementor\Controls_Manager::DIMENSIONS,227 'type' => Controls_Manager::DIMENSIONS, 228 228 'size_units' => [ 'px', '%', 'em' ], 229 229 'selectors' => [ … … 233 233 ); 234 234 /* 235 * Margin 235 * Margin 236 236 */ 237 237 $this->add_responsive_control( … … 239 239 [ 240 240 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 241 'type' => \Elementor\Controls_Manager::DIMENSIONS,241 'type' => Controls_Manager::DIMENSIONS, 242 242 'size_units' => [ 'px', '%', 'em' ], 243 243 'selectors' => [ … … 247 247 ); 248 248 /* 249 * Border 249 * Border 250 250 */ 251 251 $this->add_group_control( … … 264 264 [ 265 265 'label' => esc_html__('Border Radius', 'unlimited-theme-addons'), 266 'type' => \Elementor\Controls_Manager::DIMENSIONS,266 'type' => Controls_Manager::DIMENSIONS, 267 267 'size_units' => [ 'px', '%', 'em' ], 268 268 'selectors' => [ … … 305 305 ); 306 306 /* 307 * Padding 307 * Padding 308 308 */ 309 309 $this->add_responsive_control( … … 311 311 [ 312 312 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 313 'type' => \Elementor\Controls_Manager::DIMENSIONS,313 'type' => Controls_Manager::DIMENSIONS, 314 314 'size_units' => [ 'px', '%', 'em' ], 315 315 'selectors' => [ … … 319 319 ); 320 320 /* 321 * Margin 321 * Margin 322 322 */ 323 323 $this->add_responsive_control( … … 325 325 [ 326 326 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 327 'type' => \Elementor\Controls_Manager::DIMENSIONS,327 'type' => Controls_Manager::DIMENSIONS, 328 328 'size_units' => [ 'px', '%', 'em' ], 329 329 'selectors' => [ … … 337 337 'name' => 'title_typography', 338 338 'label' => __('Typography', 'unlimited-theme-addons'), 339 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,340 339 'selector' => '{{WRAPPER}} .uta-pricing-table h6, .uta-pricing-item h4, .uta-pricing-item.pricing-item-4 h5, .uta-pricing-item.pricing-item-5 .pricing-single-head h4', 341 340 ] … … 376 375 ); 377 376 /* 378 * Padding 377 * Padding 379 378 */ 380 379 $this->add_responsive_control( … … 382 381 [ 383 382 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 384 'type' => \Elementor\Controls_Manager::DIMENSIONS,383 'type' => Controls_Manager::DIMENSIONS, 385 384 'size_units' => [ 'px', '%', 'em' ], 386 385 'selectors' => [ … … 394 393 'name' => 'price_typography', 395 394 'label' => __('Typography', 'unlimited-theme-addons'), 396 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,397 395 'selector' => '{{WRAPPER}} .uta-pricing-table .uta-price, .uta-pricing-item h2, .uta-pricing-item.pricing-item-4 h2, .uta-pricing-item.pricing-item-5 .pricing-single-head h2', 398 396 ] … … 421 419 ); 422 420 /* 423 * Padding 421 * Padding 424 422 */ 425 423 $this->add_responsive_control( … … 427 425 [ 428 426 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 429 'type' => \Elementor\Controls_Manager::DIMENSIONS,427 'type' => Controls_Manager::DIMENSIONS, 430 428 'size_units' => [ 'px', '%', 'em' ], 431 429 'selectors' => [ … … 439 437 'name' => 'currency_typography', 440 438 'label' => __('Typography', 'unlimited-theme-addons'), 441 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,442 439 'selector' => '{{WRAPPER}} .uta-pricing-table .uta-currency, .uta-pricing-item h2 sup', 443 440 ] … … 466 463 ); 467 464 /* 468 * Padding 465 * Padding 469 466 */ 470 467 $this->add_responsive_control( … … 472 469 [ 473 470 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 474 'type' => \Elementor\Controls_Manager::DIMENSIONS,471 'type' => Controls_Manager::DIMENSIONS, 475 472 'size_units' => [ 'px', '%', 'em' ], 476 473 'selectors' => [ … … 484 481 'name' => 'package_typography', 485 482 'label' => __('Typography', 'unlimited-theme-addons'), 486 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,487 483 'selector' => '{{WRAPPER}} .uta-pricing-table>span, .uta-pricing-item.pricing-item-1 small, .uta-pricing-item.pricing-item-2 small, .uta-pricing-item.pricing-item-3 small, .uta-pricing-item.pricing-item-4 h2 small, .uta-pricing-item.pricing-item-5 .pricing-single-head h2 span', 488 484 ] … … 510 506 ); 511 507 /* 512 * Padding 508 * Padding 513 509 */ 514 510 $this->add_responsive_control( … … 516 512 [ 517 513 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 518 'type' => \Elementor\Controls_Manager::DIMENSIONS,514 'type' => Controls_Manager::DIMENSIONS, 519 515 'size_units' => [ 'px', '%', 'em' ], 520 516 'selectors' => [ … … 524 520 ); 525 521 /* 526 * Margin 522 * Margin 527 523 */ 528 524 $this->add_responsive_control( … … 530 526 [ 531 527 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 532 'type' => \Elementor\Controls_Manager::DIMENSIONS,528 'type' => Controls_Manager::DIMENSIONS, 533 529 'size_units' => [ 'px', '%', 'em' ], 534 530 'selectors' => [ … … 542 538 'name' => 'uta_pricing_badge_typography', 543 539 'label' => __('Typography', 'unlimited-theme-addons'), 544 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,545 540 'selector' => '{{WRAPPER}} .uta-pricing-badge', 546 541 ] … … 567 562 ); 568 563 /* 569 * Border 564 * Border 570 565 */ 571 566 $this->add_group_control( … … 584 579 [ 585 580 'label' => esc_html__('Border Radius', 'unlimited-theme-addons'), 586 'type' => \Elementor\Controls_Manager::DIMENSIONS,581 'type' => Controls_Manager::DIMENSIONS, 587 582 'size_units' => [ 'px', '%', 'em' ], 588 583 'selectors' => [ … … 616 611 ); 617 612 /* 618 * Padding 613 * Padding 619 614 */ 620 615 $this->add_responsive_control( … … 622 617 [ 623 618 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 624 'type' => \Elementor\Controls_Manager::DIMENSIONS,619 'type' => Controls_Manager::DIMENSIONS, 625 620 'size_units' => [ 'px', '%', 'em' ], 626 621 'selectors' => [ … … 634 629 'name' => 'Feature_list_typography', 635 630 'label' => __('Typography', 'unlimited-theme-addons'), 636 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,637 631 'selector' => '{{WRAPPER}} .uta-pricing-table ul li, .uta-pricing-item ul li, .uta-pricing-item.pricing-item-5 .pricing-single-content ul li, .uta-pricing-item.pricing-item-4 ul li', 638 632 ] … … 685 679 686 680 /* 687 * Padding 681 * Padding 688 682 */ 689 683 $this->add_responsive_control( … … 691 685 [ 692 686 'label' => esc_html__('Padding', 'unlimited-theme-addons'), 693 'type' => \Elementor\Controls_Manager::DIMENSIONS,687 'type' => Controls_Manager::DIMENSIONS, 694 688 'size_units' => [ 'px', '%', 'em' ], 695 689 'selectors' => [ … … 700 694 701 695 /* 702 * Margins 696 * Margins 703 697 */ 704 698 $this->add_responsive_control( … … 706 700 [ 707 701 'label' => esc_html__('Margin', 'unlimited-theme-addons'), 708 'type' => \Elementor\Controls_Manager::DIMENSIONS,702 'type' => Controls_Manager::DIMENSIONS, 709 703 'size_units' => [ 'px', '%', 'em' ], 710 704 'selectors' => [ … … 722 716 'name' => 'button_typography', 723 717 'label' => __('Typography', 'unlimited-theme-addons'), 724 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,725 718 'selector' => '{{WRAPPER}} .pricing-btn a', 726 719 ] … … 758 751 759 752 /* 760 * Pricing button Border 753 * Pricing button Border 761 754 */ 762 755 … … 778 771 [ 779 772 'label' => esc_html__('Border Radius', 'unlimited-theme-addons'), 780 'type' => \Elementor\Controls_Manager::DIMENSIONS,773 'type' => Controls_Manager::DIMENSIONS, 781 774 'size_units' => [ 'px', '%', 'em' ], 782 775 'selectors' => [ … … 829 822 830 823 /* 831 * Pricing button hover Border 824 * Pricing button hover Border 832 825 */ 833 826 $this->add_group_control( … … 846 839 [ 847 840 'label' => esc_html__('Border Radius', 'unlimited-theme-addons'), 848 'type' => \Elementor\Controls_Manager::DIMENSIONS,841 'type' => Controls_Manager::DIMENSIONS, 849 842 'size_units' => [ 'px', '%', 'em' ], 850 843 'selectors' => [ -
unlimited-theme-addons/trunk/inc/elementor/widgets/team/Uta_Team.php
r2924300 r3220786 13 13 /** 14 14 * Widget Name. 15 * 15 * 16 16 * @access public 17 17 * 18 18 * @return string 19 19 */ 20 public function get_name() { 20 public function get_name(): string 21 { 21 22 return 'uta-team'; 22 23 } … … 24 25 /** 25 26 * Get Widget Title 26 * 27 * 27 28 * @access public 28 29 * 29 30 * @return string 30 31 */ 31 public function get_title() { 32 public function get_title(): string 33 { 32 34 return esc_html__('UTA Team', 'unlimited-theme-addons'); 33 35 } … … 35 37 /** 36 38 * Get Widget Icon 37 * 39 * 38 40 * @access public 39 41 * 40 * @return void42 * @return string 41 43 */ 42 public function get_icon() { 44 public function get_icon(): string 45 { 43 46 return 'eicon-person'; 44 47 } … … 46 49 /** 47 50 * Widget script. 48 * 51 * 49 52 * @access public 50 * 53 * 51 54 * @return string 52 55 */ … … 60 63 /** 61 64 * Get Widget Search Keyword. 62 * 65 * 63 66 * @access public 64 67 * 65 * @return void68 * @return string[] 66 69 */ 67 public function get_keywords() { 70 public function get_keywords(): array 71 { 68 72 return [ 69 73 'team', … … 80 84 /** 81 85 * Widget Category. 82 * 86 * 83 87 * @access public 84 88 * 85 * @return void89 * @return string[] 86 90 */ 87 public function get_categories() { 91 public function get_categories(): array 92 { 88 93 return [ 'uta-elements' ]; 89 94 } … … 97 102 * @return string support URL. 98 103 */ 99 public function get_custom_help_url() { 104 public function get_custom_help_url(): string 105 { 100 106 return 'https://codepopular.com/contact/'; 101 107 } … … 104 110 /** 105 111 * Register Widget Controls. 106 * 112 * 107 113 * @access protected 108 114 * … … 129 135 /** 130 136 * Register Team Controls. 131 * 137 * 132 138 * @access protected 133 139 * … … 365 371 /** 366 372 * Widget Team Style 367 * 373 * 368 374 * @access protected 369 375 * … … 381 387 ); 382 388 383 // Team Style Padding 389 // Team Style Padding 384 390 385 391 $this->add_responsive_control( … … 406 412 ); 407 413 408 // Team Style Margin 414 // Team Style Margin 409 415 410 416 $this->add_responsive_control( … … 480 486 481 487 482 // Animate Border 488 // Animate Border 483 489 484 490 $this->add_control( … … 497 503 498 504 499 // Animate Border Height 505 // Animate Border Height 500 506 501 507 $this->add_control( … … 515 521 516 522 517 // Tab 523 // Tab 518 524 519 525 $this->start_controls_tabs( … … 530 536 ); 531 537 532 // Team Style Background 538 // Team Style Background 533 539 534 540 $this->add_control( … … 593 599 ); 594 600 595 // Team Hover Background 601 // Team Hover Background 596 602 597 603 $this->add_control( … … 647 653 /** 648 654 * Team Content Style 649 * 655 * 650 656 * @access protected 651 657 * … … 666 672 ); 667 673 668 // Team Style Padding 674 // Team Style Padding 669 675 670 676 $this->add_responsive_control( … … 681 687 ); 682 688 683 // Team Style Margin 689 // Team Style Margin 684 690 685 691 $this->add_responsive_control( … … 723 729 ] 724 730 ); 725 726 727 728 // Tab 731 732 733 734 // Tab 729 735 730 736 $this->start_controls_tabs( … … 741 747 ); 742 748 743 // Team Style Background 749 // Team Style Background 744 750 745 751 $this->add_control( … … 755 761 ); 756 762 757 763 758 764 $this->end_controls_tab(); 759 765 … … 767 773 ); 768 774 769 // Team Content Hover Background 775 // Team Content Hover Background 770 776 771 777 $this->add_control( … … 780 786 ) 781 787 ); 782 788 783 789 $this->end_controls_tab(); 784 790 $this->end_controls_tabs(); … … 789 795 /** 790 796 * Widget Name Style. 791 * 797 * 792 798 * @access protected 793 799 * … … 796 802 public function uta_team_name_style() { 797 803 798 // Tab Name Style 804 // Tab Name Style 799 805 800 806 $this->start_controls_section( … … 810 816 'name' => 'name_typography', 811 817 'label' => __('Typography', 'unlimited-theme-addons'), 812 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,813 818 'selector' => ' 814 819 {{WRAPPER}} .team-style-default-content h3, … … 828 833 ); 829 834 830 // Team Name Margin 835 // Team Name Margin 831 836 832 837 $this->add_responsive_control( … … 854 859 ); 855 860 856 // Team Name Padding 861 // Team Name Padding 857 862 858 863 $this->add_responsive_control( … … 880 885 ); 881 886 882 // Team Name Color 887 // Team Name Color 883 888 884 889 $this->add_control( … … 905 910 ); 906 911 907 // Team Name Hover Color 912 // Team Name Hover Color 908 913 909 914 $this->add_control( … … 935 940 /** 936 941 * Team Position Style. 937 * 942 * 938 943 * @access protected 939 944 * … … 950 955 ); 951 956 952 // Team Position Typography 957 // Team Position Typography 953 958 954 959 $this->add_group_control( … … 957 962 'name' => 'team_position_typography', 958 963 'label' => __('Typography', 'unlimited-theme-addons'), 959 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,960 964 'selector' => ' 961 965 {{WRAPPER}} .team-style-default-content h5, … … 974 978 ); 975 979 976 // Team Designation Margin 980 // Team Designation Margin 977 981 978 982 $this->add_responsive_control( … … 999 1003 ); 1000 1004 1001 // Team Designation Padding 1005 // Team Designation Padding 1002 1006 1003 1007 $this->add_responsive_control( … … 1024 1028 ); 1025 1029 1026 // Team Designation Color 1030 // Team Designation Color 1027 1031 1028 1032 $this->add_control( … … 1048 1052 ); 1049 1053 1050 // Team Designation Hover Color 1054 // Team Designation Hover Color 1051 1055 1052 1056 $this->add_control( … … 1096 1100 ); 1097 1101 1098 // Team Description Typography 1102 // Team Description Typography 1099 1103 1100 1104 $this->add_group_control( … … 1103 1107 'name' => 'team_desc_typography', 1104 1108 'label' => __('Typography', 'unlimited-theme-addons'), 1105 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,1106 1109 'selector' => ' 1107 1110 {{WRAPPER}} .team-style-3-content p, … … 1114 1117 ); 1115 1118 1116 // Team Description Margin 1119 // Team Description Margin 1117 1120 1118 1121 $this->add_responsive_control( … … 1134 1137 ); 1135 1138 1136 // Team Description Margin 1139 // Team Description Margin 1137 1140 1138 1141 $this->add_responsive_control( … … 1153 1156 ); 1154 1157 1155 // Team Description color 1158 // Team Description color 1156 1159 1157 1160 $this->add_control( … … 1171 1174 ); 1172 1175 1173 // Team Description Hover Color 1176 // Team Description Hover Color 1174 1177 1175 1178 $this->add_control( … … 1195 1198 /** 1196 1199 * Team Email Style. 1197 * 1198 * @access protected 1200 * 1201 * @access protected 1199 1202 * 1200 1203 * @return void … … 1217 1220 'name' => 'uta_team_email_typography', 1218 1221 'label' => __('Typography', 'unlimited-theme-addons'), 1219 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,1220 1222 'selector' => '{{WRAPPER}} .team-style-10-content .team-email', 1221 1223 ] 1222 1224 ); 1223 1225 1224 // Team Name Margin 1226 // Team Name Margin 1225 1227 1226 1228 $this->add_responsive_control( … … 1236 1238 ); 1237 1239 1238 // Team Name Padding 1240 // Team Name Padding 1239 1241 1240 1242 $this->add_responsive_control( … … 1250 1252 ); 1251 1253 1252 // Team Email Color 1254 // Team Email Color 1253 1255 1254 1256 $this->add_control( … … 1263 1265 ); 1264 1266 1265 // Team Name Hover Color 1267 // Team Name Hover Color 1266 1268 1267 1269 $this->add_control( … … 1283 1285 /** 1284 1286 * Team Phone. 1285 * 1286 * @access protected 1287 * 1288 * @access protected 1287 1289 * 1288 1290 * @return void … … 1308 1310 'name' => 'uta_team_phone_typography', 1309 1311 'label' => __('Typography', 'unlimited-theme-addons'), 1310 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,1311 1312 'selector' => '{{WRAPPER}} .team-style-10-content .team-phone', 1312 1313 ] 1313 1314 ); 1314 1315 1315 // Team Phone Margin 1316 // Team Phone Margin 1316 1317 1317 1318 $this->add_responsive_control( … … 1327 1328 ); 1328 1329 1329 // Team Phone Padding 1330 // Team Phone Padding 1330 1331 1331 1332 $this->add_responsive_control( … … 1341 1342 ); 1342 1343 1343 // Team Phone Color 1344 // Team Phone Color 1344 1345 1345 1346 $this->add_control( … … 1354 1355 ); 1355 1356 1356 // Team Phone Hover Color 1357 // Team Phone Hover Color 1357 1358 1358 1359 $this->add_control( … … 1372 1373 /** 1373 1374 * Team Social Style. 1374 * 1375 * 1375 1376 * @access protected 1376 1377 * … … 1389 1390 ); 1390 1391 1391 // Team Social Icon Margin 1392 // Team Social Icon Margin 1392 1393 1393 1394 $this->add_responsive_control( … … 1417 1418 ); 1418 1419 1419 // Team Social Icon Padding 1420 // Team Social Icon Padding 1420 1421 1421 1422 $this->add_responsive_control( … … 1443 1444 ); 1444 1445 1445 // Team Social Icon Width 1446 // Team Social Icon Width 1446 1447 1447 1448 $this->add_control( … … 1469 1470 ); 1470 1471 1471 // Team Social Icon Height 1472 // Team Social Icon Height 1472 1473 1473 1474 $this->add_control( … … 1494 1495 ); 1495 1496 1496 // Team Social Icon Color 1497 // Team Social Icon Color 1497 1498 1498 1499 $this->start_controls_tabs( … … 1532 1533 1533 1534 1534 // Social Icon Area Background 1535 // Social Icon Area Background 1535 1536 1536 1537 $this->add_control( … … 1556 1557 1557 1558 1558 // Social Icon Background Color 1559 // Social Icon Background Color 1559 1560 1560 1561 $this->add_control( … … 1583 1584 1584 1585 /* 1585 * Border 1586 * Border 1586 1587 */ 1587 1588 $this->add_group_control( … … 1635 1636 $this->end_controls_tab(); 1636 1637 1637 // Social Hover Tab 1638 // Social Hover Tab 1638 1639 1639 1640 $this->start_controls_tab( … … 1644 1645 ); 1645 1646 1646 // Team Social Hover Color 1647 // Team Social Hover Color 1647 1648 1648 1649 $this->add_control( … … 1694 1695 ); 1695 1696 1696 // Team Hover Border 1697 // Team Hover Border 1697 1698 1698 1699 $this->add_group_control( … … 1753 1754 /** 1754 1755 * Team Overlay Style. 1755 * 1756 * 1756 1757 * @access protected 1757 1758 * … … 1760 1761 public function uta_team_overlay_style() { 1761 1762 1762 // Team Overlay Background 1763 // Team Overlay Background 1763 1764 1764 1765 $this->start_controls_section( -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/Uta_Testimonials.php
r2715336 r3220786 27 27 /** 28 28 * Widget CSS. 29 * 29 * 30 30 * @return string 31 31 */ … … 39 39 /** 40 40 * Widget script. 41 * 41 * 42 42 * @return string 43 43 */ … … 185 185 ); 186 186 /* 187 * Padding 187 * Padding 188 188 */ 189 189 $this->add_responsive_control( … … 199 199 ); 200 200 /* 201 * Margin 201 * Margin 202 202 */ 203 203 $this->add_responsive_control( … … 213 213 ); 214 214 /* 215 * Border 215 * Border 216 216 */ 217 217 $this->add_group_control( … … 272 272 ); 273 273 /* 274 * Padding 274 * Padding 275 275 */ 276 276 $this->add_responsive_control( … … 286 286 ); 287 287 /* 288 * Margin 288 * Margin 289 289 */ 290 290 $this->add_responsive_control( … … 300 300 ); 301 301 /* 302 * Border 302 * Border 303 303 */ 304 304 $this->add_group_control( … … 370 370 ); 371 371 /* 372 * Margin 372 * Margin 373 373 */ 374 374 $this->add_responsive_control( … … 384 384 ); 385 385 /* 386 * Border 386 * Border 387 387 */ 388 388 $this->add_group_control( … … 441 441 ); 442 442 /* 443 * Padding 443 * Padding 444 444 */ 445 445 $this->add_responsive_control( … … 459 459 'name' => 'testimonial_content_typography', 460 460 'label' => __('Typography', 'unlimited-theme-addons'), 461 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,462 461 'selector' => '{{WRAPPER}} .testimonial-style-default p, .testimonial-item1 .content p, .testimonial-item2 .content p, .testimonial-item3 .content p, .testimonial-item4 .content p, .testimonial-item5 .content p', 463 462 ] … … 485 484 ); 486 485 /* 487 * Padding 486 * Padding 488 487 */ 489 488 $this->add_responsive_control( … … 503 502 'name' => 'testimonial_name_typography', 504 503 'label' => __('Typography', 'unlimited-theme-addons'), 505 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,506 504 'selector' => '{{WRAPPER}} .testimonial-style-default h5, .testimonial-item1 .content h2, .testimonial-item2 .thumbnail h2, .testimonial-item3 .thumbnail h2, .testimonial-item4 .content h2, .testimonial-item5 .thumbnail h2', 507 505 ] … … 529 527 ); 530 528 /* 531 * Padding 529 * Padding 532 530 */ 533 531 $this->add_responsive_control( … … 547 545 'name' => 'testimonial_designation_typography', 548 546 'label' => __('Typography', 'unlimited-theme-addons'), 549 'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,550 547 'selector' => '{{WRAPPER}} .testimonial-style-default span, .testimonial-item5 .thumbnail h5, .testimonial-item4 .content h5, .testimonial-item3 .thumbnail h5, .testimonial-item2 .thumbnail h5, .testimonial-item1 .content h5', 551 548 ] -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/template/style-1.php
r2696843 r3220786 1 2 1 <!-- Testimonial Style 1 --> 3 2 <div class="uta-testimonial-<?php echo esc_html($settings['uta_testimonial_style']);?>"> … … 5 4 <div class="uta-testimonial-item1"> 6 5 <div class="uta-thumbnail"> 7 <img src="<?php echo esc_url( $testimonial['image']['url'] ); ?>" alt="<?php echo esc_attr( $testimonial['name'] ); ?>"> 6 <?php if ( ! empty( $testimonial['image']['id'] ) ) : ?> 7 <?php 8 // Use wp_get_attachment_image() to display the image 9 echo wp_get_attachment_image( 10 $testimonial['image']['id'], // Image ID 11 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 12 false, // No need for the 'icon' argument 13 [ 14 'alt' => esc_attr( $testimonial['name'] ), // Alt text for the image 15 ] 16 ); 17 ?> 18 <?php endif; ?> 8 19 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>><?php echo esc_html( $testimonial['name'] ); ?></h2> 9 20 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>><?php echo esc_html( $testimonial['designation'] ); ?></h5> 10 21 </div> 11 22 <div class="uta-content"> 12 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) {?>23 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) : ?> 13 24 <div class="ratting"> 14 25 <span><i class="fas fa-star"></i></span> … … 18 29 <span><i class="fas fa-star"></i></span> 19 30 </div> 20 <?php }?>31 <?php endif; ?> 21 32 22 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>><?php echo esc_html( $testimonial['feedback'] ); ?></p> 33 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>> 34 <?php echo esc_html( $testimonial['feedback'] ); ?> 35 </p> 23 36 </div> 24 37 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/template/style-2.php
r2696843 r3220786 4 4 <div class="uta-testimonial-item2"> 5 5 <div class="uta-thumbnail"> 6 <img src="<?php echo esc_url( $testimonial['image']['url'] ); ?>" alt="<?php echo esc_attr( $testimonial['name'] ); ?>"> 6 <?php if ( ! empty( $testimonial['image']['id'] ) ) : ?> 7 <?php 8 // Use wp_get_attachment_image() to display the image 9 echo wp_get_attachment_image( 10 $testimonial['image']['id'], // Image ID 11 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 12 false, // No need for the 'icon' argument 13 [ 14 'alt' => esc_attr( $testimonial['name'] ), // Alt text for the image 15 ] 16 ); 17 ?> 18 <?php endif; ?> 7 19 </div> 8 20 <div class="uta-content"> 9 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>><?php echo esc_html( $testimonial['name'] ); ?></h2> 10 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>><?php echo esc_html( $testimonial['designation'] ); ?></h5> 11 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) {?> 21 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>> 22 <?php echo esc_html( $testimonial['name'] ); ?> 23 </h2> 24 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>> 25 <?php echo esc_html( $testimonial['designation'] ); ?> 26 </h5> 27 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) : ?> 12 28 <div class="ratting"> 13 29 <span><i class="fas fa-star"></i></span> … … 17 33 <span><i class="fas fa-star"></i></span> 18 34 </div> 19 <?php }?>35 <?php endif; ?> 20 36 21 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>><?php echo esc_html( $testimonial['feedback'] ); ?></p> 37 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>> 38 <?php echo esc_html( $testimonial['feedback'] ); ?> 39 </p> 22 40 </div> 23 41 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/template/style-3.php
r2696843 r3220786 4 4 <div class="uta-testimonial-item3"> 5 5 <div class="uta-content"> 6 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>><?php echo esc_html( $testimonial['feedback'] ); ?></p> 6 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>> 7 <?php echo esc_html( $testimonial['feedback'] ); ?> 8 </p> 7 9 </div> 8 10 <div class="uta-thumbnail"> 9 <img src="<?php echo esc_url( $testimonial['image']['url'] ); ?>" alt="<?php echo esc_attr( $testimonial['name'] ); ?>"> 11 <?php if ( ! empty( $testimonial['image']['id'] ) ) : ?> 12 <?php 13 // Use wp_get_attachment_image() to display the image 14 echo wp_get_attachment_image( 15 $testimonial['image']['id'], // Image ID 16 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 17 false, // No need for the 'icon' argument 18 [ 19 'alt' => esc_attr( $testimonial['name'] ), // Alt text for the image 20 ] 21 ); 22 ?> 23 <?php endif; ?> 10 24 <div class="thumbnail-content"> 11 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>><?php echo esc_html( $testimonial['name'] ); ?></h2> 12 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>><?php echo esc_html( $testimonial['designation'] ); ?></h5> 13 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) {?> 25 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>> 26 <?php echo esc_html( $testimonial['name'] ); ?> 27 </h2> 28 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>> 29 <?php echo esc_html( $testimonial['designation'] ); ?> 30 </h5> 31 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) : ?> 14 32 <div class="ratting"> 15 33 <span><i class="fas fa-star"></i></span> … … 19 37 <span><i class="fas fa-star"></i></span> 20 38 </div> 21 <?php }?>39 <?php endif; ?> 22 40 </div> 23 41 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/template/style-4.php
r2696843 r3220786 1 2 1 <!-- Testimonial Style 4 --> 3 2 <div class="uta-testimonial-<?php echo esc_html($settings['uta_testimonial_style']);?>"> … … 6 5 <div class="uta-content"> 7 6 <div class="uta-thumbnail"> 8 <img src="<?php echo esc_url( $testimonial['image']['url'] ); ?>" alt="<?php echo esc_attr( $testimonial['name'] ); ?>"> 7 <?php if ( ! empty( $testimonial['image']['id'] ) ) : ?> 8 <?php 9 // Use wp_get_attachment_image() to display the image 10 echo wp_get_attachment_image( 11 $testimonial['image']['id'], // Image ID 12 'full', // Image size (can be changed to 'thumbnail', 'medium', etc.) 13 false, // No need for the 'icon' argument 14 [ 15 'alt' => esc_attr( $testimonial['name'] ), // Alt text for the image 16 ] 17 ); 18 ?> 19 <?php endif; ?> 9 20 <div class="icon"> 10 21 <i class="fas fa-quote-right"></i> 11 22 </div> 12 23 </div> 13 14 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>><?php echo esc_html( $testimonial['name'] ); ?></h2> 15 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>><?php echo esc_html( $testimonial['designation'] ); ?></h5> 16 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) {?> 24 25 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>> 26 <?php echo esc_html( $testimonial['name'] ); ?> 27 </h2> 28 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>> 29 <?php echo esc_html( $testimonial['designation'] ); ?> 30 </h5> 31 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) : ?> 17 32 <div class="ratting"> 18 33 <span><i class="fas fa-star"></i></span> … … 22 37 <span><i class="fas fa-star"></i></span> 23 38 </div> 24 <?php }?> 25 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>><?php echo esc_html( $testimonial['feedback'] ); ?></p> 39 <?php endif; ?> 40 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>> 41 <?php echo esc_html( $testimonial['feedback'] ); ?> 42 </p> 26 43 </div> 27 44 </div> 28 29 45 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/template/style-5.php
r2696843 r3220786 4 4 <div class="uta-testimonial-item5"> 5 5 <div class="uta-content"> 6 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>><?php echo esc_html( $testimonial['feedback'] ); ?></p> 6 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>> 7 <?php echo esc_html( $testimonial['feedback'] ); ?> 8 </p> 7 9 </div> 8 10 <div class="uta-thumbnail"> 9 <img src="<?php echo esc_url( $testimonial['image']['url'] ); ?>" alt="<?php echo esc_attr( $testimonial['name'] ); ?>"> 11 <?php if ( ! empty( $testimonial['image']['id'] ) ) : ?> 12 <?php 13 // Use wp_get_attachment_image() to retrieve and display the image with the attachment ID 14 echo wp_get_attachment_image( 15 $testimonial['image']['id'], // Image ID 16 'full', // Image size (can be changed to other sizes like 'thumbnail', 'medium', etc.) 17 false, // No need for the 'icon' argument in this case 18 [ 19 'alt' => esc_attr( $testimonial['name'] ), // Alt text for the image 20 ] 21 ); 22 ?> 23 <?php endif; ?> 10 24 <div class="uta-thumbnail-content-5"> 11 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>><?php echo esc_html( $testimonial['name'] ); ?></h2> 12 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>><?php echo esc_html( $testimonial['designation'] ); ?></h5> 13 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) {?> 25 <h2 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>> 26 <?php echo esc_html( $testimonial['name'] ); ?> 27 </h2> 28 <h5 <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>> 29 <?php echo esc_html( $testimonial['designation'] ); ?> 30 </h5> 31 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) : ?> 14 32 <div class="ratting"> 15 33 <span><i class="fas fa-star"></i></span> … … 19 37 <span><i class="fas fa-star"></i></span> 20 38 </div> 21 <?php }?>39 <?php endif; ?> 22 40 </div> 23 41 </div> -
unlimited-theme-addons/trunk/inc/elementor/widgets/testimonials/template/style-default.php
r2696843 r3220786 1 <div class="testimonial-<?php echo esc_ html($settings['uta_testimonial_style']);?>">1 <div class="testimonial-<?php echo esc_attr( $settings['uta_testimonial_style'] ); ?>"> 2 2 <div class="row justify-content-center"> 3 3 <div class="col-sm-9 text-center"> 4 <img src="<?php echo esc_url( $testimonial['image']['url'] ); ?>" alt="<?php echo esc_attr( $testimonial['name'] ); ?>"> 5 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>><?php echo esc_html( $testimonial['feedback'] ); ?></p> 6 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) {?> 4 <!-- Check if image ID exists and use wp_get_attachment_image() --> 5 <?php if ( ! empty( $testimonial['image']['id'] ) ) : ?> 6 <?php 7 // Get the image ID from the testimonial array and display it using wp_get_attachment_image() 8 echo wp_get_attachment_image( $testimonial['image']['id'], 'full', false, [ 9 'alt' => esc_attr( $testimonial['name'] ), 10 ]); 11 ?> 12 <?php endif; ?> 13 14 <!-- Testimonial text output with safe attributes --> 15 <p <?php echo esc_html( $this->get_render_attribute_string( $testimonialText ) ); ?>> 16 <?php echo esc_html( $testimonial['feedback'] ); ?> 17 </p> 18 19 <!-- Ratings display if enabled --> 20 <?php if ( 'on' == $settings['uta-testimonial-ratings'] ) : ?> 7 21 <ul> 8 22 <li><i class="fa fa-star"></i></li> … … 12 26 <li><i class="fa fa-star"></i></li> 13 27 </ul> 14 <?php }?> 15 <h5 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>><?php echo esc_html( $testimonial['name'] ); ?></h5> 16 <span <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>><?php echo esc_html( $testimonial['designation'] ); ?></span> 28 <?php endif; ?> 29 30 <!-- Name and designation with safe attributes --> 31 <h5 <?php echo esc_html( $this->get_render_attribute_string( $name ) ); ?>> 32 <?php echo esc_html( $testimonial['name'] ); ?> 33 </h5> 34 <span <?php echo esc_html( $this->get_render_attribute_string( $designation ) ); ?>> 35 <?php echo esc_html( $testimonial['designation'] ); ?> 36 </span> 17 37 </div> 18 38 </div> -
unlimited-theme-addons/trunk/readme.txt
r3195449 r3220786 1 === Unlimited Theme Addon For Elementor and WooCommerce===1 === Unlimited Theme Addon For Elementor === 2 2 Contributors: codepopular, shamimtpi, rajubdpro 3 3 Donate link: https://ko-fi.com/codepopular 4 Tags: elementor, element s, addons, elementor addon, elementor widget, elementor faq, woocommerce elementor, page builder, product grid, countdown timer, wordpress page builder4 Tags: elementor, elementor addon, elementor widget, woocommerce elementor, addons 5 5 Requires at least: 4.0 6 6 Tested up to: 6.7 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 Requires PHP: 5.6 9 License: GPLv2 or later 9 License: GPL-2.0-or-later 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 12 Short Description: Add essential Elementor addons to boost your website functionality with product grids, lists, and WooCommerce features. 10 13 11 14 == Description == … … 112 115 113 116 117 = 1.2.2 = 118 * Elementor template shortcode protected by permission. 119 * Elementor latest version compatible. 120 * Code optimized. 121 * Security improved. 122 114 123 = 1.2.1 = 115 124 * Warning fixed. -
unlimited-theme-addons/trunk/unlimited-theme-addons.php
r3195449 r3220786 4 4 * Plugin URI: https://codepopular.com/unlimited-theme-addons 5 5 * Description: Unlimited theme addons is very useful plugin to get amazing features for your website . if you are Looking to add extra functionality to the Elementor page builder then this plugin will be help for you. 6 * Version: 1.2. 16 * Version: 1.2.2 7 7 * Author: codepopular 8 8 * Author URI: https://www.codepopular.com 9 9 * Text Domain: unlimited-theme-addons 10 * License: GPL /GNU.10 * License: GPL-2.0-or-later 11 11 * Domain Path: /languages 12 12 * WP Requirement & Test … … 20 20 define('UTA_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__))); 21 21 define('UTA_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__))); 22 define('UTA_PLUGIN_VERSION', '1.2. 1');22 define('UTA_PLUGIN_VERSION', '1.2.2'); 23 23 24 24 /**----------------------------------------------------------------*/
Note: See TracChangeset
for help on using the changeset viewer.