Changeset 3299691
- Timestamp:
- 05/24/2025 06:55:54 AM (9 months ago)
- Location:
- spiraclethemes-site-library
- Files:
-
- 176 added
- 7 edited
-
tags/1.5.0 (added)
-
tags/1.5.0/Changelogs.txt (added)
-
tags/1.5.0/LICENSE (added)
-
tags/1.5.0/README.txt (added)
-
tags/1.5.0/admin (added)
-
tags/1.5.0/admin/admin-init.php (added)
-
tags/1.5.0/admin/assets (added)
-
tags/1.5.0/admin/assets/css (added)
-
tags/1.5.0/admin/assets/css/admin.css (added)
-
tags/1.5.0/admin/assets/css/toggle-switch.css (added)
-
tags/1.5.0/admin/assets/images (added)
-
tags/1.5.0/admin/assets/images/menu-icon.png (added)
-
tags/1.5.0/admin/assets/js (added)
-
tags/1.5.0/admin/assets/js/admin-plugin-settings.js (added)
-
tags/1.5.0/admin/assets/js/admin.js (added)
-
tags/1.5.0/admin/includes (added)
-
tags/1.5.0/admin/includes/system-info.php (added)
-
tags/1.5.0/admin/includes/system-settings.php (added)
-
tags/1.5.0/css (added)
-
tags/1.5.0/css/main.css (added)
-
tags/1.5.0/elements (added)
-
tags/1.5.0/elements/blogson (added)
-
tags/1.5.0/elements/blogson/helper-functions.php (added)
-
tags/1.5.0/elements/blogson/post-grid (added)
-
tags/1.5.0/elements/blogson/post-grid/template (added)
-
tags/1.5.0/elements/blogson/post-grid/template/config.php (added)
-
tags/1.5.0/elements/blogson/post-grid/template/view.php (added)
-
tags/1.5.0/elements/blogson/widget-category.php (added)
-
tags/1.5.0/elements/blogson/widgets.php (added)
-
tags/1.5.0/elements/own-shop (added)
-
tags/1.5.0/elements/own-shop/featured-prod (added)
-
tags/1.5.0/elements/own-shop/featured-prod/template (added)
-
tags/1.5.0/elements/own-shop/featured-prod/template/config.php (added)
-
tags/1.5.0/elements/own-shop/featured-prod/template/view.php (added)
-
tags/1.5.0/elements/own-shop/helper-functions.php (added)
-
tags/1.5.0/elements/own-shop/list-prod (added)
-
tags/1.5.0/elements/own-shop/list-prod/template (added)
-
tags/1.5.0/elements/own-shop/list-prod/template/config.php (added)
-
tags/1.5.0/elements/own-shop/list-prod/template/view.php (added)
-
tags/1.5.0/elements/own-shop/new-prod (added)
-
tags/1.5.0/elements/own-shop/new-prod/template (added)
-
tags/1.5.0/elements/own-shop/new-prod/template/config.php (added)
-
tags/1.5.0/elements/own-shop/new-prod/template/view.php (added)
-
tags/1.5.0/elements/own-shop/popular-prod (added)
-
tags/1.5.0/elements/own-shop/popular-prod/template (added)
-
tags/1.5.0/elements/own-shop/popular-prod/template/config.php (added)
-
tags/1.5.0/elements/own-shop/popular-prod/template/view.php (added)
-
tags/1.5.0/elements/own-shop/recent-blog (added)
-
tags/1.5.0/elements/own-shop/recent-blog/template (added)
-
tags/1.5.0/elements/own-shop/recent-blog/template/config.php (added)
-
tags/1.5.0/elements/own-shop/recent-blog/template/view.php (added)
-
tags/1.5.0/elements/own-shop/widget-category.php (added)
-
tags/1.5.0/elements/own-shop/widgets.php (added)
-
tags/1.5.0/img (added)
-
tags/1.5.0/img/moredemo.jpg (added)
-
tags/1.5.0/img/no-image.jpg (added)
-
tags/1.5.0/img/rocket.svg (added)
-
tags/1.5.0/inc (added)
-
tags/1.5.0/inc/blogson-functions.php (added)
-
tags/1.5.0/inc/colon-functions.php (added)
-
tags/1.5.0/inc/colon-plus-functions.php (added)
-
tags/1.5.0/inc/crater-free-functions.php (added)
-
tags/1.5.0/inc/krystal-business-functions.php (added)
-
tags/1.5.0/inc/krystal-functions.php (added)
-
tags/1.5.0/inc/krystal-lawyer-functions.php (added)
-
tags/1.5.0/inc/krystal-shop-functions.php (added)
-
tags/1.5.0/inc/lawfiz-functions.php (added)
-
tags/1.5.0/inc/lawfiz-one-functions.php (added)
-
tags/1.5.0/inc/legalblow-functions.php (added)
-
tags/1.5.0/inc/mestore-functions.php (added)
-
tags/1.5.0/inc/own-shop-functions.php (added)
-
tags/1.5.0/inc/own-shop-lite-functions.php (added)
-
tags/1.5.0/inc/own-shop-trend-functions.php (added)
-
tags/1.5.0/inc/own-shope-functions.php (added)
-
tags/1.5.0/inc/own-store-functions.php (added)
-
tags/1.5.0/inc/purea-fashion-functions.php (added)
-
tags/1.5.0/inc/purea-magazine-functions.php (added)
-
tags/1.5.0/inc/somalite-functions.php (added)
-
tags/1.5.0/inc/themes.php (added)
-
tags/1.5.0/inc/widget (added)
-
tags/1.5.0/inc/widget/widget.php (added)
-
tags/1.5.0/index.php (added)
-
tags/1.5.0/spiraclethemes-site-library.php (added)
-
tags/1.5.0/vendor (added)
-
tags/1.5.0/vendor/admin-notices (added)
-
tags/1.5.0/vendor/admin-notices/AdminNotice.php (added)
-
tags/1.5.0/vendor/admin-notices/LICENSE.txt (added)
-
tags/1.5.0/vendor/admin-notices/README.md (added)
-
tags/1.5.0/vendor/admin-notices/bin (added)
-
tags/1.5.0/vendor/admin-notices/bin/install-wp-tests.sh (added)
-
tags/1.5.0/vendor/admin-notices/dismiss-notice.js (added)
-
tags/1.5.0/vendor/ocdi (added)
-
tags/1.5.0/vendor/ocdi/assets (added)
-
tags/1.5.0/vendor/ocdi/assets/css (added)
-
tags/1.5.0/vendor/ocdi/assets/css/main.css (added)
-
tags/1.5.0/vendor/ocdi/assets/css/main.min.css (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/about-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/book-now-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/contact-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/faq-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/meet-the-team-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/menu-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/portfolio-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/services-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/shop-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/demo-content/testimonials-page.xml (added)
-
tags/1.5.0/vendor/ocdi/assets/images (added)
-
tags/1.5.0/vendor/ocdi/assets/images/error.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/brush.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/check-solid-white.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/content.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/copy.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/info-circle.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/layout.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/lock.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/long-arrow-alt-left-blue.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/plugins.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/question-circle.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/redux.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/star.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/icons/widgets.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/importing.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/loader.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/success.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/images/warning.svg (added)
-
tags/1.5.0/vendor/ocdi/assets/js (added)
-
tags/1.5.0/vendor/ocdi/assets/js/main.js (added)
-
tags/1.5.0/vendor/ocdi/assets/js/main.min.js (added)
-
tags/1.5.0/vendor/ocdi/inc (added)
-
tags/1.5.0/vendor/ocdi/inc/CreateDemoContent (added)
-
tags/1.5.0/vendor/ocdi/inc/CreateDemoContent/DemoContentCreator.php (added)
-
tags/1.5.0/vendor/ocdi/inc/CustomizerImporter.php (added)
-
tags/1.5.0/vendor/ocdi/inc/CustomizerOption.php (added)
-
tags/1.5.0/vendor/ocdi/inc/Downloader.php (added)
-
tags/1.5.0/vendor/ocdi/inc/Helpers.php (added)
-
tags/1.5.0/vendor/ocdi/inc/ImportActions.php (added)
-
tags/1.5.0/vendor/ocdi/inc/Importer.php (added)
-
tags/1.5.0/vendor/ocdi/inc/Logger.php (added)
-
tags/1.5.0/vendor/ocdi/inc/OneClickDemoImport.php (added)
-
tags/1.5.0/vendor/ocdi/inc/PluginInstaller.php (added)
-
tags/1.5.0/vendor/ocdi/inc/PluginInstallerSkin.php (added)
-
tags/1.5.0/vendor/ocdi/inc/PluginInstallerSkinSilent.php (added)
-
tags/1.5.0/vendor/ocdi/inc/ReduxImporter.php (added)
-
tags/1.5.0/vendor/ocdi/inc/ViewHelpers.php (added)
-
tags/1.5.0/vendor/ocdi/inc/WPCLICommands.php (added)
-
tags/1.5.0/vendor/ocdi/inc/WXRImporter.php (added)
-
tags/1.5.0/vendor/ocdi/inc/WidgetImporter.php (added)
-
tags/1.5.0/vendor/ocdi/one-click-demo-import.php (added)
-
tags/1.5.0/vendor/ocdi/vendor (added)
-
tags/1.5.0/vendor/ocdi/vendor/autoload.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2 (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/README.md (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/composer.json (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/src (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/Importer.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLogger.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WXRImportInfo.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/ClassLoader.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/LICENSE (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/autoload_classmap.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/autoload_namespaces.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/autoload_psr4.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/autoload_real.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/autoload_static.php (added)
-
tags/1.5.0/vendor/ocdi/vendor/composer/installed.json (added)
-
tags/1.5.0/vendor/ocdi/views (added)
-
tags/1.5.0/vendor/ocdi/views/create-content.php (added)
-
tags/1.5.0/vendor/ocdi/views/import.php (added)
-
tags/1.5.0/vendor/ocdi/views/install-plugins.php (added)
-
tags/1.5.0/vendor/ocdi/views/plugin-page.php (added)
-
trunk/Changelogs.txt (modified) (1 diff)
-
trunk/README.txt (modified) (1 diff)
-
trunk/admin/admin-init.php (modified) (11 diffs)
-
trunk/admin/includes/system-info.php (modified) (1 diff)
-
trunk/admin/includes/system-settings.php (modified) (1 diff)
-
trunk/inc/widget/widget.php (modified) (3 diffs)
-
trunk/spiraclethemes-site-library.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
spiraclethemes-site-library/trunk/Changelogs.txt
r3298065 r3299691 1 1 2 2 == Changelog == 3 4 == 1.5.1 == 5 - Fixed deprecated issue warning in dashboard widget 3 6 4 7 == 1.5.0 == -
spiraclethemes-site-library/trunk/README.txt
r3298065 r3299691 3 3 Contributors: spiraclethemes 4 4 Tags: spiraclethemes, demo, import, themes 5 Stable tag: 1.5. 05 Stable tag: 1.5.1 6 6 Requires at least: 5.0 7 7 Requires PHP: 5.6 -
spiraclethemes-site-library/trunk/admin/admin-init.php
r3298065 r3299691 13 13 ob_start(); 14 14 15 class S SL_Admin {15 class Spiraclethemes_site_library_Admin { 16 16 17 17 /** … … 43 43 } 44 44 45 $this->s sl_init_hooks();45 $this->spiraclethemes_site_library_init_hooks(); 46 46 } 47 47 … … 49 49 * Register admin menu. 50 50 */ 51 public function s sl_register_admin_menu() {51 public function spiraclethemes_site_library_register_admin_menu() { 52 52 add_menu_page( 53 53 esc_html__('Spiraclethemes Site Library', 'spiraclethemes-site-library'), … … 55 55 'manage_options', 56 56 'ssl-settings', 57 [$this, 's sl_display_settings_pages'],57 [$this, 'spiraclethemes_site_library_display_settings_pages'], 58 58 'dashicons-art' 59 59 ); … … 63 63 * Initialize hooks. 64 64 */ 65 public function s sl_init_hooks() {66 add_action('admin_menu', [$this, 's sl_register_admin_menu']);67 add_action('admin_enqueue_scripts', [$this, 's sl_enqueue_scripts']);68 add_action('wp_ajax_ssl_save_settings', [$this, 's sl_save_settings']);65 public function spiraclethemes_site_library_init_hooks() { 66 add_action('admin_menu', [$this, 'spiraclethemes_site_library_register_admin_menu']); 67 add_action('admin_enqueue_scripts', [$this, 'spiraclethemes_site_library_enqueue_scripts']); 68 add_action('wp_ajax_ssl_save_settings', [$this, 'spiraclethemes_site_library_save_settings']); 69 69 } 70 70 … … 74 74 * @param string $hook The current admin page hook. 75 75 */ 76 public function s sl_enqueue_scripts($hook) {76 public function spiraclethemes_site_library_enqueue_scripts($hook) { 77 77 if ('toplevel_page_ssl-settings' !== $hook) { 78 78 return; … … 111 111 * Save settings via AJAX. 112 112 */ 113 public function s sl_save_settings() {113 public function spiraclethemes_site_library_save_settings() { 114 114 // Verify nonce 115 115 if (!check_ajax_referer(self::NONCE_NAME, 'nonce', false)) { … … 222 222 * Display settings pages. 223 223 */ 224 public function s sl_display_settings_pages() {224 public function spiraclethemes_site_library_display_settings_pages() { 225 225 // Explicit capability check 226 226 if (!current_user_can('manage_options')) { … … 292 292 <?php 293 293 // Assume ssl_get_sysinfo() is properly sanitized 294 echo wp_kses_post(nl2br(s sl_get_sysinfo()));294 echo wp_kses_post(nl2br(spiraclethemes_site_library_get_sysinfo())); 295 295 ?> 296 296 </div> … … 303 303 <?php 304 304 // Assume ssl_get_syssettings() is properly sanitized 305 echo s sl_get_syssettings();305 echo spiraclethemes_site_library_get_syssettings(); 306 306 ?> 307 307 <p class="submit"> … … 324 324 } 325 325 326 new S SL_Admin();326 new Spiraclethemes_site_library_Admin(); -
spiraclethemes-site-library/trunk/admin/includes/system-info.php
r3298065 r3299691 3 3 if (!defined('ABSPATH')) exit; // Exit if accessed directly 4 4 5 function s sl_get_sysinfo() {5 function spiraclethemes_site_library_get_sysinfo() { 6 6 global $wpdb; 7 7 -
spiraclethemes-site-library/trunk/admin/includes/system-settings.php
r3298065 r3299691 2 2 if (!defined('ABSPATH')) exit; 3 3 4 function s sl_get_syssettings() {4 function spiraclethemes_site_library_get_syssettings() { 5 5 ob_start(); 6 6 ?> -
spiraclethemes-site-library/trunk/inc/widget/widget.php
r3298065 r3299691 47 47 48 48 if ("1" === get_option('ssl_disable_discount_widget')) { 49 if (!current_user_can('manage_options')) { 50 echo '<p>' . esc_html__('You do not have permission to view this content.', 'spiraclethemes-site-library') . '</p>'; 51 return; 52 } 53 49 54 $cache_key = 'spiraclethemes_discount_data'; 50 55 $xml_body = get_transient($cache_key); 51 56 52 if (false === $xml_body ) {57 if (false === $xml_body || !is_string($xml_body) || empty($xml_body)) { 53 58 $api_url = esc_url_raw('https://api.spiraclethemes.com/discounts/disapi.php'); 54 59 $response = wp_safe_remote_get($api_url, [ … … 72 77 } 73 78 74 libxml_disable_entity_loader(true); 79 if (version_compare(PHP_VERSION, '8.0.0', '<')) { 80 libxml_disable_entity_loader(true); 81 } 75 82 libxml_use_internal_errors(true); 76 83 $xml = simplexml_load_string($xml_body, 'SimpleXMLElement', LIBXML_NOCDATA); 77 84 78 85 if ($xml === false) { 86 if (defined('WP_DEBUG') && WP_DEBUG) { 87 error_log('Spiraclethemes Site Library: XML parsing errors: ' . print_r(libxml_get_errors(), true)); 88 } 79 89 echo '<p>' . esc_html__('Error parsing XML data.', 'spiraclethemes-site-library') . '</p>'; 80 90 libxml_clear_errors(); … … 86 96 foreach ($xml->theme as $theme) { 87 97 if ((string) $theme->slug === $theme_slug) { 88 $theme_discount = (string) $theme->sale;89 $theme_url = (string) $theme->purchase_url;98 $theme_discount = !empty($theme->sale) ? (string) $theme->sale : null; 99 $theme_url = !empty($theme->purchase_url) ? (string) $theme->purchase_url : null; 90 100 break; 91 101 } -
spiraclethemes-site-library/trunk/spiraclethemes-site-library.php
r3298065 r3299691 4 4 * Plugin URI: https://wordpress.org/plugins/spiraclethemes-site-library/ 5 5 * Description: A plugin by Spiracle Themes that adds one-click demo import, theme customization, starter templates, and page builder support to its free themes. 6 * Version: 1.5. 06 * Version: 1.5.1 7 7 * Author: SpiracleThemes 8 8 * Author URI: https://spiraclethemes.com
Note: See TracChangeset
for help on using the changeset viewer.