Changeset 3320357
- Timestamp:
- 07/01/2025 07:35:13 AM (9 months ago)
- Location:
- primekit-addons
- Files:
-
- 8 added
- 26 edited
- 1 copied
-
tags/1.2.4 (copied) (copied from primekit-addons/trunk)
-
tags/1.2.4/Admin/AdminManager.php (modified) (2 diffs)
-
tags/1.2.4/Admin/Assets/img/icons/glass-card.svg (added)
-
tags/1.2.4/Admin/Inc/Dashboard/AvailableWidgets/RegularTab.php (modified) (1 diff)
-
tags/1.2.4/Frontend/Elementor/Assets/css/style.css (modified) (2 diffs)
-
tags/1.2.4/Frontend/Elementor/Configuration.php (modified) (1 diff)
-
tags/1.2.4/Frontend/Elementor/Globals/CustomCSS.php (modified) (1 diff)
-
tags/1.2.4/Frontend/Elementor/Widgets/GlassCard (added)
-
tags/1.2.4/Frontend/Elementor/Widgets/GlassCard/Main.php (added)
-
tags/1.2.4/Frontend/Elementor/Widgets/GlassCard/renderview.php (added)
-
tags/1.2.4/Frontend/Elementor/Widgets/IconBox/Main.php (modified) (17 diffs)
-
tags/1.2.4/composer.json (modified) (1 diff)
-
tags/1.2.4/primekit-addons.php (modified) (2 diffs)
-
tags/1.2.4/readme.txt (modified) (4 diffs)
-
tags/1.2.4/vendor/autoload.php (modified) (1 diff)
-
tags/1.2.4/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.2.4/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.2.4/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/Admin/AdminManager.php (modified) (2 diffs)
-
trunk/Admin/Assets/img/icons/glass-card.svg (added)
-
trunk/Admin/Inc/Dashboard/AvailableWidgets/RegularTab.php (modified) (1 diff)
-
trunk/Frontend/Elementor/Assets/css/style.css (modified) (2 diffs)
-
trunk/Frontend/Elementor/Configuration.php (modified) (1 diff)
-
trunk/Frontend/Elementor/Globals/CustomCSS.php (modified) (1 diff)
-
trunk/Frontend/Elementor/Widgets/GlassCard (added)
-
trunk/Frontend/Elementor/Widgets/GlassCard/Main.php (added)
-
trunk/Frontend/Elementor/Widgets/GlassCard/renderview.php (added)
-
trunk/Frontend/Elementor/Widgets/IconBox/Main.php (modified) (17 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/primekit-addons.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
primekit-addons/tags/1.2.4/Admin/AdminManager.php
r3318028 r3320357 70 70 71 71 $this->tracker_primekit_addons(); 72 73 add_action('admin_footer', [$this, 'primekit_add_footer_rating_notice']); 74 add_action('admin_footer_text', [$this, 'primekit_custom_admin_footer']); 72 75 } 73 76 … … 219 222 } 220 223 224 /** 225 * Add a rating notice to the PrimeKit dashboard footer 226 * 227 * @return void 228 */ 229 public function primekit_add_footer_rating_notice() { 230 // Check if we are on the specific PrimeKit dashboard page 231 $screen = get_current_screen(); 232 if ($screen->id !== 'toplevel_page_primekit_home') { 233 return; 234 } 235 236 ?> 237 <style> 238 .primekit-footer-rating { 239 padding: 20px 0; 240 text-align: center; 241 font-size: 13px; 242 color: #666; 243 } 244 245 .primekit-footer-rating a { 246 text-decoration: none; 247 } 248 249 .primekit-footer-rating .stars { 250 color: #ffb900; 251 margin: 0 4px; 252 } 253 </style> 254 <div class="primekit-footer-rating"> 255 <?php 256 $plugin_name = PRIMEKIT_NAME; 257 $plugin_slug = 'primekit-addons'; 258 $rating_url = "https://wordpress.org/support/plugin/{$plugin_slug}/reviews/#new-post"; 259 260 echo 'Please rate <strong>' . esc_html($plugin_name) . '</strong>'; 261 echo '<span class="stars">★★★★★</span>'; 262 echo ' on <a href="' . esc_url($rating_url) . '" target="_blank">WordPress.org</a> to help us spread the word.'; 263 ?> 264 </div> 265 <?php 266 } 267 /** 268 * Customize the admin footer text 269 * 270 * @param string $footer_text Default footer text. 271 * @return string Modified footer text. 272 */ 273 public function primekit_custom_admin_footer($footer_text) { 274 // Match your plugin pages and CPT screen 275 $show_on_pages = [ 276 'primekit_home', 277 'primekit_templates', 278 'primekit_available_widgets', 279 'primekit_settings', 280 ]; 281 282 $is_primekit_page = isset($_GET['page']) && in_array($_GET['page'], $show_on_pages); 283 $is_primekit_cpt = isset($_GET['post_type']) && $_GET['post_type'] === 'primekit_library'; 284 285 if ($is_primekit_page || $is_primekit_cpt) { 286 $plugin_name = PRIMEKIT_NAME; 287 $plugin_slug = 'primekit-addons'; 288 $rating_url = "https://wordpress.org/support/plugin/{$plugin_slug}/reviews/#new-post"; 289 290 return 'Please rate <strong>' . esc_html($plugin_name) . '</strong> <span style="color:#ffb900;">★★★★★</span> on <a href="' . esc_url($rating_url) . '" target="_blank">WordPress.org</a> to help us spread the word.'; 291 } 292 293 // Default for other admin pages 294 return $footer_text; 295 } 221 296 222 297 -
primekit-addons/tags/1.2.4/Admin/Inc/Dashboard/AvailableWidgets/RegularTab.php
r3313257 r3320357 602 602 self::demo_url('widgets/advanced-list-widget/') 603 603 ); 604 // Glass Card. 605 PrimeKitWidgets::primekit_available_widget( 606 'primekit_glass_card_field', 607 esc_html__('Glass Card', 'primekit-addons'), 608 PRIMEKIT_ADMIN_ASSETS . '/img/icons/glass-card.svg', 609 true, 610 self::demo_url('widgets/glass-card-widget/') 611 ); 604 612 605 613 -
primekit-addons/tags/1.2.4/Frontend/Elementor/Assets/css/style.css
r3313257 r3320357 978 978 align-items: center; 979 979 gap: 10px; 980 transition: all 0.3s ease; 980 981 } 981 982 … … 4385 4386 text-align: center; 4386 4387 } 4388 4389 /*--------------------------- 4390 Glass Card 4391 ---------------------------*/ 4392 .primekit-glass-card-icon svg{ 4393 width: 40px; 4394 height: auto; 4395 } 4396 .primekit-glass-card-area { 4397 background: linear-gradient(49.64deg, rgba(33, 218, 253, 0.6) 19.57%, rgba(33, 218, 253, 0) 112.42%); 4398 border-radius: 20px; 4399 transform: rotate(-10deg); 4400 width: 250px; 4401 } 4402 4403 .primekit-glass-card { 4404 background: rgba(255, 255, 255, 0.02); 4405 mix-blend-mode: normal; 4406 border: 1px solid rgba(255, 255, 255, 0.4); 4407 box-shadow: 0px 10px 30px rgba(12, 60, 84, 0.2); 4408 backdrop-filter: blur(10px); 4409 border-radius: 20px; 4410 transform: rotate(10deg); 4411 padding: 15px; 4412 display: flex; 4413 flex-direction: column; 4414 justify-content: space-between; 4415 gap: 110px; 4416 } 4417 4418 .primekit-glass-card-header { 4419 display: flex; 4420 justify-content: space-between; 4421 gap: 10px; 4422 align-items: center; 4423 } 4424 4425 .primekit-glass-card-icon {max-width:50%;} 4426 4427 .primekit-outline-text {font-size: 37px;font-weight: bold;color: transparent;-webkit-text-stroke: 1px rgba(0, 0, 0, 0.2); /* stroke color with opacity */text-align: center;margin: 0;padding: 0;} 4428 4429 .primekit-glass-card-footer h2 { 4430 margin: 0; 4431 font-family: 'Montserrat'; 4432 font-style: normal; 4433 font-weight: 600; 4434 font-size: 22px; 4435 line-height: 1.3em; 4436 } -
primekit-addons/tags/1.2.4/Frontend/Elementor/Configuration.php
r3313257 r3320357 324 324 'primekit_copyright_field' => 'Copyright\Main', 325 325 'primekit_advanced_list_field' => 'AdvancedList\Main', 326 'primekit_glass_card_field' => 'GlassCard\Main', 326 327 ]; 327 328 foreach ($widgets as $option_name => $widget_class) { -
primekit-addons/tags/1.2.4/Frontend/Elementor/Globals/CustomCSS.php
r3209035 r3320357 171 171 * @return void 172 172 */ 173 private static function add_custom_css_recursive($element_data, &$css) 174 { 175 if (!empty($element_data['settings']['primekit_custom_css'])) { 176 $element_id = $element_data['id']; 177 $custom_css = $element_data['settings']['primekit_custom_css']; 178 $css .= sprintf('.elementor-element.elementor-element-%s { %s } ', $element_id, $custom_css); 179 } 180 181 if (!empty($element_data['elements'])) { 182 foreach ($element_data['elements'] as $child_element) { 183 self::add_custom_css_recursive($child_element, $css); 173 private static function add_custom_css_recursive($element_data, &$css) 174 { 175 if (!empty($element_data['settings']['primekit_custom_css'])) { 176 $element_id = $element_data['id']; 177 $custom_css = $element_data['settings']['primekit_custom_css']; 178 179 // Match all selectors and CSS blocks 180 preg_match_all('/([^{]+)\{([^}]*)\}/', $custom_css, $matches, PREG_SET_ORDER); 181 182 foreach ($matches as $match) { 183 $selectors = explode(',', trim($match[1])); 184 $rules = trim($match[2]); 185 186 foreach ($selectors as $selector) { 187 $selector = trim($selector); 188 if ($selector !== '') { 189 $css .= sprintf( 190 '.elementor-element.elementor-element-%s %s { %s }' . "\n", 191 $element_id, 192 $selector, 193 $rules 194 ); 195 } 196 } 197 } 184 198 } 185 } 186 } 199 200 if (!empty($element_data['elements'])) { 201 foreach ($element_data['elements'] as $child_element) { 202 self::add_custom_css_recursive($child_element, $css); 203 } 204 } 205 } 206 187 207 } -
primekit-addons/tags/1.2.4/Frontend/Elementor/Widgets/IconBox/Main.php
r3304214 r3320357 3 3 namespace PrimeKit\Frontend\Elementor\Widgets\IconBox; 4 4 5 if (!defined('ABSPATH')) exit; // Exit if accessed directly 5 if (!defined('ABSPATH')) 6 exit; // Exit if accessed directly 6 7 7 8 … … 65 66 'default' => 'style-one', 66 67 'options' => [ 67 'style-one' => esc_html__('Style One', 'primekit-addons'),68 'style-two' => esc_html__('Style Two', 'primekit-addons'),69 'style-three' => esc_html__('Style Three', 'primekit-addons'),68 'style-one' => esc_html__('Style One', 'primekit-addons'), 69 'style-two' => esc_html__('Style Two', 'primekit-addons'), 70 'style-three' => esc_html__('Style Three', 'primekit-addons'), 70 71 ], 71 72 ] … … 93 94 ] 94 95 ); 96 97 //icon position for style three 98 $this->add_responsive_control( 99 'primekit_elementor_icon_box_icon_position', 100 [ 101 'label' => esc_html__('Icon Position', 'primekit-addons'), 102 'type' => Controls_Manager::SELECT, 103 'default' => 'row', 104 'options' => [ 105 'row' => esc_html__('Left', 'primekit-addons'), 106 'row-reverse' => esc_html__('Right', 'primekit-addons'), 107 'column' => esc_html__('Top', 'primekit-addons'), 108 'column-reverse' => esc_html__('Bottom', 'primekit-addons'), 109 ], 110 'selectors' => [ 111 '{{WRAPPER}} .primekit-single-icon-box-three-area' => 'flex-direction: {{VALUE}};', 112 ], 113 'condition' => [ 114 'primekit_elementor_icon_box_style' => 'style-three', 115 ], 116 ] 117 ); 118 119 95 120 $this->add_control( 96 121 'primekit_elementor_icon_box_title', … … 160 185 'type' => Controls_Manager::CHOOSE, 161 186 'options' => [ 162 'left' => [187 'left' => [ 163 188 'title' => esc_html__('Left', 'primekit-addons'), 164 189 'icon' => 'eicon-text-align-left', … … 246 271 'primekit_elementor_icon_box_area_style_tabs', 247 272 [ 248 'condition' => [273 'condition' => [ 249 274 'primekit_elementor_icon_box_style' => ['style-one', 'style-three'], 250 275 ], … … 311 336 'type' => Controls_Manager::DIMENSIONS, 312 337 'size_units' => ['px', '%', 'em', 'rem', 'custom'], 313 'default' => [338 'default' => [ 314 339 'top' => '100', 315 340 'right' => '0', … … 397 422 '{{WRAPPER}} .primekit-elementor-icon-box-icon .primekit-ele-icon-box-normal i' => 'font-size: {{SIZE}}{{UNIT}};', 398 423 ], 399 'condition' => [424 'condition' => [ 400 425 'primekit_elementor_icon_box_style' => 'style-one', 401 426 ], … … 439 464 '{{WRAPPER}} .primekit-single-icon-box-three-area .primekit-single-icon-box-icons' => 'top: {{SIZE}}{{UNIT}};', 440 465 ], 441 'condition' => [466 'condition' => [ 442 467 'primekit_elementor_icon_box_style' => ['style-one', 'style-three'], 443 468 ], … … 454 479 '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 455 480 ], 456 'condition' => [481 'condition' => [ 457 482 'primekit_elementor_icon_box_style' => 'style-three', 458 483 ], … … 480 505 '{{WRAPPER}} .primekit-ele-icon-box-normal i' => 'color: {{VALUE}}', 481 506 ], 482 'condition' => [507 'condition' => [ 483 508 'primekit_elementor_icon_box_style' => 'style-one', 484 509 ], … … 507 532 'types' => ['classic', 'gradient'], 508 533 'selector' => '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 509 'condition' => [534 'condition' => [ 510 535 'primekit_elementor_icon_box_style' => 'style-three', 511 536 ], … … 518 543 'name' => 'primekit_elementor_icon_box_icon_border', 519 544 'selector' => '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 520 'condition' => [545 'condition' => [ 521 546 'primekit_elementor_icon_box_style' => 'style-three', 522 547 ], … … 533 558 '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 534 559 ], 535 'condition' => [560 'condition' => [ 536 561 'primekit_elementor_icon_box_style' => 'style-three', 537 562 ], … … 558 583 '{{WRAPPER}} .primekit-elementor-icon-box-area:hover .primekit-ele-icon-box-normal i' => 'color: {{VALUE}}', 559 584 ], 560 'condition' => [585 'condition' => [ 561 586 'primekit_elementor_icon_box_style' => 'style-one', 562 587 ], … … 585 610 'types' => ['classic', 'gradient'], 586 611 'selector' => '{{WRAPPER}} .primekit-single-icon-box-three-area:hover .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 587 'condition' => [612 'condition' => [ 588 613 'primekit_elementor_icon_box_style' => 'style-three', 589 614 ], … … 596 621 'name' => 'primekit_elementor_icon_box_icon_border_hover', 597 622 'selector' => '{{WRAPPER}} .primekit-single-icon-box-three-area:hover .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 598 'condition' => [623 'condition' => [ 599 624 'primekit_elementor_icon_box_style' => 'style-three', 600 625 ], … … 611 636 '{{WRAPPER}} .primekit-single-icon-box-three-area:hover .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 612 637 ], 613 'condition' => [638 'condition' => [ 614 639 'primekit_elementor_icon_box_style' => 'style-three', 615 640 ], -
primekit-addons/tags/1.2.4/composer.json
r3318028 r3320357 2 2 "name": "supreoxltd/primekit-addons", 3 3 "license": "GPL-2.0-or-later", 4 "version": "1.2. 3",4 "version": "1.2.4", 5 5 "autoload": { 6 6 "psr-4": { -
primekit-addons/tags/1.2.4/primekit-addons.php
r3318028 r3320357 4 4 * Plugin URI: https://primekitaddons.com/ 5 5 * Description: The Elementor Custom Widgets plugin is built to enhance your website’s look and performance. With PrimeKit Addons and Templates, you’ll get access to a Theme Builder, Pop-Ups, Cost estimation, Pricing table, Forms, and WooCommerce building features, along with stunning custom elements that blend seamlessly with your site’s design. 6 * Version: 1.2. 36 * Version: 1.2.4 7 7 * Author: SupreoX Limited 8 8 * Author URI: https://supreox.com/ … … 67 67 { 68 68 // Define Plugin Version. 69 define('PRIMEKIT_VERSION', '1.2. 3');69 define('PRIMEKIT_VERSION', '1.2.4'); 70 70 71 71 // Define Plugin Path. -
primekit-addons/tags/1.2.4/readme.txt
r3318028 r3320357 1 1 === PrimeKit Addons and Templates === 2 2 Plugin Name: PrimeKit PrimeKit Addons and Templates 3 Version: 1.2.34 3 Author: supreoxltd 5 4 Author URI: https://abcplugin.com/ … … 9 8 Requires at least: 5.4 10 9 Tested up to: 6.8 11 Stable tag: 1.2. 310 Stable tag: 1.2.4 12 11 Requires PHP: 8.0 13 12 License: GPLv2 or later … … 22 21 23 22 [Demo](https://demo.primekitaddons.com/addons-widger/) | [Documentation](https://primekitaddons.com/documentation/) | [Support](https://primekitaddons.com/contact-us/) 23 24 25 == Rate This Plugin: == 26 [Please rate PrimeKit Addons](https://wordpress.org/support/plugin/primekit-addons/reviews) 24 27 25 28 == Theme Builder == … … 156 159 157 160 == Changelog == 161 = 1.2.4 = 162 - Global Custom CSS issue fix 163 - improvements icon box widgets 164 - Glass Card Widget Added 165 158 166 = 1.2.3 = 159 - Theme Features Switch issues fix167 - Theme Builder Features Switch issues fix 160 168 161 169 = 1.2.2 = -
primekit-addons/tags/1.2.4/vendor/autoload.php
r3318028 r3320357 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b::getLoader();22 return ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b::getLoader(); -
primekit-addons/tags/1.2.4/vendor/composer/autoload_real.php
r3318028 r3320357 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b5 class ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
primekit-addons/tags/1.2.4/vendor/composer/autoload_static.php
r3318028 r3320357 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b7 class ComposerStaticInit4593567ec48dc04384b380ddd3efad0b 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 51 51 { 52 52 return \Closure::bind(function () use ($loader) { 53 $loader->prefixLengthsPsr4 = ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::$prefixLengthsPsr4;54 $loader->prefixDirsPsr4 = ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::$prefixDirsPsr4;55 $loader->classMap = ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::$classMap;53 $loader->prefixLengthsPsr4 = ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::$prefixLengthsPsr4; 54 $loader->prefixDirsPsr4 = ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::$prefixDirsPsr4; 55 $loader->classMap = ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::$classMap; 56 56 57 57 }, null, ClassLoader::class); -
primekit-addons/tags/1.2.4/vendor/composer/installed.php
r3318028 r3320357 2 2 'root' => array( 3 3 'name' => 'supreoxltd/primekit-addons', 4 'pretty_version' => '1.2. 3',5 'version' => '1.2. 3.0',4 'pretty_version' => '1.2.4', 5 'version' => '1.2.4.0', 6 6 'reference' => null, 7 7 'type' => 'library', … … 21 21 ), 22 22 'supreoxltd/primekit-addons' => array( 23 'pretty_version' => '1.2. 3',24 'version' => '1.2. 3.0',23 'pretty_version' => '1.2.4', 24 'version' => '1.2.4.0', 25 25 'reference' => null, 26 26 'type' => 'library', -
primekit-addons/trunk/Admin/AdminManager.php
r3318028 r3320357 70 70 71 71 $this->tracker_primekit_addons(); 72 73 add_action('admin_footer', [$this, 'primekit_add_footer_rating_notice']); 74 add_action('admin_footer_text', [$this, 'primekit_custom_admin_footer']); 72 75 } 73 76 … … 219 222 } 220 223 224 /** 225 * Add a rating notice to the PrimeKit dashboard footer 226 * 227 * @return void 228 */ 229 public function primekit_add_footer_rating_notice() { 230 // Check if we are on the specific PrimeKit dashboard page 231 $screen = get_current_screen(); 232 if ($screen->id !== 'toplevel_page_primekit_home') { 233 return; 234 } 235 236 ?> 237 <style> 238 .primekit-footer-rating { 239 padding: 20px 0; 240 text-align: center; 241 font-size: 13px; 242 color: #666; 243 } 244 245 .primekit-footer-rating a { 246 text-decoration: none; 247 } 248 249 .primekit-footer-rating .stars { 250 color: #ffb900; 251 margin: 0 4px; 252 } 253 </style> 254 <div class="primekit-footer-rating"> 255 <?php 256 $plugin_name = PRIMEKIT_NAME; 257 $plugin_slug = 'primekit-addons'; 258 $rating_url = "https://wordpress.org/support/plugin/{$plugin_slug}/reviews/#new-post"; 259 260 echo 'Please rate <strong>' . esc_html($plugin_name) . '</strong>'; 261 echo '<span class="stars">★★★★★</span>'; 262 echo ' on <a href="' . esc_url($rating_url) . '" target="_blank">WordPress.org</a> to help us spread the word.'; 263 ?> 264 </div> 265 <?php 266 } 267 /** 268 * Customize the admin footer text 269 * 270 * @param string $footer_text Default footer text. 271 * @return string Modified footer text. 272 */ 273 public function primekit_custom_admin_footer($footer_text) { 274 // Match your plugin pages and CPT screen 275 $show_on_pages = [ 276 'primekit_home', 277 'primekit_templates', 278 'primekit_available_widgets', 279 'primekit_settings', 280 ]; 281 282 $is_primekit_page = isset($_GET['page']) && in_array($_GET['page'], $show_on_pages); 283 $is_primekit_cpt = isset($_GET['post_type']) && $_GET['post_type'] === 'primekit_library'; 284 285 if ($is_primekit_page || $is_primekit_cpt) { 286 $plugin_name = PRIMEKIT_NAME; 287 $plugin_slug = 'primekit-addons'; 288 $rating_url = "https://wordpress.org/support/plugin/{$plugin_slug}/reviews/#new-post"; 289 290 return 'Please rate <strong>' . esc_html($plugin_name) . '</strong> <span style="color:#ffb900;">★★★★★</span> on <a href="' . esc_url($rating_url) . '" target="_blank">WordPress.org</a> to help us spread the word.'; 291 } 292 293 // Default for other admin pages 294 return $footer_text; 295 } 221 296 222 297 -
primekit-addons/trunk/Admin/Inc/Dashboard/AvailableWidgets/RegularTab.php
r3313257 r3320357 602 602 self::demo_url('widgets/advanced-list-widget/') 603 603 ); 604 // Glass Card. 605 PrimeKitWidgets::primekit_available_widget( 606 'primekit_glass_card_field', 607 esc_html__('Glass Card', 'primekit-addons'), 608 PRIMEKIT_ADMIN_ASSETS . '/img/icons/glass-card.svg', 609 true, 610 self::demo_url('widgets/glass-card-widget/') 611 ); 604 612 605 613 -
primekit-addons/trunk/Frontend/Elementor/Assets/css/style.css
r3313257 r3320357 978 978 align-items: center; 979 979 gap: 10px; 980 transition: all 0.3s ease; 980 981 } 981 982 … … 4385 4386 text-align: center; 4386 4387 } 4388 4389 /*--------------------------- 4390 Glass Card 4391 ---------------------------*/ 4392 .primekit-glass-card-icon svg{ 4393 width: 40px; 4394 height: auto; 4395 } 4396 .primekit-glass-card-area { 4397 background: linear-gradient(49.64deg, rgba(33, 218, 253, 0.6) 19.57%, rgba(33, 218, 253, 0) 112.42%); 4398 border-radius: 20px; 4399 transform: rotate(-10deg); 4400 width: 250px; 4401 } 4402 4403 .primekit-glass-card { 4404 background: rgba(255, 255, 255, 0.02); 4405 mix-blend-mode: normal; 4406 border: 1px solid rgba(255, 255, 255, 0.4); 4407 box-shadow: 0px 10px 30px rgba(12, 60, 84, 0.2); 4408 backdrop-filter: blur(10px); 4409 border-radius: 20px; 4410 transform: rotate(10deg); 4411 padding: 15px; 4412 display: flex; 4413 flex-direction: column; 4414 justify-content: space-between; 4415 gap: 110px; 4416 } 4417 4418 .primekit-glass-card-header { 4419 display: flex; 4420 justify-content: space-between; 4421 gap: 10px; 4422 align-items: center; 4423 } 4424 4425 .primekit-glass-card-icon {max-width:50%;} 4426 4427 .primekit-outline-text {font-size: 37px;font-weight: bold;color: transparent;-webkit-text-stroke: 1px rgba(0, 0, 0, 0.2); /* stroke color with opacity */text-align: center;margin: 0;padding: 0;} 4428 4429 .primekit-glass-card-footer h2 { 4430 margin: 0; 4431 font-family: 'Montserrat'; 4432 font-style: normal; 4433 font-weight: 600; 4434 font-size: 22px; 4435 line-height: 1.3em; 4436 } -
primekit-addons/trunk/Frontend/Elementor/Configuration.php
r3313257 r3320357 324 324 'primekit_copyright_field' => 'Copyright\Main', 325 325 'primekit_advanced_list_field' => 'AdvancedList\Main', 326 'primekit_glass_card_field' => 'GlassCard\Main', 326 327 ]; 327 328 foreach ($widgets as $option_name => $widget_class) { -
primekit-addons/trunk/Frontend/Elementor/Globals/CustomCSS.php
r3209035 r3320357 171 171 * @return void 172 172 */ 173 private static function add_custom_css_recursive($element_data, &$css) 174 { 175 if (!empty($element_data['settings']['primekit_custom_css'])) { 176 $element_id = $element_data['id']; 177 $custom_css = $element_data['settings']['primekit_custom_css']; 178 $css .= sprintf('.elementor-element.elementor-element-%s { %s } ', $element_id, $custom_css); 179 } 180 181 if (!empty($element_data['elements'])) { 182 foreach ($element_data['elements'] as $child_element) { 183 self::add_custom_css_recursive($child_element, $css); 173 private static function add_custom_css_recursive($element_data, &$css) 174 { 175 if (!empty($element_data['settings']['primekit_custom_css'])) { 176 $element_id = $element_data['id']; 177 $custom_css = $element_data['settings']['primekit_custom_css']; 178 179 // Match all selectors and CSS blocks 180 preg_match_all('/([^{]+)\{([^}]*)\}/', $custom_css, $matches, PREG_SET_ORDER); 181 182 foreach ($matches as $match) { 183 $selectors = explode(',', trim($match[1])); 184 $rules = trim($match[2]); 185 186 foreach ($selectors as $selector) { 187 $selector = trim($selector); 188 if ($selector !== '') { 189 $css .= sprintf( 190 '.elementor-element.elementor-element-%s %s { %s }' . "\n", 191 $element_id, 192 $selector, 193 $rules 194 ); 195 } 196 } 197 } 184 198 } 185 } 186 } 199 200 if (!empty($element_data['elements'])) { 201 foreach ($element_data['elements'] as $child_element) { 202 self::add_custom_css_recursive($child_element, $css); 203 } 204 } 205 } 206 187 207 } -
primekit-addons/trunk/Frontend/Elementor/Widgets/IconBox/Main.php
r3304214 r3320357 3 3 namespace PrimeKit\Frontend\Elementor\Widgets\IconBox; 4 4 5 if (!defined('ABSPATH')) exit; // Exit if accessed directly 5 if (!defined('ABSPATH')) 6 exit; // Exit if accessed directly 6 7 7 8 … … 65 66 'default' => 'style-one', 66 67 'options' => [ 67 'style-one' => esc_html__('Style One', 'primekit-addons'),68 'style-two' => esc_html__('Style Two', 'primekit-addons'),69 'style-three' => esc_html__('Style Three', 'primekit-addons'),68 'style-one' => esc_html__('Style One', 'primekit-addons'), 69 'style-two' => esc_html__('Style Two', 'primekit-addons'), 70 'style-three' => esc_html__('Style Three', 'primekit-addons'), 70 71 ], 71 72 ] … … 93 94 ] 94 95 ); 96 97 //icon position for style three 98 $this->add_responsive_control( 99 'primekit_elementor_icon_box_icon_position', 100 [ 101 'label' => esc_html__('Icon Position', 'primekit-addons'), 102 'type' => Controls_Manager::SELECT, 103 'default' => 'row', 104 'options' => [ 105 'row' => esc_html__('Left', 'primekit-addons'), 106 'row-reverse' => esc_html__('Right', 'primekit-addons'), 107 'column' => esc_html__('Top', 'primekit-addons'), 108 'column-reverse' => esc_html__('Bottom', 'primekit-addons'), 109 ], 110 'selectors' => [ 111 '{{WRAPPER}} .primekit-single-icon-box-three-area' => 'flex-direction: {{VALUE}};', 112 ], 113 'condition' => [ 114 'primekit_elementor_icon_box_style' => 'style-three', 115 ], 116 ] 117 ); 118 119 95 120 $this->add_control( 96 121 'primekit_elementor_icon_box_title', … … 160 185 'type' => Controls_Manager::CHOOSE, 161 186 'options' => [ 162 'left' => [187 'left' => [ 163 188 'title' => esc_html__('Left', 'primekit-addons'), 164 189 'icon' => 'eicon-text-align-left', … … 246 271 'primekit_elementor_icon_box_area_style_tabs', 247 272 [ 248 'condition' => [273 'condition' => [ 249 274 'primekit_elementor_icon_box_style' => ['style-one', 'style-three'], 250 275 ], … … 311 336 'type' => Controls_Manager::DIMENSIONS, 312 337 'size_units' => ['px', '%', 'em', 'rem', 'custom'], 313 'default' => [338 'default' => [ 314 339 'top' => '100', 315 340 'right' => '0', … … 397 422 '{{WRAPPER}} .primekit-elementor-icon-box-icon .primekit-ele-icon-box-normal i' => 'font-size: {{SIZE}}{{UNIT}};', 398 423 ], 399 'condition' => [424 'condition' => [ 400 425 'primekit_elementor_icon_box_style' => 'style-one', 401 426 ], … … 439 464 '{{WRAPPER}} .primekit-single-icon-box-three-area .primekit-single-icon-box-icons' => 'top: {{SIZE}}{{UNIT}};', 440 465 ], 441 'condition' => [466 'condition' => [ 442 467 'primekit_elementor_icon_box_style' => ['style-one', 'style-three'], 443 468 ], … … 454 479 '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 455 480 ], 456 'condition' => [481 'condition' => [ 457 482 'primekit_elementor_icon_box_style' => 'style-three', 458 483 ], … … 480 505 '{{WRAPPER}} .primekit-ele-icon-box-normal i' => 'color: {{VALUE}}', 481 506 ], 482 'condition' => [507 'condition' => [ 483 508 'primekit_elementor_icon_box_style' => 'style-one', 484 509 ], … … 507 532 'types' => ['classic', 'gradient'], 508 533 'selector' => '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 509 'condition' => [534 'condition' => [ 510 535 'primekit_elementor_icon_box_style' => 'style-three', 511 536 ], … … 518 543 'name' => 'primekit_elementor_icon_box_icon_border', 519 544 'selector' => '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 520 'condition' => [545 'condition' => [ 521 546 'primekit_elementor_icon_box_style' => 'style-three', 522 547 ], … … 533 558 '{{WRAPPER}} .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 534 559 ], 535 'condition' => [560 'condition' => [ 536 561 'primekit_elementor_icon_box_style' => 'style-three', 537 562 ], … … 558 583 '{{WRAPPER}} .primekit-elementor-icon-box-area:hover .primekit-ele-icon-box-normal i' => 'color: {{VALUE}}', 559 584 ], 560 'condition' => [585 'condition' => [ 561 586 'primekit_elementor_icon_box_style' => 'style-one', 562 587 ], … … 585 610 'types' => ['classic', 'gradient'], 586 611 'selector' => '{{WRAPPER}} .primekit-single-icon-box-three-area:hover .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 587 'condition' => [612 'condition' => [ 588 613 'primekit_elementor_icon_box_style' => 'style-three', 589 614 ], … … 596 621 'name' => 'primekit_elementor_icon_box_icon_border_hover', 597 622 'selector' => '{{WRAPPER}} .primekit-single-icon-box-three-area:hover .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon', 598 'condition' => [623 'condition' => [ 599 624 'primekit_elementor_icon_box_style' => 'style-three', 600 625 ], … … 611 636 '{{WRAPPER}} .primekit-single-icon-box-three-area:hover .primekit-single-icon-box-icons .primekit-ele-icon-box3-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 612 637 ], 613 'condition' => [638 'condition' => [ 614 639 'primekit_elementor_icon_box_style' => 'style-three', 615 640 ], -
primekit-addons/trunk/composer.json
r3318028 r3320357 2 2 "name": "supreoxltd/primekit-addons", 3 3 "license": "GPL-2.0-or-later", 4 "version": "1.2. 3",4 "version": "1.2.4", 5 5 "autoload": { 6 6 "psr-4": { -
primekit-addons/trunk/primekit-addons.php
r3318028 r3320357 4 4 * Plugin URI: https://primekitaddons.com/ 5 5 * Description: The Elementor Custom Widgets plugin is built to enhance your website’s look and performance. With PrimeKit Addons and Templates, you’ll get access to a Theme Builder, Pop-Ups, Cost estimation, Pricing table, Forms, and WooCommerce building features, along with stunning custom elements that blend seamlessly with your site’s design. 6 * Version: 1.2. 36 * Version: 1.2.4 7 7 * Author: SupreoX Limited 8 8 * Author URI: https://supreox.com/ … … 67 67 { 68 68 // Define Plugin Version. 69 define('PRIMEKIT_VERSION', '1.2. 3');69 define('PRIMEKIT_VERSION', '1.2.4'); 70 70 71 71 // Define Plugin Path. -
primekit-addons/trunk/readme.txt
r3318028 r3320357 1 1 === PrimeKit Addons and Templates === 2 2 Plugin Name: PrimeKit PrimeKit Addons and Templates 3 Version: 1.2.34 3 Author: supreoxltd 5 4 Author URI: https://abcplugin.com/ … … 9 8 Requires at least: 5.4 10 9 Tested up to: 6.8 11 Stable tag: 1.2. 310 Stable tag: 1.2.4 12 11 Requires PHP: 8.0 13 12 License: GPLv2 or later … … 22 21 23 22 [Demo](https://demo.primekitaddons.com/addons-widger/) | [Documentation](https://primekitaddons.com/documentation/) | [Support](https://primekitaddons.com/contact-us/) 23 24 25 == Rate This Plugin: == 26 [Please rate PrimeKit Addons](https://wordpress.org/support/plugin/primekit-addons/reviews) 24 27 25 28 == Theme Builder == … … 156 159 157 160 == Changelog == 161 = 1.2.4 = 162 - Global Custom CSS issue fix 163 - improvements icon box widgets 164 - Glass Card Widget Added 165 158 166 = 1.2.3 = 159 - Theme Features Switch issues fix167 - Theme Builder Features Switch issues fix 160 168 161 169 = 1.2.2 = -
primekit-addons/trunk/vendor/autoload.php
r3318028 r3320357 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b::getLoader();22 return ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b::getLoader(); -
primekit-addons/trunk/vendor/composer/autoload_real.php
r3318028 r3320357 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b5 class ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 02fb54d32dcd119e039e7ab2f486b97b', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit4593567ec48dc04384b380ddd3efad0b', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
primekit-addons/trunk/vendor/composer/autoload_static.php
r3318028 r3320357 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b7 class ComposerStaticInit4593567ec48dc04384b380ddd3efad0b 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 51 51 { 52 52 return \Closure::bind(function () use ($loader) { 53 $loader->prefixLengthsPsr4 = ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::$prefixLengthsPsr4;54 $loader->prefixDirsPsr4 = ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::$prefixDirsPsr4;55 $loader->classMap = ComposerStaticInit 02fb54d32dcd119e039e7ab2f486b97b::$classMap;53 $loader->prefixLengthsPsr4 = ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::$prefixLengthsPsr4; 54 $loader->prefixDirsPsr4 = ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::$prefixDirsPsr4; 55 $loader->classMap = ComposerStaticInit4593567ec48dc04384b380ddd3efad0b::$classMap; 56 56 57 57 }, null, ClassLoader::class); -
primekit-addons/trunk/vendor/composer/installed.php
r3318028 r3320357 2 2 'root' => array( 3 3 'name' => 'supreoxltd/primekit-addons', 4 'pretty_version' => '1.2. 3',5 'version' => '1.2. 3.0',4 'pretty_version' => '1.2.4', 5 'version' => '1.2.4.0', 6 6 'reference' => null, 7 7 'type' => 'library', … … 21 21 ), 22 22 'supreoxltd/primekit-addons' => array( 23 'pretty_version' => '1.2. 3',24 'version' => '1.2. 3.0',23 'pretty_version' => '1.2.4', 24 'version' => '1.2.4.0', 25 25 'reference' => null, 26 26 'type' => 'library',
Note: See TracChangeset
for help on using the changeset viewer.