Changeset 313061
- Timestamp:
- 02/12/2026 05:28:39 AM (9 months ago)
- Location:
- sports-agency/0.1.4
- Files:
-
- 13 edited
- 1 copied
-
. (copied) (copied from sports-agency/0.1.2 )
-
functions.php (modified) (1 diff)
-
includes/color-setting/custom-color-control.php (modified) (1 diff)
-
includes/customizer.php (modified) (2 diffs)
-
includes/getstart/getstart.css (modified) (2 diffs)
-
includes/getstart/getstart.php (modified) (1 diff)
-
includes/product-create.php (modified) (1 diff)
-
includes/tgm/class-tgm-plugin-activation.php (modified) (38 diffs)
-
includes/tgm/tgm.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
rtl.css (modified) (2 diffs)
-
style.css (modified) (1 diff)
-
template-parts/content-post.php (modified) (1 diff)
-
template-parts/related-posts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sports-agency/0.1.4/functions.php
r304405 r313061 385 385 } 386 386 387 add_filter( 'woocommerce_single_product_image_thumbnail_html', function( $html ) { 388 return '<div class="product-img">' . $html . '</div>'; 389 }); 390 387 391 /** 388 392 * Change number or products per row to 4 -
sports-agency/0.1.4/includes/color-setting/custom-color-control.php
r278457 r313061 42 42 $sports_agency_theme_custom_setting_css .='}'; 43 43 } 44 45 // Featured Image Hover Effect 46 $sports_agency_show_featured = get_theme_mod('sports_agency_featured_image_hide_show', 1); 47 $sports_agency_hover_effect = get_theme_mod('sports_agency_single_post_featured_image_hover','none'); 48 49 if ( $sports_agency_show_featured && $sports_agency_hover_effect !== 'none' ) { 50 51 $sports_agency_theme_custom_setting_css .= ' 52 .post-img img{ 53 transition: all 0.4s ease; 54 }'; 55 56 if ( $sports_agency_hover_effect === 'zoom-in' ) { 57 $sports_agency_theme_custom_setting_css .= ' 58 .post-img:hover img{ 59 transform: scale(1.2); 60 }'; 61 } 62 63 if ( $sports_agency_hover_effect === 'zoom-out' ) { 64 $sports_agency_theme_custom_setting_css .= ' 65 .post-img img{ transform: scale(1.2); } 66 .post-img:hover img{ transform: scale(1); }'; 67 } 68 69 if ( $sports_agency_hover_effect === 'grayscale' ) { 70 $sports_agency_theme_custom_setting_css .= ' 71 .post-img img{ filter: grayscale(100%); } 72 .post-img:hover img{ filter: grayscale(0); }'; 73 } 74 75 if ( $sports_agency_hover_effect === 'sepia' ) { 76 $sports_agency_theme_custom_setting_css .= ' 77 .post-img:hover img{ filter: sepia(100%); }'; 78 } 79 80 if ( $sports_agency_hover_effect === 'blur' ) { 81 $sports_agency_theme_custom_setting_css .= ' 82 .post-img:hover img{ filter: blur(3px); }'; 83 } 84 85 if ( $sports_agency_hover_effect === 'bright' ) { 86 $sports_agency_theme_custom_setting_css .= ' 87 .post-img:hover img{ filter: brightness(1.3); }'; 88 } 89 90 if ( $sports_agency_hover_effect === 'translate' ) { 91 $sports_agency_theme_custom_setting_css .= ' 92 .post-img:hover img{ transform: translateY(-10px); }'; 93 } 94 95 if ( $sports_agency_hover_effect === 'scale' ) { 96 $sports_agency_theme_custom_setting_css .= ' 97 .post-img:hover img{ transform: scale(1.1); }'; 98 } 99 } 100 // Product Featured Image Hover Effect 101 $sports_agency_show_featured = get_theme_mod('sports_agency_featured_image_hide_show', 1); 102 $sports_agency_hover_effect = get_theme_mod('sports_agency_product_featured_image_hover','none'); 103 104 if ( $sports_agency_show_featured && $sports_agency_hover_effect !== 'none' ) { 105 106 $sports_agency_theme_custom_setting_css .= ' 107 .product-img img{ 108 transition: all 0.4s ease; 109 }'; 110 111 if ( $sports_agency_hover_effect === 'zoom-in' ) { 112 $sports_agency_theme_custom_setting_css .= ' 113 .product-img:hover img{ 114 transform: scale(1.2); 115 }'; 116 } 117 118 if ( $sports_agency_hover_effect === 'zoom-out' ) { 119 $sports_agency_theme_custom_setting_css .= ' 120 .product-img img{ transform: scale(1.2); } 121 .product-img:hover img{ transform: scale(1); }'; 122 } 123 124 if ( $sports_agency_hover_effect === 'grayscale' ) { 125 $sports_agency_theme_custom_setting_css .= ' 126 .product-img img{ filter: grayscale(100%); } 127 .product-img:hover img{ filter: grayscale(0); }'; 128 } 129 130 if ( $sports_agency_hover_effect === 'sepia' ) { 131 $sports_agency_theme_custom_setting_css .= ' 132 .product-img:hover img{ filter: sepia(100%); }'; 133 } 134 135 if ( $sports_agency_hover_effect === 'blur' ) { 136 $sports_agency_theme_custom_setting_css .= ' 137 .product-img:hover img{ filter: blur(3px); }'; 138 } 139 140 if ( $sports_agency_hover_effect === 'bright' ) { 141 $sports_agency_theme_custom_setting_css .= ' 142 .product-img:hover img{ filter: brightness(1.3); }'; 143 } 144 145 if ( $sports_agency_hover_effect === 'translate' ) { 146 $sports_agency_theme_custom_setting_css .= ' 147 .product-img:hover img{ transform: translateY(-10px); }'; 148 } 149 150 if ( $sports_agency_hover_effect === 'scale' ) { 151 $sports_agency_theme_custom_setting_css .= ' 152 .product-img:hover img{ transform: scale(1.1); }'; 153 } 154 } -
sports-agency/0.1.4/includes/customizer.php
r298953 r313061 679 679 ), 680 680 ] ); 681 682 Kirki::add_field( 'theme_config_id', [ 683 'type' => 'custom', 684 'settings' => 'sports_agency_show_product_featured_image_hover_heading', 685 'section' => 'sports_agency_woocommerce_settings', 686 'default' => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1;">' . __( 'Product Featured Image Hover Effect', 'sports-agency' ) . '</h3>', 687 'priority' => 20, 688 ] ); 689 690 Kirki::add_field( 'theme_config_id', [ 691 'type' => 'select', 692 'settings' => 'sports_agency_product_featured_image_hover', 693 'label' => esc_html__( 'Product Featured Image Hover Effect', 'sports-agency' ), 694 'section' => 'sports_agency_woocommerce_settings', 695 'default' => 'none', 696 'priority' => 30, 697 'choices' => [ 698 'none' => esc_html__( 'None', 'sports-agency' ), 699 'zoom-in' => esc_html__( 'Zoom In', 'sports-agency' ), 700 'zoom-out' => esc_html__( 'Zoom Out', 'sports-agency' ), 701 'scale' => esc_html__( 'Scale', 'sports-agency' ), 702 'grayscale' => esc_html__( 'Grayscale', 'sports-agency' ), 703 'blur' => esc_html__( 'Blur', 'sports-agency' ), 704 'bright' => esc_html__( 'Bright', 'sports-agency' ), 705 'sepia' => esc_html__( 'Sepia', 'sports-agency' ), 706 'translate' => esc_html__( 'Translate', 'sports-agency' ), 707 ], 708 ] ); 681 709 682 710 //ADDITIONAL SETTINGS … … 1262 1290 1263 1291 Kirki::add_field( 'theme_config_id', [ 1292 'type' => 'select', 1293 'tab' => 'single-post', 1294 'settings' => 'sports_agency_single_post_featured_image_hover', 1295 'label' => esc_html__( 'Featured Image Hover Effect', 'sports-agency' ), 1296 'section' => 'sports_agency_blog_post', 1297 'default' => 'none', 1298 'priority' => 20, 1299 'choices' => [ 1300 'none' => esc_html__( 'None', 'sports-agency' ), 1301 'zoom-in' => esc_html__( 'Zoom In', 'sports-agency' ), 1302 'zoom-out' => esc_html__( 'Zoom Out', 'sports-agency' ), 1303 'scale' => esc_html__( 'Scale', 'sports-agency' ), 1304 'grayscale' => esc_html__( 'Grayscale', 'sports-agency' ), 1305 'blur' => esc_html__( 'Blur', 'sports-agency' ), 1306 'bright' => esc_html__( 'Bright', 'sports-agency' ), 1307 'sepia' => esc_html__( 'Sepia', 'sports-agency' ), 1308 'translate' => esc_html__( 'Translate', 'sports-agency' ), 1309 ], 1310 ] ); 1311 1312 Kirki::add_field( 'theme_config_id', [ 1264 1313 'type' => 'custom', 1265 1314 'tab' => 'single-post', -
sports-agency/0.1.4/includes/getstart/getstart.css
r304405 r313061 416 416 background: #ff2c6f; 417 417 } 418 418 .quick-btn a:hover{ 419 background:#2195af; 420 } 421 .premium-btn a:hover{ 422 background:#2195af; 423 } 424 .demo-btn a:hover{ 425 background:#2195af; 426 } 427 .doc-btn a:hover{ 428 background:#2195af; 429 } 419 430 .premium-features ul li { 420 431 margin-bottom: 10px; … … 591 602 592 603 .sports-agency-recommended-plugins a.button:hover { 593 border: 1px solid # 1E2957;594 background: # 1E2957;604 border: 1px solid #2195af; 605 background: #2195af; 595 606 } 596 607 .sports-agency-recommended-plugins a.button:focus { -
sports-agency/0.1.4/includes/getstart/getstart.php
r304405 r313061 45 45 $sports_agency_changelog_list = sports_agency_parse_changelog( $sports_agency_changelog ); 46 46 47 // ✅ wrapper + button add kiya gaya hai48 47 echo '<div id="sports-agency-changelog-container">'; 49 48 echo wp_kses_post( $sports_agency_changelog_list ); -
sports-agency/0.1.4/includes/product-create.php
r280800 r313061 156 156 update_post_meta( $sports_agency_product_id, 'sports_agency_product_image_gallery', $sports_agency_product_image_gallery ); 157 157 } 158 } 159 158 159 /* Create Menu */ 160 $sports_agency_menuname = 'Main Menus'; 161 $sports_agency_location = 'main-menu'; 162 163 $sports_agency_menu = wp_get_nav_menu_object( $sports_agency_menuname ); 164 165 if ( ! $sports_agency_menu ) { 166 $sports_agency_menu_id = wp_create_nav_menu( $sports_agency_menuname ); 167 168 // Home Page 169 wp_update_nav_menu_item( $sports_agency_menu_id, 0, array( 170 'menu-item-title' => __( 'Home', 'sports-agency' ), 171 'menu-item-url' => home_url( '/' ), 172 'menu-item-type' => 'custom', 173 'menu-item-status' => 'publish', 174 ) ); 175 176 // About Us Page 177 $sports_agency_about_id = wp_insert_post( array( 178 'post_type' => 'page', 179 'post_content' => 'We are committed to providing reliable, professional, and result-oriented solutions tailored to meet individual needs. Our goal is to empower people with the right guidance, knowledge, and support to help them make informed decisions for a better future. <br><br> Our mission is to deliver high-quality services with honesty, transparency, and dedication. We focus on understanding client requirements and offering practical solutions that create long-term value. <br><br> With a client-centric approach, experienced professionals, and a commitment to excellence, we ensure every individual receives the attention and guidance they deserve. We believe in building trust through quality service and consistent results.', 180 'post_title' => 'About Us', 181 'post_status' => 'publish', 182 ) ); 183 184 if ( $sports_agency_about_id ) { 185 wp_update_nav_menu_item( $sports_agency_menu_id, 0, array( 186 'menu-item-title' => 'About Us', 187 'menu-item-object' => 'page', 188 'menu-item-object-id' => $sports_agency_about_id, 189 'menu-item-type' => 'post_type', 190 'menu-item-status' => 'publish', 191 ) ); 192 } 193 194 // Services Page 195 $sports_agency_about_id = wp_insert_post( array( 196 'post_type' => 'page', 197 'post_content' => 'We are committed to providing reliable, professional, and result-oriented solutions tailored to meet individual needs. Our goal is to empower people with the right guidance, knowledge, and support to help them make informed decisions for a better future. <br><br> Our mission is to deliver high-quality services with honesty, transparency, and dedication. We focus on understanding client requirements and offering practical solutions that create long-term value. <br><br> With a client-centric approach, experienced professionals, and a commitment to excellence, we ensure every individual receives the attention and guidance they deserve. We believe in building trust through quality service and consistent results.', 198 'post_title' => 'Services', 199 'post_status' => 'publish', 200 ) ); 201 202 if ( $sports_agency_about_id ) { 203 wp_update_nav_menu_item( $sports_agency_menu_id, 0, array( 204 'menu-item-title' => 'Services', 205 'menu-item-object' => 'page', 206 'menu-item-object-id' => $sports_agency_about_id, 207 'menu-item-type' => 'post_type', 208 'menu-item-status' => 'publish', 209 ) ); 210 } 211 212 // Contact Us Page 213 $sports_agency_about_id = wp_insert_post( array( 214 'post_type' => 'page', 215 'post_content' => 'We are committed to providing reliable, professional, and result-oriented solutions tailored to meet individual needs. Our goal is to empower people with the right guidance, knowledge, and support to help them make informed decisions for a better future. <br><br> Our mission is to deliver high-quality services with honesty, transparency, and dedication. We focus on understanding client requirements and offering practical solutions that create long-term value. <br><br> With a client-centric approach, experienced professionals, and a commitment to excellence, we ensure every individual receives the attention and guidance they deserve. We believe in building trust through quality service and consistent results.', 216 'post_title' => 'Contact Us', 217 'post_status' => 'publish', 218 ) ); 219 220 if ( $sports_agency_about_id ) { 221 wp_update_nav_menu_item( $sports_agency_menu_id, 0, array( 222 'menu-item-title' => 'Contact Us', 223 'menu-item-object' => 'page', 224 'menu-item-object-id' => $sports_agency_about_id, 225 'menu-item-type' => 'post_type', 226 'menu-item-status' => 'publish', 227 ) ); 228 } 229 230 // Create Shop Page 231 $sports_agency_about_title = 'Shop'; 232 $sports_agency_about_content = 'Lorem ipsum dolor sit amet...'; 233 234 $shop_page = get_page_by_path('shop'); 235 if ( !$shop_page ) { 236 $sports_agency_about = array( 237 'post_type' => 'page', 238 'post_title' => $sports_agency_about_title, 239 'post_content'=> $sports_agency_about_content, 240 'post_status' => 'publish', 241 'post_author' => 1, 242 'post_name' => 'shop' 243 ); 244 $sports_agency_about_id = wp_insert_post($sports_agency_about); 245 } else { 246 $sports_agency_about_id = $shop_page->ID; 247 } 248 249 wp_update_nav_menu_item($sports_agency_menu_id, 0, array( 250 'menu-item-title' => __('Shop', 'sports-agency'), 251 'menu-item-classes' => 'shop', 252 'menu-item-object-id' => $sports_agency_about_id, 253 'menu-item-object' => 'page', 254 'menu-item-type' => 'post_type', 255 'menu-item-status' => 'publish' 256 )); 257 258 /* Assign Menu Location */ 259 $sports_agency_locations = get_theme_mod( 'nav_menu_locations', array() ); 260 $sports_agency_locations[ $sports_agency_location ] = $sports_agency_menu_id; 261 set_theme_mod( 'nav_menu_locations', $sports_agency_locations ); 262 } 263 } 160 264 } 161 265 -
sports-agency/0.1.4/includes/tgm/class-tgm-plugin-activation.php
r278457 r313061 9 9 * 10 10 * @package TGM-Plugin-Activation 11 * @version 2.6.1 for parent theme Sports Agency for publication on WordPress.org11 * @version 2.6.1 12 12 * @link http://tgmpluginactivation.com/ 13 13 * @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer … … 32 32 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 33 33 */ 34 35 // Exit if accessed directly. 36 if ( ! defined( 'ABSPATH' ) ) { 37 return; 38 } 34 39 35 40 if ( ! class_exists( 'TGM_Plugin_Activation' ) ) { … … 260 265 do_action_ref_array( 'tgmpa_init', array( $this ) ); 261 266 262 267 /* 268 * Load our text domain and allow for overloading the fall-back file. 269 * 270 * {@internal IMPORTANT! If this code changes, review the regex in the custom TGMPA 271 * generator on the website.}} 272 */ 273 add_action( 'init', array( $this, 'load_textdomain' ), 5 ); 274 add_filter( 'load_textdomain_mofile', array( $this, 'overload_textdomain_mofile' ), 10, 2 ); 263 275 264 276 // When the rest of WP has loaded, kick-start the rest of the class. … … 283 295 */ 284 296 public function __set( $name, $value ) { 297 // phpcs:ignore Squiz.PHP.NonExecutableCode.ReturnNotRequired -- See explanation above. 285 298 return; 286 299 } … … 332 345 'updating' => __( 'Updating Plugin: %s', 'sports-agency' ), 333 346 'oops' => __( 'Something went wrong with the plugin API.', 'sports-agency' ), 347 /* translators: 1: plugin name(s). */ 334 348 'notice_can_install_required' => _n_noop( 335 /* translators: 1: plugin name(s). */336 349 'This theme requires the following plugin: %1$s.', 337 350 'This theme requires the following plugins: %1$s.', 338 351 'sports-agency' 339 352 ), 353 /* translators: 1: plugin name(s). */ 340 354 'notice_can_install_recommended' => _n_noop( 341 /* translators: 1: plugin name(s). */342 355 'This theme recommends the following plugin: %1$s.', 343 356 'This theme recommends the following plugins: %1$s.', 344 357 'sports-agency' 345 358 ), 359 /* translators: 1: plugin name(s). */ 346 360 'notice_ask_to_update' => _n_noop( 347 /* translators: 1: plugin name(s). */348 361 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 349 362 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 350 363 'sports-agency' 351 364 ), 365 /* translators: 1: plugin name(s). */ 352 366 'notice_ask_to_update_maybe' => _n_noop( 353 /* translators: 1: plugin name(s). */354 367 'There is an update available for: %1$s.', 355 368 'There are updates available for the following plugins: %1$s.', 356 369 'sports-agency' 357 370 ), 371 /* translators: 1: plugin name(s). */ 358 372 'notice_can_activate_required' => _n_noop( 359 /* translators: 1: plugin name(s). */360 373 'The following required plugin is currently inactive: %1$s.', 361 374 'The following required plugins are currently inactive: %1$s.', 362 375 'sports-agency' 363 376 ), 377 /* translators: 1: plugin name(s). */ 364 378 'notice_can_activate_recommended' => _n_noop( 365 /* translators: 1: plugin name(s). */366 379 'The following recommended plugin is currently inactive: %1$s.', 367 380 'The following recommended plugins are currently inactive: %1$s.', … … 445 458 add_action( 'switch_theme', array( $this, 'force_deactivation' ) ); 446 459 } 460 461 // Add CSS for the TGMPA admin page. 462 add_action( 'admin_head', array( $this, 'admin_css' ) ); 463 } 464 465 /** 466 * Load translations. 467 * 468 * @since 2.6.0 469 * 470 * (@internal Uses `load_theme_textdomain()` rather than `load_plugin_textdomain()` to 471 * get round the different ways of handling the path and deprecated notices being thrown 472 * and such. For plugins, the actual file name will be corrected by a filter.}} 473 * 474 * {@internal IMPORTANT! If this function changes, review the regex in the custom TGMPA 475 * generator on the website.}} 476 */ 477 public function load_textdomain() { 478 if ( is_textdomain_loaded( 'sports-agency' ) ) { 479 return; 480 } 481 482 if ( false !== strpos( __FILE__, WP_PLUGIN_DIR ) || false !== strpos( __FILE__, WPMU_PLUGIN_DIR ) ) { 483 // Plugin, we'll need to adjust the file name. 484 add_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10, 2 ); 485 load_theme_textdomain( 'sports-agency', dirname( __FILE__ ) . '/languages' ); 486 remove_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10 ); 487 } else { 488 load_theme_textdomain( 'sports-agency', dirname( __FILE__ ) . '/languages' ); 489 } 490 } 491 492 /** 493 * Correct the .mo file name for (must-use) plugins. 494 * 495 * Themese use `/path/{locale}.mo` while plugins use `/path/{text-domain}-{locale}.mo`. 496 * 497 * {@internal IMPORTANT! If this function changes, review the regex in the custom TGMPA 498 * generator on the website.}} 499 * 500 * @since 2.6.0 501 * 502 * @param string $mofile Full path to the target mofile. 503 * @param string $domain The domain for which a language file is being loaded. 504 * @return string $mofile 505 */ 506 public function correct_plugin_mofile( $mofile, $domain ) { 507 // Exit early if not our domain (just in case). 508 if ( 'sports-agency' !== $domain ) { 509 return $mofile; 510 } 511 return preg_replace( '`/([a-z]{2}_[A-Z]{2}.mo)$`', '/tgmpa-$1', $mofile ); 512 } 513 514 /** 515 * Potentially overload the fall-back translation file for the current language. 516 * 517 * WP, by default since WP 3.7, will load a local translation first and if none 518 * can be found, will try and find a translation in the /wp-content/languages/ directory. 519 * As this library is theme/plugin agnostic, translation files for TGMPA can exist both 520 * in the WP_LANG_DIR /plugins/ subdirectory as well as in the /themes/ subdirectory. 521 * 522 * This method makes sure both directories are checked. 523 * 524 * {@internal IMPORTANT! If this function changes, review the regex in the custom TGMPA 525 * generator on the website.}} 526 * 527 * @since 2.6.0 528 * 529 * @param string $mofile Full path to the target mofile. 530 * @param string $domain The domain for which a language file is being loaded. 531 * @return string $mofile 532 */ 533 public function overload_textdomain_mofile( $mofile, $domain ) { 534 // Exit early if not our domain, not a WP_LANG_DIR load or if the file exists and is readable. 535 if ( 'sports-agency' !== $domain || false === strpos( $mofile, WP_LANG_DIR ) || @is_readable( $mofile ) ) { 536 return $mofile; 537 } 538 539 // Current fallback file is not valid, let's try the alternative option. 540 if ( false !== strpos( $mofile, '/themes/' ) ) { 541 return str_replace( '/themes/', '/plugins/', $mofile ); 542 } elseif ( false !== strpos( $mofile, '/plugins/' ) ) { 543 return str_replace( '/plugins/', '/themes/', $mofile ); 544 } else { 545 return $mofile; 546 } 447 547 } 448 548 … … 556 656 557 657 global $tab, $body_id; 658 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WP requirement. 558 659 $body_id = 'plugin-information'; 559 // @codingStandardsIgnoreStart 560 $tab = 'plugin-information';561 // @codingStandardsIgnoreEnd660 661 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Overriding the WP global is the point. 662 $tab = 'plugin-information'; 562 663 563 664 install_plugin_information(); … … 631 732 */ 632 733 protected function add_admin_menu( array $args ) { 633 $this->page_hook = add_theme_page( $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] ); 734 if ( has_filter( 'tgmpa_admin_menu_use_add_theme_page' ) ) { 735 _deprecated_function( 'The "tgmpa_admin_menu_use_add_theme_page" filter', '2.5.0', esc_html__( 'Set the parent_slug config variable instead.', 'sports-agency' ) ); 736 } 737 738 if ( 'themes.php' === $this->parent_slug ) { 739 $this->page_hook = call_user_func( 'add_theme_page', $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] ); 740 } else { 741 $this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] ); 742 } 634 743 } 635 744 … … 647 756 public function install_plugins_page() { 648 757 // Store new instance of plugin table in object. 649 $plugin_table = new TGMPA_List_Table ;758 $plugin_table = new TGMPA_List_Table(); 650 759 651 760 // Return early if processing a plugin installation action. … … 735 844 $method = ''; // Leave blank so WP_Filesystem can populate it as necessary. 736 845 737 if ( false === ( $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, array() ) ) ) { 846 $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, array() ); 847 if ( false === $creds ) { 738 848 return true; 739 849 } … … 792 902 if ( 'update' === $install_type ) { 793 903 // Inject our info into the update transient. 794 $to_inject = array( $slug => $this->plugins[ $slug ] ); 904 $to_inject = array( 905 $slug => $this->plugins[ $slug ], 906 ); 795 907 $to_inject[ $slug ]['source'] = $source; 796 908 $this->inject_update_info( $to_inject ); … … 819 931 // Display message based on if all plugins are now active or not. 820 932 if ( $this->is_tgmpa_complete() ) { 821 echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html __( 'Return to the Dashboard', 'sports-agency') . '</a>' ), '</p>';933 echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html( $this->strings['dashboard'] ) . '</a>' ), '</p>'; 822 934 echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>'; 823 935 } else { … … 849 961 850 962 if ( ! is_object( $repo_updates ) ) { 851 $repo_updates = new stdClass ;963 $repo_updates = new stdClass(); 852 964 } 853 965 … … 856 968 857 969 if ( empty( $repo_updates->response[ $file_path ] ) ) { 858 $repo_updates->response[ $file_path ] = new stdClass ;970 $repo_updates->response[ $file_path ] = new stdClass(); 859 971 } 860 972 … … 926 1038 return trailingslashit( $to_path ); 927 1039 } else { 928 return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'sports-agency' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'sports-agency' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) ); 1040 return new WP_Error( 1041 'rename_failed', 1042 esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'sports-agency' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'sports-agency' ), 1043 array( 1044 'found' => $subdir_name, 1045 'expected' => $desired_slug, 1046 ) 1047 ); 929 1048 } 930 1049 } elseif ( empty( $subdir_name ) ) { 931 return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'sports-agency' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'sports-agency' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) ); 1050 return new WP_Error( 1051 'packaged_wrong', 1052 esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'sports-agency' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'sports-agency' ), 1053 array( 1054 'found' => $subdir_name, 1055 'expected' => $desired_slug, 1056 ) 1057 ); 932 1058 } 933 1059 } … … 960 1086 // Make sure message doesn't display again if bulk activation is performed 961 1087 // immediately after a single activation. 962 if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. 1088 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Not using the superglobal. 1089 if ( ! isset( $_POST['action'] ) ) { 963 1090 echo '<div id="message" class="updated"><p>', esc_html( $this->strings['activated_successfully'] ), ' <strong>', esc_html( $this->plugins[ $slug ]['name'] ), '.</strong></p></div>'; 964 1091 } … … 981 1108 // Make sure message doesn't display again if bulk activation is performed 982 1109 // immediately after a single activation. 983 if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. 1110 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Not using the superglobal. 1111 if ( ! isset( $_POST['action'] ) ) { 984 1112 echo '<div id="message" class="error"><p>', 985 1113 sprintf( … … 1131 1259 1132 1260 // Register the nag messages and prepare them to be processed. 1133 add_settings_error( ' tgmpa', 'tgmpa', $rendered, $this->get_admin_notice_class() );1261 add_settings_error( 'sports-agency', 'sports-agency', $rendered, $this->get_admin_notice_class() ); 1134 1262 } 1135 1263 … … 1231 1359 global $wp_settings_errors; 1232 1360 1233 settings_errors( ' tgmpa' );1361 settings_errors( 'sports-agency' ); 1234 1362 1235 1363 foreach ( (array) $wp_settings_errors as $key => $details ) { 1236 if ( ' tgmpa' === $details['setting'] ) {1364 if ( 'sports-agency' === $details['setting'] ) { 1237 1365 unset( $wp_settings_errors[ $key ] ); 1238 1366 break; … … 1276 1404 1277 1405 $defaults = array( 1278 'name' => '', // String 1279 'slug' => '', // String 1280 'source' => 'repo', // String 1281 'required' => false, // Boolean 1282 'version' => '', // String 1283 'force_activation' => false, // Boolean 1284 'force_deactivation' => false, // Boolean 1285 'external_url' => '', // String 1286 'is_callable' => '', // String |Array.1406 'name' => '', // String. 1407 'slug' => '', // String. 1408 'source' => 'repo', // String. 1409 'required' => false, // Boolean. 1410 'version' => '', // String. 1411 'force_activation' => false, // Boolean. 1412 'force_deactivation' => false, // Boolean. 1413 'external_url' => '', // String. 1414 'is_callable' => '', // String or array. 1287 1415 ); 1288 1416 … … 1550 1678 } 1551 1679 1552 $response = plugins_api( 'plugin_information', array( 'slug' => $slug, 'fields' => array( 'sections' => false ) ) ); 1680 $response = plugins_api( 1681 'plugin_information', 1682 array( 1683 'slug' => $slug, 1684 'fields' => array( 1685 'sections' => false, 1686 ), 1687 ) 1688 ); 1553 1689 1554 1690 $api[ $slug ] = false; … … 1633 1769 // Core update screen. 1634 1770 return true; 1635 } elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) { // WPCS: CSRF ok.1771 } elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing 1636 1772 // Plugins bulk update screen. 1637 1773 return true; 1638 } elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) { // WPCS: CSRF ok.1774 } elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing 1639 1775 // Individual updates (ajax call). 1640 1776 return true; … … 1982 2118 1983 2119 /** 2120 * Adds CSS to admin head. 2121 * 2122 * @since 2.6.2 2123 */ 2124 public function admin_css() { 2125 if ( ! $this->is_tgmpa_page() ) { 2126 return; 2127 } 2128 2129 echo ' 2130 <style> 2131 #tgmpa-plugins .tgmpa-type-required > th { 2132 border-left: 3px solid #dc3232; 2133 } 2134 </style>'; 2135 } 2136 2137 /** 1984 2138 * Returns the singleton instance of the class. 1985 2139 * … … 2025 2179 * @param array $config Optional. An array of configuration values. 2026 2180 */ 2027 function sports_agency_tgmpa( $plugins, $config = array() ) {2181 function tgmpa( $plugins, $config = array() ) { 2028 2182 $instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) ); 2029 2183 … … 2478 2632 $color = ''; 2479 2633 if ( ! empty( $item['minimum_version'] ) && $this->tgmpa->does_plugin_require_update( $item['slug'] ) ) { 2480 $color = ' color: # 479F49; font-weight: bold;';2634 $color = ' color: #ff0000; font-weight: bold;'; 2481 2635 } 2482 2636 … … 2525 2679 */ 2526 2680 public function no_items() { 2527 echo esc_html__( 'No plugins to install, update or activate.', 'sports-agency' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html __( 'Return to the Dashboard', 'sports-agency') . '</a>';2681 echo esc_html__( 'No plugins to install, update or activate.', 'sports-agency' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html( $this->tgmpa->strings['dashboard'] ) . '</a>'; 2528 2682 echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>'; 2529 2683 } … … 2643 2797 */ 2644 2798 public function single_row( $item ) { 2645 parent::single_row( $item ); 2799 echo '<tr class="' . esc_attr( 'tgmpa-type-' . strtolower( $item['type'] ) ) . '">'; 2800 $this->single_row_columns( $item ); 2801 echo '</tr>'; 2646 2802 2647 2803 /** … … 2688 2844 * @since 2.5.0 2689 2845 * 2690 * @param string $which 'top' or 'bottom' table navigation.2846 * @param string $which Either 'top' or 'bottom' table navigation. 2691 2847 */ 2692 2848 public function extra_tablenav( $which ) { … … 2814 2970 $fields = array_keys( $_POST ); // Extra fields to pass to WP_Filesystem. 2815 2971 2816 if ( false === ( $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, $fields ) ) ) { 2972 $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, $fields ); 2973 if ( false === $creds ) { 2817 2974 return true; // Stop the normal page form from displaying, credential request form will be shown. 2818 2975 } … … 2942 3099 $imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'sports-agency' ) . ' ' . $last_plugin ); 2943 3100 2944 printf( // WPCS: xss ok.3101 printf( 2945 3102 '<div id="message" class="updated"><p>%1$s %2$s.</p></div>', 2946 3103 esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'sports-agency' ) ), 3104 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Pre-escaped via wrap_in_strong() method above. 2947 3105 $imploded 2948 3106 ); … … 3289 3447 break; 3290 3448 } 3291 } //end foreach $plugins3449 } 3292 3450 3293 3451 $this->maintenance_mode( false ); … … 3309 3467 * } 3310 3468 */ 3311 do_action( 'upgrader_process_complete', $this, array( 3312 'action' => 'install', // [TGMPA + ] adjusted. 3313 'type' => 'plugin', 3314 'bulk' => true, 3315 'plugins' => $plugins, 3316 ) ); 3469 do_action( 3470 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Using WP core hook. 3471 'upgrader_process_complete', 3472 $this, 3473 array( 3474 'action' => 'install', // [TGMPA + ] adjusted. 3475 'type' => 'plugin', 3476 'bulk' => true, 3477 'plugins' => $plugins, 3478 ) 3479 ); 3317 3480 3318 3481 $this->skin->bulk_footer(); … … 3501 3664 $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'sports-agency' ); 3502 3665 /* translators: 1: plugin name. */ 3503 $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'sports-agency' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'sports-agency' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'sports-agency' ) . '</span>.</a>';3666 $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'sports-agency' ); 3504 3667 $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'sports-agency' ); 3505 3668 /* translators: 1: plugin name, 2: action number 3: total number of actions. */ … … 3509 3672 $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'sports-agency' ); 3510 3673 /* translators: 1: plugin name. */ 3511 $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'sports-agency' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'sports-agency' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'sports-agency' ) . '</span>.</a>';3674 $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed successfully.', 'sports-agency' ); 3512 3675 $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'sports-agency' ); 3513 3676 /* translators: 1: plugin name, 2: action number 3: total number of actions. */ 3514 3677 $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'sports-agency' ); 3678 } 3679 3680 // Add "read more" link only for WP < 4.8. 3681 if ( version_compare( $this->tgmpa->wp_version, '4.8', '<' ) ) { 3682 $this->upgrader->strings['skin_update_successful'] .= ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'sports-agency' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'sports-agency' ) . '</span>.</a>'; 3515 3683 } 3516 3684 } … … 3572 3740 $update_actions['dashboard'] = sprintf( 3573 3741 esc_html( $this->tgmpa->strings['complete'] ), 3574 '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html __( 'Return to the Dashboard', 'sports-agency') . '</a>'3742 '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html( $this->tgmpa->strings['dashboard'] ) . '</a>' 3575 3743 ); 3576 3744 } else { … … 3715 3883 */ 3716 3884 protected static function emulate_filter_bool( $value ) { 3717 // @codingStandardsIgnoreStart3885 // phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine 3718 3886 static $true = array( 3719 3887 '1', … … 3730 3898 'off', 'Off', 'OFF', 3731 3899 ); 3732 // @codingStandardsIgnoreEnd3900 // phpcs:enable 3733 3901 3734 3902 if ( is_bool( $value ) ) { … … 3752 3920 } 3753 3921 } // End of class TGMPA_Utils 3754 } // End of class_exists wrapper3922 } -
sports-agency/0.1.4/includes/tgm/tgm.php
r278457 r313061 46 46 ); 47 47 $config = array(); 48 sports_agency_tgmpa( $plugins, $config );48 tgmpa( $plugins, $config ); 49 49 } 50 50 add_action( 'tgmpa_register', 'sports_agency_register_recommended_plugins' ); -
sports-agency/0.1.4/readme.txt
r307781 r313061 2 2 Contributors: wpelemento 3 3 Requires at least: 5.0 4 Stable tag: 0.1. 24 Stable tag: 0.1.4 5 5 Requires PHP: 7.2 6 6 Tested up to: 6.9 … … 25 25 26 26 Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com 27 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)27 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 28 28 29 29 Webfonts Loader … … 110 110 == Changelog == 111 111 112 = February-5-2026 :: 0.1.4 113 114 * Added hover effect on product featured image. 115 * Added animation on single post. 116 * Added animation on related post. 117 * Hover color on getstarted button. 118 119 = January-12-2026 :: 0.1.3 120 121 * Updated rtl.css file. 122 * Added hover effect on single post featured image. 123 * Resolve css error. 124 * Added menu in demo import. 125 * Fetching products in shop page. 126 * Resolve tgm plugin error. 127 112 128 = January-1-2026 :: 0.1.2 113 129 -
sports-agency/0.1.4/rtl.css
r288447 r313061 1823 1823 /* Wide Block */ 1824 1824 1825 .alignwide {1825 .alignwide { 1826 1826 margin-right : -60px; 1827 1827 margin-left : -60px; … … 1832 1832 max-width : 100vw; 1833 1833 } 1834 1835 /* =============================================== 1836 Sticky Copyright 1837 ============================================= */ 1838 1839 .sticky-copyright.footer-copyright{ 1840 position: fixed; 1841 bottom:0; 1842 right:0; 1843 width: 100%; 1844 z-index: 999; 1845 transition: bottom 0.4s; 1846 box-shadow: 0px 0px 8px #000000; 1847 } 1848 .close-sticky { 1849 position: static; 1850 } 1851 1852 /* =============================================== 1853 Sticky Sidebar 1854 ============================================= */ 1855 1856 .sidebar-sticky { 1857 position: sticky; 1858 top: 100px; 1859 z-index: 999; 1860 } -
sports-agency/0.1.4/style.css
r307781 r313061 5 5 Theme URI: https://www.wpelemento.com/products/sports-agency 6 6 Author URI: https://www.wpelemento.com/ 7 Version: 0.1. 27 Version: 0.1.4 8 8 Requires PHP: 7.2 9 9 Tested up to: 6.9 -
sports-agency/0.1.4/template-parts/content-post.php
r278457 r313061 17 17 <div id="post-<?php the_ID(); ?>" <?php post_class('post-single mb-4'); ?>> 18 18 <?php if ( has_post_thumbnail() && get_theme_mod( 'sports_agency_single_post_featured_image',true) ) { ?> 19 <div class="post-thumbnail post-img ">19 <div class="post-thumbnail post-img <?php echo esc_attr( get_theme_mod(' sports_agency_enable_post_animation', true) ? 'zoomInUp wow' : '' ); ?>"> 20 20 <?php the_post_thumbnail(''); ?> 21 21 </div> -
sports-agency/0.1.4/template-parts/related-posts.php
r278457 r313061 22 22 23 23 if ( $sports_agency_related_posts->have_posts() ) : ?> 24 <div class="related-post ">24 <div class="related-post <?php echo esc_attr( get_theme_mod('sports_agency_enable_post_animation', true) ? 'zoomInUp wow' : '' ); ?>"> 25 25 <h3><?php echo esc_html__('Related Post' ,'sports-agency' );?></h3> 26 26 <div class="row">
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)