Changeset 310691
- Timestamp:
- 01/28/2026 11:01:25 AM (9 months ago)
- Location:
- museum-artifact/0.2.2
- Files:
-
- 8 edited
- 1 copied
-
. (copied) (copied from museum-artifact/0.2.1 )
-
includes/color-setting/custom-color-control.php (modified) (1 diff)
-
includes/customizer.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) (4 diffs)
-
rtl.css (modified) (2 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
museum-artifact/0.2.2/includes/color-setting/custom-color-control.php
r260847 r310691 37 37 $museum_artifact_theme_custom_setting_css .='display: none;'; 38 38 $museum_artifact_theme_custom_setting_css .='}'; 39 } 39 } 40 41 // Featured Image Hover Effect 42 $museum_artifact_show_featured = get_theme_mod('museum_artifact_featured_image_hide_show', 1); 43 $museum_artifact_hover_effect = get_theme_mod('museum_artifact_single_post_featured_image_hover','none'); 44 45 if ( $museum_artifact_show_featured && $museum_artifact_hover_effect !== 'none' ) { 46 47 $museum_artifact_theme_custom_setting_css .= ' 48 .post-img img{ 49 transition: all 0.4s ease; 50 }'; 51 52 if ( $museum_artifact_hover_effect === 'zoom-in' ) { 53 $museum_artifact_theme_custom_setting_css .= ' 54 .post-img:hover img{ 55 transform: scale(1.2); 56 }'; 57 } 58 59 if ( $museum_artifact_hover_effect === 'zoom-out' ) { 60 $museum_artifact_theme_custom_setting_css .= ' 61 .post-img img{ transform: scale(1.2); } 62 .post-img:hover img{ transform: scale(1); }'; 63 } 64 65 if ( $museum_artifact_hover_effect === 'grayscale' ) { 66 $museum_artifact_theme_custom_setting_css .= ' 67 .post-img img{ filter: grayscale(100%); } 68 .post-img:hover img{ filter: grayscale(0); }'; 69 } 70 71 if ( $museum_artifact_hover_effect === 'sepia' ) { 72 $museum_artifact_theme_custom_setting_css .= ' 73 .post-img:hover img{ filter: sepia(100%); }'; 74 } 75 76 if ( $museum_artifact_hover_effect === 'blur' ) { 77 $museum_artifact_theme_custom_setting_css .= ' 78 .post-img:hover img{ filter: blur(3px); }'; 79 } 80 81 if ( $museum_artifact_hover_effect === 'bright' ) { 82 $museum_artifact_theme_custom_setting_css .= ' 83 .post-img:hover img{ filter: brightness(1.3); }'; 84 } 85 86 if ( $museum_artifact_hover_effect === 'translate' ) { 87 $museum_artifact_theme_custom_setting_css .= ' 88 .post-img:hover img{ transform: translateY(-10px); }'; 89 } 90 91 if ( $museum_artifact_hover_effect === 'scale' ) { 92 $museum_artifact_theme_custom_setting_css .= ' 93 .post-img:hover img{ transform: scale(1.1); }'; 94 } 95 } -
museum-artifact/0.2.2/includes/customizer.php
r299347 r310691 1343 1343 1344 1344 Kirki::add_field( 'theme_config_id', [ 1345 'type' => 'select', 1346 'tab' => 'single-post', 1347 'settings' => 'museum_artifact_single_post_featured_image_hover', 1348 'label' => esc_html__( 'Featured Image Hover Effect', 'museum-artifact' ), 1349 'section' => 'museum_artifact_blog_post', 1350 'default' => 'none', 1351 'priority' => 20, 1352 'choices' => [ 1353 'none' => esc_html__( 'None', 'museum-artifact' ), 1354 'zoom-in' => esc_html__( 'Zoom In', 'museum-artifact' ), 1355 'zoom-out' => esc_html__( 'Zoom Out', 'museum-artifact' ), 1356 'scale' => esc_html__( 'Scale', 'museum-artifact' ), 1357 'grayscale' => esc_html__( 'Grayscale', 'museum-artifact' ), 1358 'blur' => esc_html__( 'Blur', 'museum-artifact' ), 1359 'bright' => esc_html__( 'Bright', 'museum-artifact' ), 1360 'sepia' => esc_html__( 'Sepia', 'museum-artifact' ), 1361 'translate' => esc_html__( 'Translate', 'museum-artifact' ), 1362 ], 1363 ] ); 1364 1365 Kirki::add_field( 'theme_config_id', [ 1345 1366 'type' => 'custom', 1346 1367 'tab' => 'single-post', -
museum-artifact/0.2.2/includes/product-create.php
r299347 r310691 34 34 ) 35 35 )); 36 }37 36 37 /* Create Menu */ 38 $museum_artifact_menuname = 'Main Menus'; 39 $museum_artifact_location = 'main-menu'; 40 41 $museum_artifact_menu = wp_get_nav_menu_object( $museum_artifact_menuname ); 42 43 if ( ! $museum_artifact_menu ) { 44 $museum_artifact_menu_id = wp_create_nav_menu( $museum_artifact_menuname ); 45 46 // Home Page 47 wp_update_nav_menu_item( $museum_artifact_menu_id, 0, array( 48 'menu-item-title' => __( 'Home', 'museum-artifact' ), 49 'menu-item-url' => home_url( '/' ), 50 'menu-item-type' => 'custom', 51 'menu-item-status' => 'publish', 52 ) ); 53 54 // About Us Page 55 $museum_artifact_about_id = wp_insert_post( array( 56 'post_type' => 'page', 57 '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.', 58 'post_title' => 'About Us', 59 'post_status' => 'publish', 60 ) ); 61 62 if ( $museum_artifact_about_id ) { 63 wp_update_nav_menu_item( $museum_artifact_menu_id, 0, array( 64 'menu-item-title' => 'About Us', 65 'menu-item-object' => 'page', 66 'menu-item-object-id' => $museum_artifact_about_id, 67 'menu-item-type' => 'post_type', 68 'menu-item-status' => 'publish', 69 ) ); 70 } 71 72 // Exhibition Page 73 $museum_artifact_about_id = wp_insert_post( array( 74 'post_type' => 'page', 75 '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.', 76 'post_title' => 'Exhibition', 77 'post_status' => 'publish', 78 ) ); 79 80 if ( $museum_artifact_about_id ) { 81 wp_update_nav_menu_item( $museum_artifact_menu_id, 0, array( 82 'menu-item-title' => 'Exhibition', 83 'menu-item-object' => 'page', 84 'menu-item-object-id' => $museum_artifact_about_id, 85 'menu-item-type' => 'post_type', 86 'menu-item-status' => 'publish', 87 ) ); 88 } 89 90 // Pages Page 91 $museum_artifact_about_id = wp_insert_post( array( 92 'post_type' => 'page', 93 '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.', 94 'post_title' => 'Pages', 95 'post_status' => 'publish', 96 ) ); 97 98 if ( $museum_artifact_about_id ) { 99 wp_update_nav_menu_item( $museum_artifact_menu_id, 0, array( 100 'menu-item-title' => 'Pages', 101 'menu-item-object' => 'page', 102 'menu-item-object-id' => $museum_artifact_about_id, 103 'menu-item-type' => 'post_type', 104 'menu-item-status' => 'publish', 105 ) ); 106 } 107 108 // Contact Us Page 109 $museum_artifact_about_id = wp_insert_post( array( 110 'post_type' => 'page', 111 '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.', 112 'post_title' => 'Contact Us', 113 'post_status' => 'publish', 114 ) ); 115 116 if ( $museum_artifact_about_id ) { 117 wp_update_nav_menu_item( $museum_artifact_menu_id, 0, array( 118 'menu-item-title' => 'Contact Us', 119 'menu-item-object' => 'page', 120 'menu-item-object-id' => $museum_artifact_about_id, 121 'menu-item-type' => 'post_type', 122 'menu-item-status' => 'publish', 123 ) ); 124 } 125 126 // Create Blog Page 127 $museum_artifact_blog_page_title = 'Blog'; 128 129 $museum_artifact_blog_page_query = new WP_Query(array( 130 'post_type' => 'page', 131 'name' => sanitize_title($museum_artifact_blog_page_title), 132 'post_status' => 'publish', 133 'posts_per_page' => 1 134 )); 135 if (!$museum_artifact_blog_page_query->hae_posts()) { 136 $museum_artifact_blog_page = array( 137 'post_type' => 'page', 138 'post_title' => $museum_artifact_blog_page_title, 139 'post_status' => 'publish', 140 'post_author' => 1, 141 ); 142 $museum_artifact_blog_page_id = wp_insert_post($museum_artifact_blog_page); 143 update_option('page_for_posts', $museum_artifact_blog_page_id); 144 145 wp_update_na_menu_item($museum_artifact_menu_id, 0, array( 146 'menu-item-title' => __('Blog', 'museum-artifact'), 147 'menu-item-url' => get_permalink($museum_artifact_blog_page_id), 148 'menu-item-status' => 'publish', 149 'menu-item-object-id' => $museum_artifact_blog_page_id, 150 'menu-item-object' => 'page', 151 'menu-item-type' => 'post_type', 152 )); 153 } 154 155 /* Assign Menu Location */ 156 $museum_artifact_locations = get_theme_mod( 'nav_menu_locations', array() ); 157 $museum_artifact_locations[ $museum_artifact_location ] = $museum_artifact_menu_id; 158 set_theme_mod( 'nav_menu_locations', $museum_artifact_locations ); 159 } 160 } 38 161 } 39 162 -
museum-artifact/0.2.2/includes/tgm/class-tgm-plugin-activation.php
r244257 r310691 9 9 * 10 10 * @package TGM-Plugin-Activation 11 * @version 2.6.1 for parent theme Museum Artifact 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', 'museum-artifact' ), 333 346 'oops' => __( 'Something went wrong with the plugin API.', 'museum-artifact' ), 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 'museum-artifact' 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 'museum-artifact' 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 'museum-artifact' 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 'museum-artifact' 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 'museum-artifact' 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( 'museum-artifact' ) ) { 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( 'museum-artifact', dirname( __FILE__ ) . '/languages' ); 486 remove_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10 ); 487 } else { 488 load_theme_textdomain( 'museum-artifact', 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 ( 'museum-artifact' !== $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 ( 'museum-artifact' !== $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.', 'museum-artifact' ) ); 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', 'museum-artifact') . '</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.', 'museum-artifact' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'museum-artifact' ), 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.', 'museum-artifact' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'museum-artifact' ), 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.', 'museum-artifact' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'museum-artifact' ), 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.', 'museum-artifact' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'museum-artifact' ), 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( 'museum-artifact', 'museum-artifact', $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( 'museum-artifact' ); 1234 1362 1235 1363 foreach ( (array) $wp_settings_errors as $key => $details ) { 1236 if ( ' tgmpa' === $details['setting'] ) {1364 if ( 'museum-artifact' === $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 museum_artifact_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: # F99D43; 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.', 'museum-artifact' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html __( 'Return to the Dashboard', 'museum-artifact') . '</a>';2681 echo esc_html__( 'No plugins to install, update or activate.', 'museum-artifact' ) . ' <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', 'museum-artifact' ) . ' ' . $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, 'museum-artifact' ) ), 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.', 'museum-artifact' ); 3502 3665 /* translators: 1: plugin name. */ 3503 $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'museum-artifact' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'museum-artifact' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'museum-artifact' ) . '</span>.</a>';3666 $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'museum-artifact' ); 3504 3667 $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'museum-artifact' ); 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.', 'museum-artifact' ); 3510 3673 /* translators: 1: plugin name. */ 3511 $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'museum-artifact' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'museum-artifact' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'museum-artifact' ) . '</span>.</a>';3674 $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed successfully.', 'museum-artifact' ); 3512 3675 $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'museum-artifact' ); 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)', 'museum-artifact' ); 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', 'museum-artifact' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'museum-artifact' ) . '</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', 'museum-artifact') . '</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 } -
museum-artifact/0.2.2/includes/tgm/tgm.php
r244257 r310691 40 40 ); 41 41 $config = array(); 42 museum_artifact_tgmpa( $plugins, $config );42 tgmpa( $plugins, $config ); 43 43 } 44 44 add_action( 'tgmpa_register', 'museum_artifact_register_recommended_plugins' ); -
museum-artifact/0.2.2/readme.txt
r307382 r310691 2 2 Contributors: wpelemento 3 3 Requires at least: 5.0 4 Stable tag: 0.2. 14 Stable tag: 0.2.2 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.9 … … 9 9 Tags: blog, photography, e-commerce, one-column, two-columns, right-sidebar, left-sidebar, grid-layout, three-columns, four-columns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, footer-widgets, full-width-template, editor-style, sticky-post, theme-options, threaded-comments, translation-ready, rtl-language-support, wide-blocks 10 10 11 12 11 == Description == 13 12 … … 24 23 25 24 Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com 26 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)25 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 27 26 28 27 Webfonts Loader … … 77 76 78 77 == Changelog == 78 79 = January-12-2026 :: 0.2.2 80 81 * Updated rtl.css file. 82 * Added hover effect on single post featured image. 83 * Resolve css error. 84 * Added menu in demo import. 85 * Fetching post in blog page. 86 * Resolve tgm plugin error. 79 87 80 88 = January-1-2026 :: 0.2.1 -
museum-artifact/0.2.2/rtl.css
r288881 r310691 1956 1956 } 1957 1957 1958 /* Wide Block */ 1958 /* =============================================== 1959 Wide Block 1960 ============================================= */ 1959 1961 1960 1962 .alignwide { … … 1967 1969 max-width : 100vw; 1968 1970 } 1971 1972 /* =============================================== 1973 Sticky Copyright 1974 ============================================= */ 1975 1976 .sticky-copyright.footer-copyright{ 1977 position: fixed; 1978 bottom:0; 1979 right:0; 1980 width: 100%; 1981 z-index: 999; 1982 transition: bottom 0.4s; 1983 box-shadow: 0px 0px 8px #000000; 1984 } 1985 .close-sticky { 1986 position: static; 1987 } 1988 1989 /* =============================================== 1990 Sticky Sidebar 1991 ============================================= */ 1992 1993 .sidebar-sticky { 1994 position: sticky; 1995 top: 100px; 1996 z-index: 999; 1997 } -
museum-artifact/0.2.2/style.css
r307382 r310691 5 5 Theme URI: https://www.wpelemento.com/products/free-art-gallery-wordpress-theme 6 6 Author URI: https://www.wpelemento.com/ 7 Version: 0.2. 17 Version: 0.2.2 8 8 Requires PHP: 5.6 9 9 Tested up to: 6.9
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)