Changeset 3401919
- Timestamp:
- 11/24/2025 02:24:33 PM (4 months ago)
- Location:
- the-pack-addon/trunk
- Files:
-
- 2 added
- 1 deleted
- 27 edited
-
assets/css/shortcode.css (modified) (3 diffs)
-
assets/js/custom.js (modified) (2 diffs)
-
includes/extension/control/motion.php (modified) (1 diff)
-
includes/extension/css (deleted)
-
includes/extension/inc/animated-border.php (modified) (1 diff)
-
includes/extension/inc/container-hover.php (modified) (4 diffs)
-
includes/extension/inc/container.php (modified) (2 diffs)
-
includes/extension/inc/icon.php (modified) (2 diffs)
-
includes/extension/inc/icon_box.php (modified) (1 diff)
-
includes/extension/inc/raw-container.php (added)
-
includes/extension/inc/section.php (modified) (1 diff)
-
includes/extension/inc/tab.php (modified) (2 diffs)
-
includes/extension/inc/translate.php (modified) (1 diff)
-
includes/extension/index.php (modified) (2 diffs)
-
includes/extension/js/editor-support.js (modified) (2 diffs)
-
includes/header-footer/index.php (modified) (1 diff)
-
includes/helper-functions.php (modified) (3 diffs)
-
includes/widgets/element/blob/index.php (modified) (2 diffs)
-
includes/widgets/element/hover_background/index.php (modified) (6 diffs)
-
includes/widgets/element/hover_background/style.css (modified) (2 diffs)
-
includes/widgets/element/hover_background/view.php (modified) (2 diffs)
-
includes/widgets/element/opening_hours/index.php (modified) (2 diffs)
-
includes/widgets/element/tab/index.php (modified) (11 diffs)
-
includes/widgets/element/tab/style.css (modified) (4 diffs)
-
includes/widgets/element/tab/view.php (modified) (1 diff)
-
includes/widgets/element/team_1/index.php (modified) (2 diffs)
-
includes/widgets/theme/post_content/index.php (modified) (2 diffs)
-
includes/widgets/theme/post_content/style.css (added)
-
includes/widgets/woocommerce/woo-category/index.php (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
the-pack-addon/trunk/assets/css/shortcode.css
r3374374 r3401919 2029 2029 @keyframes tpanimatedBackground { from { background-position: 0 0; } to { background-position: 100% 0; } } 2030 2030 2031 /*Dot corner container*/ 2032 .tp-dot { 2033 position: absolute; 2034 width: 13px; 2035 height: 13px; 2036 border-radius: 13px; 2037 z-index: 1; 2038 border-radius: 0; 2039 border: 2px solid #535862; 2040 background-color: transparent; 2041 } 2042 .tp-dot.tp-dot__top { 2043 position: absolute; 2044 top: 0; 2045 left: 0; 2046 transform: translate(-50%, -50%); 2047 top: -2px; 2048 left: -2px; 2049 border-right: none; 2050 border-bottom: none; 2051 } 2052 .tp-dot.tp-dot__bottom { 2053 position: absolute; 2054 bottom: 0; 2055 right: 0; 2056 transform: translate(50%, 50%); 2057 bottom: -2px; 2058 right: -2px; 2059 border-left: none; 2060 border-top: none; 2061 } 2062 .tp-dot.tp-dot__left { 2063 position: absolute; 2064 bottom: 0; 2065 left: 0; 2066 transform: translate(-50%, 50%); 2067 left: -2px; 2068 bottom: -2px; 2069 border-right: none; 2070 border-top: none; 2071 } 2072 .tp-dot.tp-dot__right { 2073 position: absolute; 2074 top: 0; 2075 right: 0; 2076 transform: translate(50%, -50%); 2077 top: -2px; 2078 right: -2px; 2079 border-left: none; 2080 border-bottom: none; 2081 } 2031 2082 /**/ 2032 2083 .tp_icon_slide_yes .elementor-icon{ … … 2048 2099 transition: all 0.4s ease-in-out 0s; 2049 2100 } 2050 2101 .tp_icon_blur_yes .elementor-icon::after { 2102 content: ""; 2103 position: absolute; 2104 top: 0px; 2105 left: 0px; 2106 background-blend-mode: screen, screen, color-burn; 2107 box-shadow: rgb(255, 255, 255) 23px 32px 13px -34px inset, rgb(255, 255, 255) -23px -30px 21px -34px inset, rgba(255, 255, 255, 0.2) 4px 4px 2px -4px inset, rgba(255, 255, 255, 0.2) 0px 0px 44px inset; 2108 height: 100%; 2109 width: 100%; 2110 } 2051 2111 2052 2112 /*Blob*/ … … 2253 2313 background-color: var(--maintheme); /* the main color */ 2254 2314 } 2315 2316 .tp_inverted_1 { 2317 --r: var(--mskradius,20px); /* the radius */ 2318 --s: var(--mskcurv,30px); /* size of inner curve */ 2319 --x: var(--mskx,20px); /* horizontal offset (no percentage) */ 2320 --y: var(--msky,10px); /* vertical offset (no percentage) */ 2321 --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%,#0000 72%); 2322 --_g:conic-gradient(at calc(100% - var(--r)) var(--r),#0000 25%,#000 0); 2323 --_d:(var(--s) + var(--r)); 2324 mask: 2325 calc(100% - var(--_d) - var(--x)) 0 var(--_m), 2326 100% calc(var(--_d) + var(--y)) var(--_m), 2327 radial-gradient(var(--s) at 100% 0,#0000 99%,#000 calc(100% + 1px)) 2328 calc(-1*var(--r) - var(--x)) calc(var(--r) + var(--y)), 2329 var(--_g) calc(-1*var(--_d) - var(--x)) 0, 2330 var(--_g) 0 calc(var(--_d) + var(--y)); 2331 mask-repeat: no-repeat; 2332 } 2333 .tp_inverted_2 { 2334 --r: var(--mskradius,20px); /* the radius */ 2335 --s: var(--mskcurv,30px); /* size of inner curve */ 2336 --x: var(--mskx,20px); /* horizontal offset (no percentage) */ 2337 --y: var(--msky,10px); /* vertical offset (no percentage) */ 2338 --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%,#0000 72%); 2339 --_g:conic-gradient(at var(--r) var(--r),#000 75%,#0000 0); 2340 --_d:(var(--s) + var(--r)); 2341 mask: 2342 calc(var(--_d) + var(--x)) 0 var(--_m), 2343 0 calc(var(--_d) + var(--y)) var(--_m), 2344 radial-gradient(var(--s) at 0 0,#0000 99%,#000 calc(100% + 1px)) 2345 calc(var(--r) + var(--x)) calc(var(--r) + var(--y)), 2346 var(--_g) calc(var(--_d) + var(--x)) 0, 2347 var(--_g) 0 calc(var(--_d) + var(--y)); 2348 mask-repeat: no-repeat; 2349 } 2350 .tp_inverted_3 { 2351 --r: var(--mskradius,20px); /* the radius */ 2352 --s: var(--mskcurv,30px); /* size of inner curve */ 2353 --x: var(--mskx,20px); /* horizontal offset (no percentage) */ 2354 --y: var(--msky,10px); /* vertical offset (no percentage) */ 2355 --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%,#0000 72%); 2356 --_g:conic-gradient(from 180deg at var(--r) calc(100% - var(--r)),#0000 25%,#000 0); 2357 --_d:(var(--s) + var(--r)); 2358 mask: 2359 calc(var(--_d) + var(--x)) 100% var(--_m), 2360 0 calc(100% - var(--_d) - var(--y)) var(--_m), 2361 radial-gradient(var(--s) at 0 100%,#0000 99%,#000 calc(100% + 1px)) 2362 calc(var(--r) + var(--x)) calc(-1*var(--r) - var(--y)), 2363 var(--_g) calc(var(--_d) + var(--x)) 0, 2364 var(--_g) 0 calc(-1*var(--_d) - var(--y)); 2365 mask-repeat: no-repeat; 2366 } 2367 2368 .tp_inverted_4 { 2369 --r: var(--mskradius,20px); /* the radius */ 2370 --s: var(--mskcurv,30px); /* size of inner curve */ 2371 --x: var(--mskx,20px); /* horizontal offset (no percentage) */ 2372 --y: var(--msky,10px); /* vertical offset (no percentage) */ 2373 --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%,#0000 72%); 2374 --_g:conic-gradient(from 90deg at calc(100% - var(--r)) calc(100% - var(--r)),#0000 25%,#000 0); 2375 --_d:(var(--s) + var(--r)); 2376 mask: 2377 calc(100% - var(--_d) - var(--x)) 100% var(--_m), 2378 100% calc(100% - var(--_d) - var(--y)) var(--_m), 2379 radial-gradient(var(--s) at 100% 100%,#0000 99%,#000 calc(100% + 1px)) 2380 calc(-1*var(--r) - var(--x)) calc(-1*var(--r) - var(--y)), 2381 var(--_g) calc(-1*var(--_d) - var(--x)) 0, 2382 var(--_g) 0 calc(-1*var(--_d) - var(--y)); 2383 mask-repeat: no-repeat; 2384 } 2385 .tp_inverted_5 { 2386 --r: var(--mskradius,20px); /* the radius */ 2387 --s: var(--mskcurv,30px); /* size of inner curve */ 2388 --a: var(--mskxp,20deg); /* control the depth of the curvature */ 2389 --p: var(--mskyp,50%); /* control the position */ 2390 --_m:var(--r),#000 calc(100% - 1px),#0000; 2391 --_d:(var(--s) + var(--r))*cos(var(--a)); 2392 mask: 2393 radial-gradient(var(--r) at calc(var(--p) + var(--_d)) var(--_m)), 2394 radial-gradient(var(--r) at calc(var(--p) - var(--_d)) var(--_m)), 2395 radial-gradient(var(--s) at var(--p) calc(-1*sin(var(--a))*var(--s)), 2396 #0000 100%,#000 calc(100% + 1px)) 0 calc(var(--r)*(1 - sin(var(--a)))) no-repeat, 2397 linear-gradient(90deg,#000 calc(var(--p) - var(--_d)),#0000 0 calc(var(--p) + var(--_d)),#000 0); 2398 } 2399 .tp_inverted_6 { 2400 --r: var(--mskradius,20px); /* the radius */ 2401 --s: var(--mskcurv,30px); /* size of inner curve */ 2402 --a: var(--mskxp,20deg); /* control the depth of the curvature */ 2403 --p: var(--mskyp,50%); /* control the position */ 2404 --_m:calc(100% - var(--r)),#000 calc(100% - 1px),#0000; 2405 --_d:(var(--s) + var(--r))*cos(var(--a)); 2406 mask: 2407 radial-gradient(var(--r) at calc(var(--p) + var(--_d)) var(--_m)), 2408 radial-gradient(var(--r) at calc(var(--p) - var(--_d)) var(--_m)), 2409 radial-gradient(var(--s) at var(--p) calc(100% + sin(var(--a))*var(--s)), 2410 #0000 100%,#000 calc(100% + 1px)) 0 calc(var(--r)*(sin(var(--a)) - 1)) no-repeat, 2411 linear-gradient(90deg,#000 calc(var(--p) - var(--_d)),#0000 0 calc(var(--p) + var(--_d)),#000 0); 2412 } 2413 .tp_inverted_7 { 2414 --r: var(--mskradius,20px); /* the radius */ 2415 --s: var(--mskcurv,30px); /* size of inner curve */ 2416 --a: var(--mskxp,20deg); /* control the depth of the curvature */ 2417 --p: var(--mskyp,50%); /* control the position */ 2418 --_m:,#000 calc(100% - 1px),#0000; 2419 --_d:(var(--s) + var(--r))*cos(var(--a)); 2420 mask: 2421 radial-gradient(var(--r) at var(--r) calc(var(--p) + var(--_d)) var(--_m)), 2422 radial-gradient(var(--r) at var(--r) calc(var(--p) - var(--_d)) var(--_m)), 2423 radial-gradient(var(--s) at calc(-1*sin(var(--a))*var(--s)) var(--p), 2424 #0000 100%,#000 calc(100% + 1px)) calc(var(--r)*(1 - sin(var(--a)))) 0 no-repeat, 2425 linear-gradient(#000 calc(var(--p) - var(--_d)),#0000 0 calc(var(--p) + var(--_d)),#000 0); 2426 } 2427 .tp_inverted_8 { 2428 --r: var(--mskradius,20px); /* the radius */ 2429 --s: var(--mskcurv,30px); /* size of inner curve */ 2430 --a: var(--mskxp,20deg); /* control the depth of the curvature */ 2431 --p: var(--mskyp,50%); /* control the position */ 2432 --_m:,#000 calc(100% - 1px),#0000; 2433 --_r:var(--r) at calc(100% - var(--r)); 2434 --_d:(var(--s) + var(--r))*cos(var(--a)); 2435 mask: 2436 radial-gradient(var(--_r) calc(var(--p) + var(--_d)) var(--_m)), 2437 radial-gradient(var(--_r) calc(var(--p) - var(--_d)) var(--_m)), 2438 radial-gradient(var(--s) at calc(100% + sin(var(--a))*var(--s)) var(--p), 2439 #0000 100%,#000 calc(100% + 1px)) calc(var(--r)*(sin(var(--a)) - 1)) 0 no-repeat, 2440 linear-gradient(#000 calc(var(--p) - var(--_d)),#0000 0 calc(var(--p) + var(--_d)),#000 0); 2441 } -
the-pack-addon/trunk/assets/js/custom.js
r3373509 r3401919 634 634 slider_elem.find('.tp-tap').on('click', function () { 635 635 slider_elem.removeClass('menu-is-closed').addClass('menu-is-opened'); 636 $('body').addClass('overlay-on'); 636 637 }); 637 638 … … 639 640 slider_elem.removeClass('menu-is-opened search-is-opened').addClass('menu-is-closed search-is-closed'); 640 641 slider_elem.find('.momenu-list ul').slideUp(300); 642 $('body').removeClass('overlay-on'); 641 643 }); 642 644 -
the-pack-addon/trunk/includes/extension/control/motion.php
r3368757 r3401919 528 528 'motion_fx_' . $effects_group => 'yes', 529 529 $effect_name . '_effect' => 'yes', 530 ], 530 ], 531 531 'render_type' => 'none', 532 532 'frontend_available' => true, -
the-pack-addon/trunk/includes/extension/inc/animated-border.php
r3318618 r3401919 69 69 70 70 $element->end_controls_section(); 71 71 72 $element->start_controls_section( 73 'container_invf', 74 [ 75 'label' => esc_html__('Mask radius', 'the-pack-addon'), 76 'tab' => Controls_Manager::TAB_STYLE, 77 ] 78 ); 79 $element->add_control( 80 'tpconid', 81 [ 82 'label' => esc_html__('Select style', 'the-pack-addon'), 83 'type' => Controls_Manager::SELECT, 84 'options' => [ 85 '' => __( 'None', 'the-pack-addon' ), 86 'tp_inverted_1' => __( 'One', 'the-pack-addon' ), 87 'tp_inverted_2' => __( 'Two', 'the-pack-addon' ), 88 'tp_inverted_3' => __( 'Three', 'the-pack-addon' ), 89 ], 90 'prefix_class' => '' 91 ] 92 ); 93 $element->end_controls_section(); 94 72 95 } 73 96 } -
the-pack-addon/trunk/includes/extension/inc/container-hover.php
r3318618 r3401919 22 22 'tp_element_translate' 23 23 ], 10, 2); 24 add_action('elementor/element/common/_section_style/after_section_end', [ 25 __CLASS__, 26 'tp_element_translate' 27 ], 20, 2); 24 28 add_action('elementor/frontend/container/before_render', [ 25 29 __CLASS__, … … 41 45 42 46 public static function tp_element_translate($element, $args) 43 { 47 { 48 if ('container' == $element->get_name()) { 49 $selector = '{{WRAPPER}}'; 50 } else { 51 $selector = '{{WRAPPER}}>.elementor-widget-container'; 52 } 53 44 54 $element->start_controls_section( 45 55 'container_hov', … … 58 68 ] 59 69 ); 60 70 61 71 $element->add_group_control( 62 72 Group_Control_Background::get_type(), … … 69 79 70 80 $element->end_controls_section(); 71 81 82 $element->start_controls_section( 83 'container_invf', 84 [ 85 'label' => esc_html__('Mask radius', 'the-pack-addon'), 86 'tab' => Controls_Manager::TAB_STYLE, 87 ] 88 ); 89 $element->add_control( 90 'tpconid', 91 [ 92 'label' => esc_html__('Select style', 'the-pack-addon'), 93 'type' => Controls_Manager::SELECT, 94 'options' => [ 95 '' => __( 'None', 'the-pack-addon' ), 96 'tp_inverted_1' => __( 'One', 'the-pack-addon' ), 97 'tp_inverted_2' => __( 'Two', 'the-pack-addon' ), 98 'tp_inverted_3' => __( 'Three', 'the-pack-addon' ), 99 'tp_inverted_4' => __( 'Four', 'the-pack-addon' ), 100 'tp_inverted_5' => __( 'Five', 'the-pack-addon' ), 101 'tp_inverted_6' => __( 'Six', 'the-pack-addon' ), 102 'tp_inverted_7' => __( 'Seven', 'the-pack-addon' ), 103 'tp_inverted_8' => __( 'Eight', 'the-pack-addon' ), 104 ], 105 'prefix_class' => '' 106 ] 107 ); 108 109 $element->add_responsive_control( 110 'tpconrd', 111 [ 112 'label' => esc_html__('Radius', 'the-pack-addon'), 113 'type' => Controls_Manager::SLIDER, 114 'selectors' => [ 115 $selector => '--mskradius:{{SIZE}}{{UNIT}};', 116 ], 117 'condition' => [ 118 'tpconid!' => '', 119 ], 120 ] 121 ); 122 $element->add_responsive_control( 123 'tpcurrd', 124 [ 125 'label' => esc_html__('Curve size', 'the-pack-addon'), 126 'type' => Controls_Manager::SLIDER, 127 'selectors' => [ 128 $selector => '--mskcurv:{{SIZE}}{{UNIT}};', 129 ], 130 'condition' => [ 131 'tpconid!' => '', 132 ], 133 ] 134 ); 135 $element->add_responsive_control( 136 'tpcurx', 137 [ 138 'label' => esc_html__('Horizontal position', 'the-pack-addon'), 139 'type' => Controls_Manager::SLIDER, 140 'selectors' => [ 141 $selector => '--mskx:{{SIZE}}{{UNIT}};', 142 ], 143 'condition' => [ 144 'tpconid!' => ['','tp_inverted_5','tp_inverted_6','tp_inverted_7','tp_inverted_8'], 145 ], 146 ] 147 ); 148 $element->add_responsive_control( 149 'tpcury', 150 [ 151 'label' => esc_html__('Vertical position', 'the-pack-addon'), 152 'type' => Controls_Manager::SLIDER, 153 'selectors' => [ 154 $selector => '--msky:{{SIZE}}{{UNIT}};', 155 ], 156 'condition' => [ 157 'tpconid!' => ['','tp_inverted_5','tp_inverted_6','tp_inverted_7','tp_inverted_8'], 158 ], 159 ] 160 ); 161 162 $element->add_responsive_control( 163 'tpcurxp', 164 [ 165 'label' => esc_html__('Curvature depth', 'the-pack-addon'), 166 'type' => Controls_Manager::SLIDER, 167 'selectors' => [ 168 $selector => '--mskxp:{{SIZE}}deg;', 169 ], 170 'condition' => [ 171 'tpconid!' => ['','tp_inverted_1','tp_inverted_2','tp_inverted_3','tp_inverted_4'], 172 ], 173 ] 174 ); 175 $element->add_responsive_control( 176 'tpcuryp', 177 [ 178 'label' => esc_html__('Vertical position', 'the-pack-addon'), 179 'type' => Controls_Manager::SLIDER, 180 'selectors' => [ 181 $selector => '--mskyp:{{SIZE}}%;', 182 ], 183 'condition' => [ 184 'tpconid!' => ['','tp_inverted_1','tp_inverted_2','tp_inverted_3','tp_inverted_4'], 185 ], 186 ] 187 ); 188 $element->end_controls_section(); 72 189 } 73 190 } -
the-pack-addon/trunk/includes/extension/inc/container.php
r3368757 r3401919 30 30 'before_render_options' 31 31 ], 10, 2); 32 33 add_action('thepack_element_container/before-render', [ 34 __CLASS__, 35 'pxl_before_render_options' 36 ], 10, 2); 37 38 } 39 public static function pxl_before_render_options($html, $settings) 40 { 41 if (!empty($settings['tp_dot_container_pos']) && is_array($settings['tp_dot_container_pos'])) { 42 $items = $settings['tp_dot_container_pos']; 43 44 foreach ($items as $item) { 45 $html .= '<span class="tp-dot tp-dot__' . esc_attr($item) . '"></span>'; 46 } 47 } 48 49 return $html; 32 50 } 33 51 … … 355 373 ); 356 374 $element->end_controls_section(); 357 375 376 $element->start_controls_section( 377 'pxl_container_dot', 378 [ 379 'label' => __('Dot Container', 'the-pack-addon'), 380 'tab' => \Elementor\Controls_Manager::TAB_LAYOUT, 381 ] 382 ); 383 384 $element->add_control( 385 'tp_dot_container_pos', 386 [ 387 'label' => esc_html__('Dot Container Position', 'the-pack-addon'), 388 'type' => \Elementor\Controls_Manager::SELECT2, 389 'multiple' => true, 390 'options' => [ 391 'top' => esc_html__('Top Left', 'the-pack-addon'), 392 'left' => esc_html__('Top Right', 'the-pack-addon'), 393 'right' => esc_html__('Bottom Right', 'the-pack-addon'), 394 'bottom' => esc_html__('Bottom Left', 'the-pack-addon'), 395 ], 396 'default' => [], 397 ] 398 ); 399 400 $element->end_controls_section(); 401 358 402 } 359 403 } -
the-pack-addon/trunk/includes/extension/inc/icon.php
r3318618 r3401919 22 22 public static function tp_callback_function($element, $args) 23 23 { 24 $element->start_controls_section( 24 $element->start_controls_section( 25 25 'tpbtnsx', 26 26 [ … … 50 50 ); 51 51 52 do_action('the_pack_svg_path_color', $element,'ikb','svg path'); 53 52 54 $element->end_controls_section(); 53 55 } -
the-pack-addon/trunk/includes/extension/inc/icon_box.php
r3368757 r3401919 285 285 ] 286 286 ); 287 $element->add_control( 288 'ibgrbh', 289 [ 290 'label' => esc_html__('Enable blur background', 'the-pack-addon'), 291 'type' => Controls_Manager::SWITCHER, 292 'prefix_class' => 'tp_icon_blur_', 293 ] 294 ); 295 $element->add_responsive_control( 296 'ibbrdq', 297 [ 298 'label' => esc_html__('Blur border radius', 'the-pack-addon'), 299 'type' => Controls_Manager::SLIDER, 300 'range' => [ 301 'px' => [ 302 'max' => 500, 303 ] 304 ], 305 'condition' => [ 306 'ibgrbh' => 'yes', 307 ], 308 'selectors' => [ 309 '{{WRAPPER}} .elementor-icon::after' => 'border-radius: {{SIZE}}{{UNIT}};', 310 ], 311 ] 312 ); 313 314 do_action('the_pack_svg_path_color', $element,'ikbudx_','svg path'); 315 287 316 $element->end_controls_section(); 288 317 } -
the-pack-addon/trunk/includes/extension/inc/section.php
r3318618 r3401919 10 10 class jl_section_overlay 11 11 { 12 public static function init() 12 public static function init() 13 13 { 14 14 add_action('elementor/element/section/section_background_overlay/before_section_end', [ -
the-pack-addon/trunk/includes/extension/inc/tab.php
r3368757 r3401919 18 18 'tp_callback_function' 19 19 ], 10, 2); 20 21 add_action('elementor/element/nested-tabs/section_title_style/before_section_end', [ 22 __CLASS__, 23 'extra_control' 24 ], 10, 2); 25 26 } 27 28 public static function extra_control($element, $args){ 29 30 $element->add_responsive_control( 31 'tpttbg', 32 [ 33 'label' => esc_html__('Wrapper background', 'the-pack-addon'), 34 'type' => Controls_Manager::COLOR, 35 'selectors' => [ 36 '{{WRAPPER}} .e-n-tabs-heading' => 'background: {{VALUE}};', 37 ], 38 ] 39 ); 40 41 $element->add_responsive_control( 42 'tptmws', 43 [ 44 'label' => esc_html__('Wrapper max width', 'the-pack-addon'), 45 'type' => Controls_Manager::SLIDER, 46 'range' => [ 47 'px' => [ 48 'max' => 1500, 49 ], 50 ], 51 'selectors' => [ 52 '{{WRAPPER}} .e-n-tabs-heading' => 'width:{{SIZE}}{{UNIT}};margin: auto;', 53 ], 54 55 ] 56 ); 57 58 $element->add_responsive_control( 59 'tpttbrd', 60 [ 61 'label' => esc_html__('Wrapper border radius', 'the-pack-addon'), 62 'type' => Controls_Manager::SLIDER, 63 'selectors' => [ 64 '{{WRAPPER}} .e-n-tabs-heading' => 'border-radius:{{SIZE}}{{UNIT}};', 65 ], 66 67 ] 68 ); 69 20 70 } 21 71 … … 105 155 ] 106 156 ); 107 $element->add_responsive_control( 108 'tpttbg', 109 [ 110 'label' => esc_html__('Title wrapper background', 'the-pack-addon'), 111 'type' => Controls_Manager::COLOR, 112 'selectors' => [ 113 '{{WRAPPER}} .e-n-tabs-heading' => 'background: {{VALUE}};', 114 ], 115 ] 116 ); 157 117 158 $element->add_responsive_control( 118 159 'tpttpd', -
the-pack-addon/trunk/includes/extension/inc/translate.php
r3374374 r3401919 310 310 ] 311 311 ); 312 312 $element->add_responsive_control( 313 'tpopx', 314 [ 315 'label' => esc_html__('Opacity', 'the-pack-addon'), 316 'type' => Controls_Manager::SLIDER, 317 'range' => [ 318 'px' =>[ 319 'max' => 1, 320 'step' => .1, 321 ], 322 ], 323 'selectors' => [ 324 '{{WRAPPER}}' => 'opacity:{{SIZE}};', 325 ], 326 ] 327 ); 313 328 $element->end_controls_section(); 314 329 -
the-pack-addon/trunk/includes/extension/index.php
r3368757 r3401919 19 19 { 20 20 add_action('elementor/preview/enqueue_scripts', [$this, 'ooohboi_register_scripts_front']); 21 add_action('wp_enqueue_scripts', [$this, 'thepack_frontend_styles']);22 21 } 23 22 … … 53 52 wp_enqueue_script('thepack-section', plugins_url('js/thepack-section.js', __FILE__), [], THE_PACK_PLUGIN_VERSION, true); 54 53 } 55 56 public function thepack_frontend_styles()57 {58 wp_enqueue_style('thepack-section', plugins_url('css/style.css', __FILE__), [], THE_PACK_PLUGIN_VERSION, true);59 }60 54 } 61 55 -
the-pack-addon/trunk/includes/extension/js/editor-support.js
r3001543 r3401919 23 23 elementor.hooks.addFilter('editor/style/styleText', addCustomCss); 24 24 25 26 function thepack_section_start_render() { 27 var _elementor = typeof elementor !== "undefined" ? elementor : elementorFrontend; 28 29 if (!_elementor || !_elementor.hooks) { 30 console.warn("Elementor hooks not available"); 31 return; 32 } 33 34 _elementor.hooks.addFilter( 35 "thepack_element_container/before-render", 36 function (html, settings, el) { 37 38 if ( 39 typeof settings.tp_dot_container_pos !== "undefined" && 40 Array.isArray(settings.tp_dot_container_pos) && 41 settings.tp_dot_container_pos.length > 0 42 ) { 43 var items = settings.tp_dot_container_pos; 44 items.forEach(function (item) { 45 html += '<span class="tp-dot tp-dot__' + item + '"></span>'; 46 }); 47 } 48 49 return html; 50 } 51 ); 52 53 } 54 55 25 56 function addPageCustomCss() { 26 57 … … 30 61 elementor.settings.page.getControlsCSS().elements.$stylesheetElement.append(customCSS); 31 62 } 63 64 try { 65 if (typeof thepack_section_start_render === "function") { 66 thepack_section_start_render(); 67 } 68 } catch (error) { 69 console.error("Error initializing custom functions:", error); 70 } 71 32 72 } 33 73 // elementor.settings.page.model.on('change', addPageCustomCss); -
the-pack-addon/trunk/includes/header-footer/index.php
r3281386 r3401919 1 1 <?php 2 2 3 if(!class_exists('The_Pack_Kit') ){3 if(!class_exists('The_Pack_Kit') || !defined( 'ELEMENTOR_PRO_VERSION' ) ){ 4 4 class The_Pack_Kit{ 5 5 /** -
the-pack-addon/trunk/includes/helper-functions.php
r3374374 r3401919 679 679 return $out; 680 680 681 } 682 683 add_action( 'the_pack_svg_path_color', 'tp_svg_path_color',10,3); 684 685 function tp_svg_path_color($wb,$prefix,$selector){ 686 687 $wb->add_control( 688 $prefix.'tpsvg', 689 [ 690 'label' => esc_html__('SVG path color', 'the-pack-addon'), 691 'type' => Controls_Manager::COLOR, 692 'description'=>'Applicable for svg upload', 693 'selectors' => [ 694 '{{WRAPPER}} '.$selector => 'fill: {{VALUE}} !important;', 695 ], 696 ] 697 ); 698 681 699 } 682 700 add_action( 'the_pack_flex', 'tp_flex_control',10,4); … … 852 870 'type' => Controls_Manager::SLIDER, 853 871 'selectors' => [ 854 '{{WRAPPER}} '.$selector => 'width:{{SIZE}} px;height:{{SIZE}}{{UNIT}};',872 '{{WRAPPER}} '.$selector => 'width:{{SIZE}}{{UNIT}};', 855 873 ], 856 874 … … 865 883 'type' => Controls_Manager::SLIDER, 866 884 'selectors' => [ 867 '{{WRAPPER}} '.$selector => ' width:{{SIZE}}{{UNIT}};height:{{SIZE}}{{UNIT}};',885 '{{WRAPPER}} '.$selector => 'height:{{SIZE}}{{UNIT}};', 868 886 ], 869 887 -
the-pack-addon/trunk/includes/widgets/element/blob/index.php
r3368757 r3401919 53 53 [ 54 54 'label' => esc_html__('Width', 'the-pack-addon'), 55 'type' => Controls_Manager::SLIDER, 55 'type' => Controls_Manager::SLIDER, 56 'size_units' => ['px', '%'], 56 57 'range' => [ 57 58 'px' => [ 58 59 'max' => 1000, 59 60 ] 60 ], 61 ], 61 62 'selectors' => [ 62 63 '{{WRAPPER}} .tp-blob' => 'width: {{SIZE}}{{UNIT}};', … … 69 70 [ 70 71 'label' => esc_html__('Height', 'the-pack-addon'), 71 'type' => Controls_Manager::SLIDER, 72 'type' => Controls_Manager::SLIDER, 73 'size_units' => ['px', '%'], 72 74 'range' => [ 73 75 'px' => [ -
the-pack-addon/trunk/includes/widgets/element/hover_background/index.php
r3281386 r3401919 169 169 [ 170 170 'label' => esc_html__('Padding', 'the-pack-addon'), 171 'type' => Controls_Manager::DIMENSIONS, 172 'size_units' => ['px', '%', 'vh'], 173 'selectors' => [ 174 '{{WRAPPER}} .bari_assex_slider' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 175 ], 176 ] 177 ); 178 179 $this->add_responsive_control( 180 'wrpwidt', 181 [ 182 'label' => esc_html__('Height', 'the-pack-addon'), 171 183 'type' => Controls_Manager::SLIDER, 172 184 'range' => [ … … 179 191 'size_units' => ['px', '%', 'vh'], 180 192 'selectors' => [ 181 '{{WRAPPER}} .bari_assex_slider' => 'padding: {{SIZE}}{{UNIT}} 0px;', 182 ], 183 184 ] 185 ); 186 187 $this->add_responsive_control( 188 'wrpwidt', 189 [ 190 'label' => esc_html__('Height', 'the-pack-addon'), 191 'type' => Controls_Manager::SLIDER, 192 'range' => [ 193 'px' => [ 194 'min' => 0, 195 'max' => 1500, 196 'step' => 1, 197 ] 198 ], 199 'size_units' => ['px', '%', 'vh'], 200 'selectors' => [ 201 '{{WRAPPER}} .bari_assex_slider' => 'height: {{SIZE}}{{UNIT}};', 193 '{{WRAPPER}} .bari_assex_slider' => 'min-height: {{SIZE}}{{UNIT}};', 202 194 ], 203 195 … … 257 249 'type' => Controls_Manager::COLOR, 258 250 'selectors' => [ 259 '{{WRAPPER}} .post-content' => 'border-color: {{VALUE}};',260 251 '{{WRAPPER}} .title,{{WRAPPER}} .cat' => 'color: {{VALUE}};', 261 252 ], … … 269 260 'type' => Controls_Manager::COLOR, 270 261 'selectors' => [ 271 '{{WRAPPER}} .post-content:hover,{{WRAPPER}} .post-item.active .post-content' => 'border-color: {{VALUE}};background: {{VALUE}};', 272 ], 273 ] 274 ); 275 262 '{{WRAPPER}} .post-content:hover,{{WRAPPER}} .post-item.active .post-content' => 'background: {{VALUE}};', 263 ], 264 ] 265 ); 266 267 $this->add_control( 268 'bdclr', 269 [ 270 'label' => esc_html__('Border color', 'the-pack-addon'), 271 'type' => Controls_Manager::COLOR, 272 'selectors' => [ 273 '{{WRAPPER}} .post-content' => 'border:1px solid {{VALUE}};', 274 ], 275 ] 276 ); 277 $this->add_responsive_control( 278 'gbrade', 279 [ 280 'label' => esc_html__('Border radius', 'the-pack-addon'), 281 'type' => Controls_Manager::SLIDER, 282 'selectors' => [ 283 '{{WRAPPER}} .post-content' => 'border-radius: {{SIZE}}{{UNIT}};overflow: hidden;', 284 ], 285 ] 286 ); 276 287 $this->add_responsive_control( 277 288 'itmmxh', … … 300 311 'type' => Controls_Manager::DIMENSIONS, 301 312 'size_units' => ['px', 'em'], 302 /*'allowed_dimensions'=>['left','right'],*/303 313 'selectors' => [ 304 314 '{{WRAPPER}} .post-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', … … 306 316 ] 307 317 ); 308 318 $this->add_responsive_control( 319 'tpbdgf', 320 [ 321 'label' => esc_html__('Backdrop blur', 'the-pack-addon'), 322 'type' => Controls_Manager::SLIDER, 323 'selectors' => [ 324 '{{WRAPPER}} .post-content:hover,{{WRAPPER}} .post-item.active .post-content' => 'backdrop-filter:blur({{SIZE}}{{UNIT}});-webkit-backdrop-filter:blur({{SIZE}}{{UNIT}});', 325 ], 326 ] 327 ); 309 328 $this->end_controls_section(); 310 329 -
the-pack-addon/trunk/includes/widgets/element/hover_background/style.css
r2734104 r3401919 9 9 background: #00000096; 10 10 } 11 11 .overlay-on .bari_assex_slider .post-content{ 12 z-index: 0; 13 } 12 14 .assex-wrap { 13 15 margin: 0px auto; … … 89 91 height: 100%; 90 92 background-size: cover; 91 background-position: center ;93 background-position: center center; 92 94 opacity: 0; 93 95 -webkit-transition: all .5s ease; -
the-pack-addon/trunk/includes/widgets/element/hover_background/view.php
r3320280 r3401919 16 16 $fcls = ''; 17 17 } 18 $img = $a['bg'] ? 'style="background-image:url(' . $a['bg']['url'] . ')"' : ''; 18 19 $img = thepack_bg_images($a['bg']['id'], 'full'); 19 20 $title = $a['title'] ? '<h2 class="title">' . $a['title'] . '</h2>' : ''; 20 21 $cat = $a['cat'] ? '<span class="cat">' . $a['cat'] . '</span>' : ''; … … 24 25 $out .= ' 25 26 <div class="post-item ' . $fcls . '"> 26 <div class="slider-bg"><div class="inner"><div ' . $img . ' class="wrap "></div></div></div>27 <div class="slider-bg"><div class="inner"><div ' . $img . ' class="wrap lazyload"></div></div></div> 27 28 <a ' . $target . ' href="' . $url . '"> 28 29 <div class="post-content"> -
the-pack-addon/trunk/includes/widgets/element/opening_hours/index.php
r3368757 r3401919 134 134 'px' => [ 135 135 'max' => 500, 136 'min' => 1,137 'step' => 1,138 136 ] 139 137 ], … … 155 153 'selectors' => [ 156 154 '{{WRAPPER}} li:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}};padding-bottom: {{SIZE}}{{UNIT}};', 155 ], 156 157 ] 158 ); 159 160 $this->add_responsive_control( 161 'fgpd', 162 [ 163 'label' => esc_html__('Gap', 'the-pack-addon'), 164 'type' => Controls_Manager::SLIDER, 165 'selectors' => [ 166 '{{WRAPPER}} li' => 'gap: {{SIZE}}{{UNIT}};', 157 167 ], 158 168 -
the-pack-addon/trunk/includes/widgets/element/tab/index.php
r3368757 r3401919 1 1 <?php 2 2 namespace ThePackAddon\Widgets; 3 use Elementor\Plugin; 3 4 use Elementor\Widget_Base; 4 5 use Elementor\Controls_Manager; 5 6 use Elementor\Group_Control_Typography; 6 7 use Elementor\Group_Control_Border; 7 use Elementor\Group_Control_Background;8 use Elementor\Group_Control_Box_Shadow;9 use Elementor\utils;10 8 11 9 if (!defined('ABSPATH')) { … … 66 64 67 65 $repeater->add_control( 66 'pre', 67 [ 68 'type' => Controls_Manager::TEXT, 69 'label_block' => true, 70 'label' => esc_html__('Pre title', 'the-pack-addon'), 71 ] 72 ); 73 74 $repeater->add_control( 68 75 'title', 69 76 [ … … 183 190 'tab' => Controls_Manager::TAB_STYLE, 184 191 ] 185 ); 192 ); 186 193 $this->add_responsive_control( 187 194 'fwhd', … … 195 202 ); 196 203 do_action('the_pack_flex', $this,'tt_','.tab-area',['']); 204 205 $this->add_control( 206 'tgv_bg', 207 [ 208 'label' => esc_html__('Background', 'the-pack-addon'), 209 'type' => Controls_Manager::COLOR, 210 'selectors' => [ 211 '{{WRAPPER}} .tab-area' => 'background: {{VALUE}};', 212 ], 213 ] 214 ); 215 $this->add_responsive_control( 216 'tgvpad', 217 [ 218 'label' => esc_html__('Padding', 'the-pack-addon'), 219 'type' => Controls_Manager::DIMENSIONS, 220 'selectors' => [ 221 '{{WRAPPER}} .tab-area' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 222 ], 223 ] 224 ); 225 $this->add_responsive_control( 226 'tgvbrd', 227 [ 228 'label' => esc_html__('Border radius', 'the-pack-addon'), 229 'type' => Controls_Manager::SLIDER, 230 'selectors' => [ 231 '{{WRAPPER}} .tab-area' => 'border-radius: {{SIZE}}{{UNIT}};', 232 ], 233 234 ] 235 ); 236 237 $this->end_controls_section(); 238 239 $this->start_controls_section( 240 'section_pre', 241 [ 242 'label' => esc_html__('Pre Title', 'the-pack-addon'), 243 'tab' => Controls_Manager::TAB_STYLE, 244 ] 245 ); 246 $this->add_control( 247 'preabs', 248 [ 249 'label' => esc_html__('Absolute position', 'the-pack-addon'), 250 'type' => Controls_Manager::SWITCHER, 251 'return_value'=>'preabs', 252 ] 253 ); 254 $this->add_responsive_control( 255 'prevp', 256 [ 257 'label' => esc_html__('Vertical position', 'the-pack-addon'), 258 'type' => Controls_Manager::SLIDER, 259 'range' => [ 260 'px' => [ 261 'min' => -200, 262 'max' => 200, 263 ], 264 ], 265 'condition' => [ 266 'preabs' => 'preabs', 267 ], 268 'selectors' => [ 269 '{{WRAPPER}} .tab-area .pre' => 'top: {{SIZE}}{{UNIT}};', 270 ], 271 ] 272 ); 273 274 do_action('the_pack_typo', $this,'pref_','.tab-area .pre',['bg','width','padding','radius','border']); 197 275 198 276 $this->end_controls_section(); … … 212 290 'size_units' => ['em', 'px'], 213 291 'selectors' => [ 214 '{{WRAPPER}} li' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 215 ], 292 '{{WRAPPER}} .tab-area>li' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 293 ], 294 ] 295 ); 296 $this->add_group_control( 297 Group_Control_Typography::get_type(), 298 [ 299 'name' => 'bgz_ty', 300 'label' => esc_html__('Typography', 'the-pack-addon'), 301 'selector' => '{{WRAPPER}} .tab-area>li', 302 ] 303 ); 304 $this->add_responsive_control( 305 'bgzrd', 306 [ 307 'label' => esc_html__('Border radius', 'the-pack-addon'), 308 'type' => Controls_Manager::SLIDER, 309 'selectors' => [ 310 '{{WRAPPER}} .tab-area>li' => 'border-radius: {{SIZE}}{{UNIT}};', 311 ], 312 216 313 ] 217 314 ); … … 232 329 'type' => Controls_Manager::COLOR, 233 330 'selectors' => [ 234 '{{WRAPPER}} li' => 'background: {{VALUE}};', 235 ], 236 ] 237 ); 331 '{{WRAPPER}} .tab-area>li' => 'background: {{VALUE}};', 332 ], 333 ] 334 ); 335 $this->add_control( 336 'ntklr', 337 [ 338 'label' => esc_html__('Color', 'the-pack-addon'), 339 'type' => Controls_Manager::COLOR, 340 'selectors' => [ 341 '{{WRAPPER}} .tab-area>li' => 'color: {{VALUE}};', 342 ], 343 ] 344 ); 238 345 $this->add_group_control( 239 346 Group_Control_Border::get_type(), … … 241 348 'name' => 'nabdr', 242 349 'label' => esc_html__('Border', 'the-pack-addon'), 243 'selector' => '{{WRAPPER}} li',350 'selector' => '{{WRAPPER}} .tab-area>li', 244 351 ] 245 352 ); … … 258 365 'type' => Controls_Manager::COLOR, 259 366 'selectors' => [ 260 '{{WRAPPER}} li.active' => 'background: {{VALUE}};', 261 ], 262 ] 263 ); 367 '{{WRAPPER}} .tab-area>li.active' => 'background: {{VALUE}};', 368 ], 369 ] 370 ); 371 $this->add_control( 372 'ntkalr', 373 [ 374 'label' => esc_html__('Color', 'the-pack-addon'), 375 'type' => Controls_Manager::COLOR, 376 'selectors' => [ 377 '{{WRAPPER}} .tab-area>li.active' => 'color: {{VALUE}};', 378 ], 379 ] 380 ); 381 264 382 $this->add_group_control( 265 383 Group_Control_Border::get_type(), … … 267 385 'name' => 'ntr', 268 386 'label' => esc_html__('Border', 'the-pack-addon'), 269 'selector' => '{{WRAPPER}} li.active',387 'selector' => '{{WRAPPER}} .tab-area>li.active', 270 388 ] 271 389 ); … … 275 393 276 394 $this->end_controls_section(); 277 278 395 279 396 $this->start_controls_section( … … 384 501 require dirname(__FILE__) . '/view.php'; 385 502 } 386 503 387 504 private function icon_image($icon) 388 505 { 389 506 $type = $icon['type']; 390 507 if ($type == 'template') { 391 return do_shortcode('[THEPACK_INSERT_TPL id="' . $icon['template'] . '"]'); 392 ; 508 return Plugin::instance()->frontend->get_builder_content_for_display($icon['template']); 393 509 } else { 394 510 return $icon['content']; -
the-pack-addon/trunk/includes/widgets/element/tab/style.css
r3368757 r3401919 1 2 .tp-tab-1 .tab-area { 1 .tp-tab-1 .tab-area { 3 2 margin: 0; 4 3 padding: 0; … … 7 6 .tp-tab-1 .tab-area li { 8 7 cursor: pointer; 8 position: relative; 9 9 } 10 10 … … 12 12 display: none; 13 13 } 14 14 15 15 .tp-tab-1 .tab-content.active { 16 16 display: block; … … 29 29 } 30 30 31 .tp-tab-1.preabs .pre { 32 position: absolute; 33 left: 50%; 34 transform: translateX(-50%); 35 } -
the-pack-addon/trunk/includes/widgets/element/tab/view.php
r3368757 r3401919 3 3 foreach ($settings['tabs'] as $a) { 4 4 $icon = the_pack_render_icon($a['icon'], 'actikn'); 5 $label .= '<li class="tp-flex-equal tbtr">'.$icon.'<span>' . $a['title'] . '</span></li>'; 5 $pre = thepack_build_html($a['pre'],'span','pre'); 6 $label .= '<li class="tbtr">'.$pre.'<div class="tp-flex-equal">'.$icon.'<span>' . $a['title'] . '</span></div></li>'; 6 7 $content .= '<div class="tab-content">' . $this->icon_image($a) . '</div>'; 7 8 } 8 ?> 9 <div class="tp-tab tp-tab-1 tp-flex-equal <?php echo esc_attr($settings['style']); ?>"> 10 <ul class="tab-area tp-flex-equal"> 11 <?php //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped ?> 12 <?php echo thepack_build_html($label); ?> 9 $cls = $settings['style'].' '.$settings['preabs']; 10 ?> 11 <div class="tp-tab tp-tab-1 tp-flex-equal <?php echo esc_attr($cls);?>"> 12 <ul class="tab-area tp-flex-equal raw-style"> 13 <?php //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped ?> 14 <?php echo thepack_build_html($label); ?> 13 15 </ul> 14 16 <div class="tab-wrap"> 15 <?php //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped ?>16 <?php echo thepack_build_html($content); ?>17 <?php //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped ?> 18 <?php echo thepack_build_html($content); ?> 17 19 </div> 18 20 </div> -
the-pack-addon/trunk/includes/widgets/element/team_1/index.php
r3371551 r3401919 1 1 <?php 2 2 namespace ThePackAddon\Widgets; 3 4 3 use Elementor\Widget_Base; 5 4 use Elementor\Controls_Manager; 6 use Elementor\Group_Control_Typography;7 use Elementor\Group_Control_Background;8 use Elementor\Group_Control_Box_Shadow;9 5 use Elementor\utils; 10 6 … … 360 356 ] 361 357 ); 358 $this->add_responsive_control( 359 'obrfdc', 360 [ 361 'label' => esc_html__('Icon size', 'the-pack-addon'), 362 'type' => Controls_Manager::SLIDER, 363 'selectors' => [ 364 '{{WRAPPER}} .social a' => 'font-size: {{SIZE}}{{UNIT}};', 365 ], 366 ] 367 ); 368 362 369 $this->add_control( 363 370 'xf_bg', -
the-pack-addon/trunk/includes/widgets/theme/post_content/index.php
r3190823 r3401919 34 34 protected function register_controls() 35 35 { 36 $this->start_controls_section( 36 $this->start_controls_section( 37 37 'section_cont', 38 38 [ 39 39 'label' => esc_html__('Content', 'the-pack-addon'), 40 'tab' => Controls_Manager::TAB_STYLE,41 40 ] 42 41 ); … … 260 259 261 260 $this->end_controls_section(); 261 262 $this->start_controls_section( 263 'section_list', 264 [ 265 'label' => esc_html__('Lists', 'news-element'), 266 'tab' => Controls_Manager::TAB_STYLE, 267 ] 268 ); 269 270 $this->add_control( 271 'uliklg', 272 [ 273 'label' => esc_html__('Color', 'the-pack-addon'), 274 'type' => Controls_Manager::COLOR, 275 'selectors' => [ 276 '{{WRAPPER}} .wp-block-list li' => 'color: {{VALUE}};', 277 ], 278 ] 279 ); 280 281 $this->add_group_control( 282 Group_Control_Typography::get_type(), 283 [ 284 'name' => 'uli_typo', 285 'selector' => '{{WRAPPER}} .wp-block-list li', 286 'label' => esc_html__('Typography', 'the-pack-addon'), 287 ] 288 ); 289 $this->add_responsive_control( 290 'uli-pad', 291 [ 292 'label' => esc_html__('Padding', 'the-pack-addon'), 293 'type' => Controls_Manager::DIMENSIONS, 294 'selectors' => [ 295 '{{WRAPPER}} .wp-block-list' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 296 ], 297 ] 298 ); 299 $this->add_responsive_control( 300 'uligp', 301 [ 302 'label' => esc_html__('Gap', 'the-pack-addon'), 303 'type' => Controls_Manager::SLIDER, 304 'selectors' => [ 305 '{{WRAPPER}} .wp-block-list' => 'gap: {{SIZE}}{{UNIT}};', 306 ], 307 ] 308 ); 309 310 $this->end_controls_section(); 311 312 $this->start_controls_section( 313 'section_img', 314 [ 315 'label' => esc_html__('Image', 'news-element'), 316 'tab' => Controls_Manager::TAB_STYLE, 317 ] 318 ); 319 320 $this->start_controls_tabs('maling'); 321 322 $this->start_controls_tab( 323 'img1', 324 [ 325 'label' => esc_html__( 'Left', 'news-element' ), 326 ] 327 ); 328 329 $this->add_responsive_control( 330 'img1-mr', 331 [ 332 'label' => esc_html__('Margin', 'news-element'), 333 'type' => Controls_Manager::DIMENSIONS, 334 'size_units' => ['px', 'em'], 335 'selectors' => [ 336 '{{WRAPPER}} .wp-block-image .alignleft' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 337 ] 338 ] 339 ); 340 341 $this->end_controls_tab(); 342 343 $this->start_controls_tab( 344 'img2', 345 [ 346 'label' => esc_html__( 'Center', 'news-element' ), 347 ] 348 ); 349 350 $this->add_responsive_control( 351 'img2-mr', 352 [ 353 'label' => esc_html__('Margin', 'news-element'), 354 'type' => Controls_Manager::DIMENSIONS, 355 'size_units' => ['px', 'em'], 356 'selectors' => [ 357 '{{WRAPPER}} .wp-block-image .aligncenter' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 358 ] 359 ] 360 ); 361 362 $this->end_controls_tab(); 363 364 $this->start_controls_tab( 365 'img3', 366 [ 367 'label' => esc_html__( 'Right', 'news-element' ), 368 ] 369 ); 370 371 $this->add_responsive_control( 372 'img3-mr', 373 [ 374 'label' => esc_html__('Margin', 'news-element'), 375 'type' => Controls_Manager::DIMENSIONS, 376 'size_units' => ['px', 'em'], 377 'selectors' => [ 378 '{{WRAPPER}} .wp-block-image .alignright' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 379 ] 380 ] 381 ); 382 383 $this->end_controls_tab(); 384 385 $this->end_controls_tabs(); 386 387 $this->end_controls_section(); 388 262 389 } 263 390 -
the-pack-addon/trunk/includes/widgets/woocommerce/woo-category/index.php
r3368757 r3401919 58 58 [ 59 59 'label' => esc_html__('Taxonomy terms', 'the-pack-addon'), 60 'type' => Controls_Manager::SELECT2, 60 'type' => Controls_Manager::SELECT2, 61 61 'options' => thepack_drop_cat(), 62 62 'multiple' => true, -
the-pack-addon/trunk/index.php
r3368757 r3401919 115 115 add_action('init', [$this, 'init']); 116 116 add_action( 'plugin_action_links_'. plugin_basename( __FILE__ ), array( $this, 'my_plugin_action_links' ), 10 ); 117 118 add_action( 'elementor/elements/elements_registered', [ $this, 'elements_registered' ] ); 119 } 120 121 public function elements_registered($el_manager){ 122 require_once THE_PACK_PLUGIN_DIR . 'includes/extension/inc/raw-container.php'; 123 $el_manager->register_element_type( new \Elementor\Includes\Elements\The_Pack_Container() ); 117 124 } 118 125
Note: See TracChangeset
for help on using the changeset viewer.