updated plugin Menu Icons
version 0.13.13
This commit is contained in:
parent
7841fd5dc6
commit
d03256bbc3
@ -1,3 +1,19 @@
|
||||
##### [Version 0.13.13](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.12...v0.13.13) (2024-04-18)
|
||||
|
||||
### Improvements
|
||||
- **Updated internal dependencies:** Enhanced performance and security.
|
||||
|
||||
##### [Version 0.13.12](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.11...v0.13.12) (2024-04-01)
|
||||
|
||||
### Improvements
|
||||
- **Updated internal dependencies**
|
||||
|
||||
##### [Version 0.13.11](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.10...v0.13.11) (2024-03-29)
|
||||
|
||||
### Fixes
|
||||
- Updated internal dependencies
|
||||
- Enhanced security
|
||||
|
||||
##### [Version 0.13.10](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.9...v0.13.10) (2024-03-26)
|
||||
|
||||
### Improvements
|
||||
|
@ -11,7 +11,7 @@
|
||||
* Plugin name: Menu Icons
|
||||
* Plugin URI: https://github.com/Codeinwp/wp-menu-icons
|
||||
* Description: Spice up your navigation menus with pretty icons, easily.
|
||||
* Version: 0.13.10
|
||||
* Version: 0.13.13
|
||||
* Author: ThemeIsle
|
||||
* Author URI: https://themeisle.com
|
||||
* License: GPLv2
|
||||
@ -29,7 +29,7 @@ final class Menu_Icons {
|
||||
|
||||
const DISMISS_NOTICE = 'menu-icons-dismiss-notice';
|
||||
|
||||
const VERSION = '0.13.10';
|
||||
const VERSION = '0.13.13';
|
||||
|
||||
/**
|
||||
* Holds plugin data
|
||||
|
@ -2,7 +2,7 @@
|
||||
Contributors: codeinwp, themeisle
|
||||
Tags: menu, nav-menu, icons, navigation
|
||||
Requires at least: 4.7
|
||||
Tested up to: 6.4
|
||||
Tested up to: 6.5
|
||||
Stable tag: trunk
|
||||
License: GPLv2
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
@ -225,6 +225,31 @@ Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
|
||||
|
||||
== Changelog ==
|
||||
|
||||
##### [Version 0.13.13](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.12...v0.13.13) (2024-04-18)
|
||||
|
||||
### Improvements
|
||||
- **Updated internal dependencies:** Enhanced performance and security.
|
||||
|
||||
|
||||
|
||||
|
||||
##### [Version 0.13.12](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.11...v0.13.12) (2024-04-01)
|
||||
|
||||
### Improvements
|
||||
- **Updated internal dependencies**
|
||||
|
||||
|
||||
|
||||
|
||||
##### [Version 0.13.11](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.10...v0.13.11) (2024-03-29)
|
||||
|
||||
### Fixes
|
||||
- Updated internal dependencies
|
||||
- Enhanced security
|
||||
|
||||
|
||||
|
||||
|
||||
##### [Version 0.13.10](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.9...v0.13.10) (2024-03-26)
|
||||
|
||||
### Improvements
|
||||
|
@ -1,3 +1,27 @@
|
||||
##### [Version 3.3.20](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.19...v3.3.20) (2024-04-16)
|
||||
|
||||
fix required params on sprintf
|
||||
|
||||
##### [Version 3.3.19](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.18...v3.3.19) (2024-04-15)
|
||||
|
||||
Add full translation support
|
||||
|
||||
##### [Version 3.3.18](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.17...v3.3.18) (2024-04-05)
|
||||
|
||||
### Big Fixes
|
||||
- Fix rollback for Themes
|
||||
|
||||
##### [Version 3.3.17](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.16...v3.3.17) (2024-04-01)
|
||||
|
||||
### Improvements
|
||||
- Add safeguard against type mutation for featured plugin results.
|
||||
|
||||
##### [Version 3.3.16](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.15...v3.3.16) (2024-03-29)
|
||||
|
||||
### Improvements
|
||||
- Formbricks on multiple products.
|
||||
- List Pro Products in featured tab.
|
||||
|
||||
##### [Version 3.3.15](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.14...v3.3.15) (2024-03-26)
|
||||
|
||||
### Improvements
|
||||
|
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-plugins'), 'version' => 'bae1a40c3811e093a7be');
|
||||
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-plugins'), 'version' => 'ba05d75f2096d5f440d0');
|
||||
|
File diff suppressed because one or more lines are too long
@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
return;
|
||||
}
|
||||
// Current SDK version and path.
|
||||
$themeisle_sdk_version = '3.3.15';
|
||||
$themeisle_sdk_version = '3.3.20';
|
||||
$themeisle_sdk_path = dirname( __FILE__ );
|
||||
|
||||
global $themeisle_sdk_max_version;
|
||||
@ -121,6 +121,7 @@ if ( ! function_exists( 'tsdk_utmify' ) ) {
|
||||
$url
|
||||
)
|
||||
);
|
||||
|
||||
return apply_filters( 'tsdk_utmify_url_' . $filter_key, $utmify_url, $url );
|
||||
}
|
||||
|
||||
@ -177,6 +178,46 @@ if ( ! function_exists( 'tsdk_lkey' ) ) {
|
||||
return \ThemeisleSDK\Modules\Licenser::key( $file );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'tsdk_translate_link' ) ) {
|
||||
|
||||
/**
|
||||
* Function to translate a link based on the current language.
|
||||
*
|
||||
* @param string $url URL to translate.
|
||||
* @param string{'path'|'query'|'domain'} $type Type of localization. Supports path, query and domain.
|
||||
* @param array $available_languages Available language to choose from.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function tsdk_translate_link(
|
||||
$url, $type = 'path', $available_languages = [
|
||||
'de_DE' => 'de',
|
||||
'de_DE_formal' => 'de',
|
||||
]
|
||||
) {
|
||||
$language = get_user_locale();
|
||||
if ( ! isset( $available_languages[ $language ] ) ) {
|
||||
return $url;
|
||||
}
|
||||
$code = $available_languages[ $language ];
|
||||
// We asume that false is based on query and add the code via query arg.
|
||||
if ( $type === 'query' ) {
|
||||
return add_query_arg( 'lang', $code, $url );
|
||||
}
|
||||
|
||||
$parsed_url = wp_parse_url( $url );
|
||||
// we replace the domain here based on the localized one.
|
||||
if ( $type === 'domain' ) {
|
||||
return $parsed_url['scheme'] . '://' . $code . ( isset( $parsed_url['path'] ) ? $parsed_url['path'] : '' ) . ( isset( $parsed_url['query'] ) ? '?' . $parsed_url['query'] : '' ) . ( isset( $parsed_url['fragment'] ) ? '#' . $parsed_url['fragment'] : '' );
|
||||
}
|
||||
// default is the path based approach.
|
||||
$new_path = isset( $parsed_url['path'] ) ? "/$code" . $parsed_url['path'] : "/$code";
|
||||
|
||||
return $parsed_url['scheme'] . '://' . $parsed_url['host'] . $new_path . ( isset( $parsed_url['query'] ) ? '?' . $parsed_url['query'] : '' ) . ( isset( $parsed_url['fragment'] ) ? '#' . $parsed_url['fragment'] : '' );
|
||||
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'tsdk_support_link' ) ) {
|
||||
|
||||
/**
|
||||
|
@ -61,12 +61,231 @@ final class Loader {
|
||||
'compatibilities',
|
||||
'about_us',
|
||||
'announcements',
|
||||
'featured_plugins',
|
||||
];
|
||||
/**
|
||||
* Holds the labels for the modules.
|
||||
*
|
||||
* @var array The labels for the modules.
|
||||
*/
|
||||
public static $labels = [
|
||||
'announcements' => [
|
||||
'hurry_up' => 'Hurry up! Only %s left.',
|
||||
'sale_live' => 'Themeisle Black Friday Sale is Live!',
|
||||
'learn_more' => 'Learn more',
|
||||
'max_savings' => 'Enjoy Maximum Savings on %s',
|
||||
],
|
||||
'compatibilities' => [
|
||||
'notice' => '%s requires a newer version of %s. Please %supdate%s %s %s to the latest version.',
|
||||
'notice2' => '%s update requires a newer version of %s. Please %supdate%s %s %s.',
|
||||
'notice_theme' => '%1$sWarning:%2$s This theme has not been tested with your current version of %1$s%3$s%2$s. Please update %3$s plugin.',
|
||||
'notice_plugin' => '%1$sWarning:%2$s This plugin has not been tested with your current version of %1$s%3$s%2$s. Please update %3$s %4$s.',
|
||||
'theme' => 'theme',
|
||||
'plugin' => 'plugin',
|
||||
],
|
||||
'dashboard_widget' => [
|
||||
'title' => 'WordPress Guides/Tutorials',
|
||||
'popular' => 'Popular %s',
|
||||
'install' => 'Install',
|
||||
'powered' => 'Powered by %s',
|
||||
],
|
||||
'licenser' => [
|
||||
'activate' => 'Activate',
|
||||
'invalid_msg' => 'Invalid license.',
|
||||
'error_notice' => 'ERROR: Failed to connect to the license service. Please try again later. Reason: %s',
|
||||
'error_notice2' => 'ERROR: Failed to validate license. Please try again in one minute.',
|
||||
'error_invalid' => 'ERROR: Invalid license provided.',
|
||||
'update_license' => 'Updating this theme will lose any customizations you have made. Cancel to stop, OK to update.',
|
||||
'invalid_msg' => 'Invalid license.',
|
||||
'already_active' => 'License is already active.',
|
||||
'notice_update' => '%1$s is available. %2$sCheck out what\'s%3$s new or %4$supdate now%3$s.',
|
||||
'not_active' => 'License not active.',
|
||||
'deactivate' => 'Deactivate',
|
||||
'renew_cta' => 'Renew license to update',
|
||||
'autoactivate_notice' => '%s has been successfully activated using %s license !',
|
||||
'valid' => 'Valid',
|
||||
'invalid' => 'Invalid',
|
||||
'notice' => 'Enter your license from %s purchase history in order to get %s updates',
|
||||
'expired' => 'Your %s\'s License Key has expired. In order to continue receiving support and software updates you must %srenew%s your license key.',
|
||||
|
||||
'inactive' => 'In order to benefit from updates and support for %s, please add your license code from your %spurchase history%s and validate it %shere%s.',
|
||||
'no_activations' => 'No more activations left for %s. You need to upgrade your plan in order to use %s on more websites. If you need assistance, please get in touch with %s staff.',
|
||||
],
|
||||
'promotions' => [
|
||||
'recommended' => 'Recommended by %s',
|
||||
'woo' => [
|
||||
'title' => 'More extensions from Themeisle',
|
||||
'title2' => 'Recommended extensions',
|
||||
'cta_install' => 'Install',
|
||||
'learn_more' => 'Learn More',
|
||||
'dismiss' => 'Dismiss this suggestion',
|
||||
'ppom_title' => 'Product Add-Ons',
|
||||
'ppom_desc' => 'Add extra custom fields & add-ons on your product pages, like sizes, colors & more.',
|
||||
'spark_title1' => 'Wishlist',
|
||||
'spark_title2' => 'Multi-Announcement Bars',
|
||||
'spark_title3' => 'Advanced Product Review',
|
||||
'spark_desc1' => 'Loyalize your customers by allowing them to save their favorite products.',
|
||||
'spark_desc2' => 'Add a top notification bar on your website to highlight the latest products, offers, or upcoming events.',
|
||||
'spark_desc3' => 'Enable an advanced review section, enlarging the basic review options with lots of capabilities.',
|
||||
],
|
||||
'optimole' => [
|
||||
'all_set' => 'Awesome! You are all set!',
|
||||
'gotodash' => 'Go to Optimole dashboard',
|
||||
'installing' => 'Installing',
|
||||
'activating' => 'Activating',
|
||||
'connecting' => 'Connecting to API',
|
||||
'start_cta' => 'Start using Optimole',
|
||||
'dismisscta' => 'Dismiss this notice.',
|
||||
'gst' => 'Get Started Free',
|
||||
'heading' => 'Get more with Optimole',
|
||||
'learnmore' => 'Learn more',
|
||||
'message1' => 'Increase this page speed and SEO ranking by optimizing images with Optimole.',
|
||||
'message3' => 'Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.',
|
||||
'message4' => 'This image looks to be too large and would affect your site speed, we recommend you to install Optimole to optimize your images.',
|
||||
'message2' => 'Leverage Optimole\'s full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!',
|
||||
'email_placeholder' => 'Email address',
|
||||
],
|
||||
],
|
||||
'welcome' => [
|
||||
'ctan' => 'No, thanks.',
|
||||
'ctay' => 'Upgrade Now!',
|
||||
'message' => '<p>You\'ve been using <b>{product}</b> for 7 days now and we appreciate your loyalty! We also want to make sure you\'re getting the most out of our product. That\'s why we\'re offering you a special deal - upgrade to <b>{pro_product}</b> in the next 5 days and receive a discount of <b>up to 30%</b>. <a href="{cta_link}" target="_blank">Upgrade now</a> and unlock all the amazing features of <b>{pro_product}</b>!</p>',
|
||||
],
|
||||
'uninstall' => [
|
||||
'heading_plugin' => 'What\'s wrong?',
|
||||
'heading_theme' => 'What does not work for you in {theme}?',
|
||||
'submit' => 'Submit',
|
||||
'cta_info' => 'What info do we collect?',
|
||||
'button_submit' => 'Submit & Deactivate',
|
||||
'button_cancel' => 'Skip & Deactivate',
|
||||
'disclosure' => [
|
||||
'title' => 'Below is a detailed view of all data that Themeisle will receive if you fill in this survey. No email address or IP addresses are transmitted after you submit the survey.',
|
||||
'version' => '%s %s version %s %s %s %s',
|
||||
'website' => '%sCurrent website:%s %s %s %s',
|
||||
'usage' => '%sUsage time:%s %s %s%s',
|
||||
'reason' => '%s Uninstall reason %s %s Selected reason from the above survey %s ',
|
||||
],
|
||||
|
||||
'options' => [
|
||||
'id3' => [
|
||||
'title' => 'I found a better plugin',
|
||||
'placeholder' => 'What\'s the plugin\'s name?',
|
||||
],
|
||||
'id4' => [
|
||||
|
||||
'title' => 'I could not get the plugin to work',
|
||||
'placeholder' => 'What problem are you experiencing?',
|
||||
],
|
||||
'id5' => [
|
||||
|
||||
'title' => 'I no longer need the plugin',
|
||||
'placeholder' => 'If you could improve one thing about our product, what would it be?',
|
||||
],
|
||||
'id6' => [
|
||||
'title' => 'It\'s a temporary deactivation. I\'m just debugging an issue.',
|
||||
'placeholder' => 'What problem are you experiencing?',
|
||||
],
|
||||
'id7' => [
|
||||
'title' => 'I don\'t know how to make it look like demo',
|
||||
],
|
||||
'id8' => [
|
||||
|
||||
'placeholder' => 'What option is missing?',
|
||||
'title' => 'It lacks options',
|
||||
],
|
||||
'id9' => [
|
||||
'title' => 'Is not working with a plugin that I need',
|
||||
'placeholder' => 'What is the name of the plugin',
|
||||
],
|
||||
'id10' => [
|
||||
'title' => 'I want to try a new design, I don\'t like {theme} style',
|
||||
],
|
||||
'id999' => [
|
||||
'title' => 'Other',
|
||||
'placeholder' => 'What can we do better?',
|
||||
],
|
||||
],
|
||||
],
|
||||
'review' => [
|
||||
'notice' => '<p>Hey, it\'s great to see you have <b>{product}</b> active for a few days now. How is everything going? If you can spare a few moments to rate it on WordPress.org it would help us a lot (and boost my motivation). Cheers! <br/> <br/>~ {developer}, developer of {product}</p>',
|
||||
'ctay' => 'Ok, I will gladly help.',
|
||||
'ctan' => 'No, thanks.',
|
||||
|
||||
],
|
||||
'rollback' => [
|
||||
'cta' => 'Rollback to v%s',
|
||||
],
|
||||
'logger' => [
|
||||
'notice' => 'Do you enjoy <b>{product}</b>? Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.',
|
||||
'cta_y' => 'Sure, I would love to help.',
|
||||
'cta_n' => 'No, thanks.',
|
||||
],
|
||||
'about_us' => [
|
||||
'title' => 'About Us',
|
||||
'heroHeader' => 'Our Story',
|
||||
'heroTextFirst' => 'Themeisle was founded in 2012 by a group of passionate developers who wanted to create beautiful and functional WordPress themes and plugins. Since then, we have grown into a team of over 20 dedicated professionals who are committed to delivering the best possible products to our customers.',
|
||||
'heroTextSecond' => 'At Themeisle, we offer a wide range of WordPress themes and plugins that are designed to meet the needs of both beginners and advanced users. Our products are feature-rich, easy to use, and are designed to help you create beautiful and functional websites.',
|
||||
'teamImageCaption' => 'Our team in WCEU2022 in Portugal',
|
||||
'newsHeading' => 'Stay connected for news & updates!',
|
||||
'emailPlaceholder' => 'Your email address',
|
||||
'signMeUp' => 'Sign me up',
|
||||
'installNow' => 'Install Now',
|
||||
'activate' => 'Activate',
|
||||
'learnMore' => 'Learn More',
|
||||
'installed' => 'Installed',
|
||||
'notInstalled' => 'Not Installed',
|
||||
'active' => 'Active',
|
||||
'others' => [
|
||||
'optimole_desc' => 'Optimole is an image optimization service that automatically optimizes your images and serves them to your visitors via a global CDN, making your website lighter, faster and helping you reduce your bandwidth usage.',
|
||||
'neve_desc' => 'A fast, lightweight, customizable WordPress theme offering responsive design, speed, and flexibility for various website types.',
|
||||
'landingkit_desc' => 'Turn WordPress into a landing page powerhouse with Landing Kit, map domains to pages or any other published resource.',
|
||||
'sparks_desc' => 'Extend your store functionality with 8 ultra-performant features like product comparisons, variation swatches, wishlist, and more.',
|
||||
'tpc_desc' => 'Design, save, and revisit your templates anytime with your personal vault on Templates Cloud.',
|
||||
],
|
||||
'otter-page' => [
|
||||
'heading' => 'Build innovative layouts with Otter Blocks and Gutenberg',
|
||||
'text' => 'Otter is a lightweight, dynamic collection of page building blocks and templates for the WordPress block editor.',
|
||||
'buttons' => [
|
||||
'install_otter_free' => "Install Otter - It's free!",
|
||||
'install_now' => 'Install Now',
|
||||
'learn_more' => 'Learn More',
|
||||
],
|
||||
'features' => [
|
||||
'advancedTitle' => 'Advanced Features',
|
||||
'advancedDesc' => 'Add features such as Custom CSS, Animations & Visibility Conditions to all blocks.',
|
||||
'fastTitle' => 'Lightweight and Fast',
|
||||
'fastDesc' => 'Otter enhances WordPress site building experience without impacting site speed.',
|
||||
'mobileTitle' => 'Mobile-Friendly',
|
||||
'mobileDesc' => 'Each block can be tweaked to provide a consistent experience across all devices.',
|
||||
],
|
||||
'details' => [
|
||||
's1Title' => 'A Better Page Building Experience',
|
||||
's1Text' => 'Otter can be used to build everything from a personal blog to an e-commerce site without losing the personal touch. Otter’s ease of use transforms basic blocks into expressive layouts in seconds.',
|
||||
's2Title' => 'A New Collection of Patterns',
|
||||
's2Text' => 'A New Patterns Library, containing a range of different elements in a variety of styles to help you build great pages. All of your website’s most important areas are covered: headers, testimonials, pricing tables, sections and more.',
|
||||
's3Title' => 'Advanced Blocks',
|
||||
's3Text' => 'Enhance your website’s design with powerful blocks, like the Add to Cart, Business Hours, Review Comparison, and dozens of WooCommerce blocks.',
|
||||
],
|
||||
'testimonials' => [
|
||||
'heading' => 'Trusted by more than 300K website owners',
|
||||
'users' => [
|
||||
'user_1' => 'Loved the collection of blocks. If you want to create nice Gutenberg Pages, this plugin will be very handy and useful.',
|
||||
'user_2' => 'I am very satisfied with Otter – a fantastic collection of blocks. And the plugin is perfectly integrated with Gutenberg and complete enough for my needs.',
|
||||
'user_3' => 'Otter Blocks work really well and I like the customization options. Easy to use and format to fit in with my site theme – and I’ve not encountered any compatibility or speed issues.',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Initialize the sdk logic.
|
||||
*/
|
||||
public static function init() {
|
||||
/**
|
||||
* This filter can be used to localize the labels inside each product.
|
||||
*/
|
||||
self::$labels = apply_filters( 'themeisle_sdk_labels', self::$labels );
|
||||
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Loader ) ) {
|
||||
self::$instance = new Loader();
|
||||
$modules = array_merge( self::$available_modules, apply_filters( 'themeisle_sdk_modules', [] ) );
|
||||
|
@ -27,6 +27,7 @@
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
@ -96,8 +97,8 @@ class About_Us extends Abstract_Module {
|
||||
|
||||
add_submenu_page(
|
||||
$this->about_data['location'],
|
||||
__( 'About Us', 'textdomain' ),
|
||||
__( 'About Us', 'textdomain' ),
|
||||
Loader::$labels['about_us']['title'],
|
||||
Loader::$labels['about_us']['title'],
|
||||
'manage_options',
|
||||
$this->get_about_page_slug(),
|
||||
array( $this, 'render_about_us_page' ),
|
||||
@ -175,6 +176,7 @@ class About_Us extends Abstract_Module {
|
||||
private function get_about_localization_data() {
|
||||
$links = isset( $this->about_data['page_menu'] ) ? $this->about_data['page_menu'] : [];
|
||||
$product_pages = isset( $this->about_data['product_pages'] ) ? $this->about_data['product_pages'] : [];
|
||||
|
||||
return [
|
||||
'links' => $links,
|
||||
'logoUrl' => $this->about_data['logo'],
|
||||
@ -188,20 +190,20 @@ class About_Us extends Abstract_Module {
|
||||
],
|
||||
'teamImage' => $this->get_sdk_uri() . 'assets/images/team.jpg',
|
||||
'strings' => [
|
||||
'aboutUs' => __( 'About us', 'textdomain' ),
|
||||
'heroHeader' => __( 'Our Story', 'textdomain' ),
|
||||
'heroTextFirst' => __( 'Themeisle was founded in 2012 by a group of passionate developers who wanted to create beautiful and functional WordPress themes and plugins. Since then, we have grown into a team of over 20 dedicated professionals who are committed to delivering the best possible products to our customers.', 'textdomain' ),
|
||||
'heroTextSecond' => __( 'At Themeisle, we offer a wide range of WordPress themes and plugins that are designed to meet the needs of both beginners and advanced users. Our products are feature-rich, easy to use, and are designed to help you create beautiful and functional websites.', 'textdomain' ),
|
||||
'teamImageCaption' => __( 'Our team in WCEU2022 in Portugal', 'textdomain' ),
|
||||
'newsHeading' => __( 'Stay connected for news & updates!', 'textdomain' ),
|
||||
'emailPlaceholder' => __( 'Your email address', 'textdomain' ),
|
||||
'signMeUp' => __( 'Sign me up', 'textdomain' ),
|
||||
'installNow' => __( 'Install Now', 'textdomain' ),
|
||||
'activate' => __( 'Activate', 'textdomain' ),
|
||||
'learnMore' => __( 'Learn More', 'textdomain' ),
|
||||
'installed' => __( 'Installed', 'textdomain' ),
|
||||
'notInstalled' => __( 'Not Installed', 'textdomain' ),
|
||||
'active' => __( 'Active', 'textdomain' ),
|
||||
'aboutUs' => Loader::$labels['about_us']['title'],
|
||||
'heroHeader' => Loader::$labels['about_us']['heroHeader'],
|
||||
'heroTextFirst' => Loader::$labels['about_us']['heroTextFirst'],
|
||||
'heroTextSecond' => Loader::$labels['about_us']['heroTextSecond'],
|
||||
'teamImageCaption' => Loader::$labels['about_us']['teamImageCaption'],
|
||||
'newsHeading' => Loader::$labels['about_us']['newsHeading'],
|
||||
'emailPlaceholder' => Loader::$labels['about_us']['emailPlaceholder'],
|
||||
'signMeUp' => Loader::$labels['about_us']['signMeUp'],
|
||||
'installNow' => Loader::$labels['about_us']['installNow'],
|
||||
'activate' => Loader::$labels['about_us']['activate'],
|
||||
'learnMore' => Loader::$labels['about_us']['learnMore'],
|
||||
'installed' => Loader::$labels['about_us']['installed'],
|
||||
'notInstalled' => Loader::$labels['about_us']['notInstalled'],
|
||||
'active' => Loader::$labels['about_us']['active'],
|
||||
],
|
||||
'canInstallPlugins' => current_user_can( 'install_plugins' ),
|
||||
'canActivatePlugins' => current_user_can( 'activate_plugins' ),
|
||||
@ -232,50 +234,50 @@ class About_Us extends Abstract_Module {
|
||||
'product' => $otter_slug,
|
||||
'plugin' => $otter_plugin,
|
||||
'strings' => [
|
||||
'heading' => __( 'Build innovative layouts with Otter Blocks and Gutenberg', 'textdomain' ),
|
||||
'text' => __( 'Otter is a lightweight, dynamic collection of page building blocks and templates for the WordPress block editor.', 'textdomain' ),
|
||||
'heading' => Loader::$labels['about_us']['otter-page']['heading'],
|
||||
'text' => Loader::$labels['about_us']['otter-page']['text'],
|
||||
'buttons' => [
|
||||
'install_otter_free' => __( "Install Otter - It's free!", 'textdomain' ),
|
||||
'install_now' => __( 'Install Now', 'textdomain' ),
|
||||
'learn_more' => __( 'Learn More', 'textdomain' ),
|
||||
'install_otter_free' => Loader::$labels['about_us']['otter-page']['install_otter_free'],
|
||||
'install_now' => Loader::$labels['about_us']['otter-page']['install_now'],
|
||||
'learn_more' => Loader::$labels['about_us']['otter-page']['learn_more'],
|
||||
'learn_more_link' => tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/', 'otter-page', 'about-us' ),
|
||||
],
|
||||
'features' => [
|
||||
'advancedTitle' => __( 'Advanced Features', 'textdomain' ),
|
||||
'advancedDesc' => __( 'Add features such as Custom CSS, Animations & Visibility Conditions to all blocks.', 'textdomain' ),
|
||||
'fastTitle' => __( 'Lightweight and Fast', 'textdomain' ),
|
||||
'fastDesc' => __( 'Otter enhances WordPress site building experience without impacting site speed.', 'textdomain' ),
|
||||
'mobileTitle' => __( 'Mobile-Friendly', 'textdomain' ),
|
||||
'mobileDesc' => __( 'Each block can be tweaked to provide a consistent experience across all devices.', 'textdomain' ),
|
||||
'advancedTitle' => Loader::$labels['about_us']['otter-page']['features']['advancedTitle'],
|
||||
'advancedDesc' => Loader::$labels['about_us']['otter-page']['features']['advancedDesc'],
|
||||
'fastTitle' => Loader::$labels['about_us']['otter-page']['features']['fastTitle'],
|
||||
'fastDesc' => Loader::$labels['about_us']['otter-page']['features']['fastDesc'],
|
||||
'mobileTitle' => Loader::$labels['about_us']['otter-page']['features']['mobileTitle'],
|
||||
'mobileDesc' => Loader::$labels['about_us']['otter-page']['features']['mobileDesc'],
|
||||
],
|
||||
'details' => [
|
||||
's1Title' => Loader::$labels['about_us']['otter-page']['details']['s1Title'],
|
||||
's1Text' => Loader::$labels['about_us']['otter-page']['details']['s1Text'],
|
||||
's2Title' => Loader::$labels['about_us']['otter-page']['details']['s2Title'],
|
||||
's2Text' => Loader::$labels['about_us']['otter-page']['details']['s2Text'],
|
||||
's3Title' => Loader::$labels['about_us']['otter-page']['details']['s3Title'],
|
||||
's3Text' => Loader::$labels['about_us']['otter-page']['details']['s3Text'],
|
||||
's1Image' => $this->get_sdk_uri() . 'assets/images/otter/otter-builder.png',
|
||||
's1Title' => __( 'A Better Page Building Experience', 'textdomain' ),
|
||||
's1Text' => __( 'Otter can be used to build everything from a personal blog to an e-commerce site without losing the personal touch. Otter’s ease of use transforms basic blocks into expressive layouts in seconds.', 'textdomain' ),
|
||||
's2Image' => $this->get_sdk_uri() . 'assets/images/otter/otter-patterns.png',
|
||||
's2Title' => __( 'A New Collection of Patterns', 'textdomain' ),
|
||||
's2Text' => __( 'A New Patterns Library, containing a range of different elements in a variety of styles to help you build great pages. All of your website’s most important areas are covered: headers, testimonials, pricing tables, sections and more.', 'textdomain' ),
|
||||
's3Image' => $this->get_sdk_uri() . 'assets/images/otter/otter-library.png',
|
||||
's3Title' => __( 'Advanced Blocks', 'textdomain' ),
|
||||
's3Text' => __( 'Enhance your website’s design with powerful blocks, like the Add to Cart, Business Hours, Review Comparison, and dozens of WooCommerce blocks.', 'textdomain' ),
|
||||
],
|
||||
'testimonials' => [
|
||||
'heading' => __( 'Trusted by more than 300K website owners', 'textdomain' ),
|
||||
'heading' => Loader::$labels['about_us']['otter-page']['testimonials']['heading'],
|
||||
'users' => [
|
||||
[
|
||||
'avatar' => 'https://mllj2j8xvfl0.i.optimole.com/cb:3970~373ad/w:80/h:80/q:mauto/https://themeisle.com/wp-content/uploads/2021/05/avatar-03.png',
|
||||
'name' => 'Michael Burry',
|
||||
'text' => 'Loved the collection of blocks. If you want to create nice Gutenberg Pages, this plugin will be very handy and useful.',
|
||||
'text' => Loader::$labels['about_us']['otter-page']['testimonials']['users']['user_1'],
|
||||
],
|
||||
[
|
||||
'avatar' => 'https://mllj2j8xvfl0.i.optimole.com/cb:3970~373ad/w:80/h:80/q:mauto/https://themeisle.com/wp-content/uploads/2022/04/avatar-04.png',
|
||||
'name' => 'Maria Gonzales',
|
||||
'text' => 'I am very satisfied with Otter – a fantastic collection of blocks. And the plugin is perfectly integrated with Gutenberg and complete enough for my needs. ',
|
||||
'text' => Loader::$labels['about_us']['otter-page']['testimonials']['users']['user_2'],
|
||||
],
|
||||
[
|
||||
'avatar' => 'https://mllj2j8xvfl0.i.optimole.com/cb:3970~373ad/w:80/h:80/q:mauto/https://themeisle.com/wp-content/uploads/2022/04/avatar-05.png',
|
||||
'name' => 'Florian Henckel',
|
||||
'text' => 'Otter Blocks work really well and I like the customization options. Easy to use and format to fit in with my site theme – and I’ve not encountered any compatibility or speed issues.',
|
||||
'text' => Loader::$labels['about_us']['otter-page']['testimonials']['users']['user_3'],
|
||||
],
|
||||
],
|
||||
],
|
||||
@ -303,12 +305,12 @@ class About_Us extends Abstract_Module {
|
||||
$products = [
|
||||
'optimole-wp' => [
|
||||
'name' => 'Optimole',
|
||||
'description' => 'Optimole is an image optimization service that automatically optimizes your images and serves them to your visitors via a global CDN, making your website lighter, faster and helping you reduce your bandwidth usage.',
|
||||
'description' => Loader::$labels['about_us']['others']['optimole_desc'],
|
||||
],
|
||||
'neve' => [
|
||||
'skip_api' => true,
|
||||
'name' => 'Neve',
|
||||
'description' => __( 'A fast, lightweight, customizable WordPress theme offering responsive design, speed, and flexibility for various website types.', 'textdomain' ),
|
||||
'description' => Loader::$labels['about_us']['others']['neve_desc'],
|
||||
'icon' => $this->get_sdk_uri() . 'assets/images/neve.png',
|
||||
],
|
||||
'otter-blocks' => [
|
||||
@ -331,7 +333,7 @@ class About_Us extends Abstract_Module {
|
||||
'skip_api' => true,
|
||||
'premiumUrl' => tsdk_utmify( 'https://themeisle.com/plugins/wp-landing-kit', $this->get_about_page_slug() ),
|
||||
'name' => 'WP Landing Kit',
|
||||
'description' => __( 'Turn WordPress into a landing page powerhouse with Landing Kit, map domains to pages or any other published resource.', 'textdomain' ),
|
||||
'description' => Loader::$labels['about_us']['others']['landingkit_desc'],
|
||||
'icon' => $this->get_sdk_uri() . 'assets/images/wplk.png',
|
||||
],
|
||||
'multiple-pages-generator-by-porthas' => [
|
||||
@ -341,13 +343,13 @@ class About_Us extends Abstract_Module {
|
||||
'skip_api' => true,
|
||||
'premiumUrl' => tsdk_utmify( 'https://themeisle.com/plugins/sparks-for-woocommerce', $this->get_about_page_slug() ),
|
||||
'name' => 'Sparks',
|
||||
'description' => __( 'Extend your store functionality with 8 ultra-performant features like product comparisons, variation swatches, wishlist, and more.', 'textdomain' ),
|
||||
'description' => Loader::$labels['about_us']['others']['sparks_desc'],
|
||||
'icon' => $this->get_sdk_uri() . 'assets/images/sparks.png',
|
||||
'condition' => class_exists( 'WooCommerce', false ),
|
||||
],
|
||||
'templates-patterns-collection' => [
|
||||
'name' => 'Templates Cloud',
|
||||
'description' => __( 'Design, save, and revisit your templates anytime with your personal vault on Templates Cloud.', 'textdomain' ),
|
||||
'description' => Loader::$labels['about_us']['others']['tpc_desc'],
|
||||
],
|
||||
];
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
|
||||
* @since 3.3.0
|
||||
*/
|
||||
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
@ -153,7 +154,7 @@ class Announcements extends Abstract_Module {
|
||||
// Banners urgency text.
|
||||
$remaining_time = $this->get_remaining_time_for_event( $dates['end'] );
|
||||
$announcements[ $announcement ]['remaining_time'] = $remaining_time;
|
||||
$announcements[ $announcement ]['urgency_text'] = ! empty( $remaining_time ) ? 'Hurry up! Only ' . $remaining_time . ' left.' : '';
|
||||
$announcements[ $announcement ]['urgency_text'] = ! empty( $remaining_time ) ? sprintf( Loader::$labels['announcements']['hurry_up'], $remaining_time ) : '';
|
||||
}
|
||||
}
|
||||
|
||||
@ -202,6 +203,7 @@ class Announcements extends Abstract_Module {
|
||||
* Get the remaining time for the event in a human readable format.
|
||||
*
|
||||
* @param string $end_date The end date for event.
|
||||
*
|
||||
* @return string Remaining time for the event.
|
||||
*/
|
||||
public function get_remaining_time_for_event( $end_date ) {
|
||||
@ -209,31 +211,8 @@ class Announcements extends Abstract_Module {
|
||||
return '';
|
||||
}
|
||||
|
||||
try {
|
||||
$end_date = new \DateTime( $end_date, new \DateTimeZone( 'GMT' ) );
|
||||
$current_date = new \DateTime( 'now', new \DateTimeZone( 'GMT' ) );
|
||||
$diff = $end_date->diff( $current_date );
|
||||
return human_time_diff( time(), strtotime( $end_date ) );
|
||||
|
||||
if ( $diff->days > 0 ) {
|
||||
return $diff->days === 1 ? $diff->format( '%a day' ) : $diff->format( '%a days' );
|
||||
}
|
||||
|
||||
if ( $diff->h > 0 ) {
|
||||
return $diff->h === 1 ? $diff->format( '%h hour' ) : $diff->format( '%h hours' );
|
||||
}
|
||||
|
||||
if ( $diff->i > 0 ) {
|
||||
return $diff->i === 1 ? $diff->format( '%i minute' ) : $diff->format( '%i minutes' );
|
||||
}
|
||||
|
||||
return $diff->s === 1 ? $diff->format( '%s second' ) : $diff->format( '%s seconds' );
|
||||
} catch ( \Exception $e ) {
|
||||
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
|
||||
error_log( $e->getMessage() ); // phpcs:ignore
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -319,8 +298,11 @@ class Announcements extends Abstract_Module {
|
||||
<div class="themeisle-sale notice notice-info is-dismissible" data-announcement="black_friday">
|
||||
<img src="<?php echo esc_url_raw( $this->get_sdk_uri() . 'assets/images/themeisle-logo.svg' ); ?>"/>
|
||||
<p>
|
||||
<strong>Themeisle Black Friday Sale is Live!</strong> - Enjoy Maximum Savings on <?php echo esc_html( implode( ', ', $product_names ) ); ?>.
|
||||
<a href="<?php echo esc_url_raw( tsdk_utmify( 'https://themeisle.com/blackfriday/', 'bfcm24', 'globalnotice' ) ); ?>" target="_blank">Learn more</a>
|
||||
<strong><?php echo esc_html( Loader::$labels['announcements']['sale_live'] ); ?> ></strong>
|
||||
- <?php echo sprintf( esc_html( Loader::$labels['announcements']['max_savings'] ), esc_html( implode( ', ', $product_names ) ) ); ?>
|
||||
.
|
||||
<a href="<?php echo esc_url_raw( tsdk_utmify( 'https://themeisle.com/blackfriday/', 'bfcm24', 'globalnotice' ) ); ?>"
|
||||
target="_blank"><?php echo esc_html( Loader::$labels['announcements']['learn_more'] ); ?>></a>
|
||||
<span class="themeisle-sale-error"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
@ -53,9 +54,8 @@ class Compatibilities extends Abstract_Module {
|
||||
*
|
||||
* @param Product $product Product to load.
|
||||
*
|
||||
* @throws \Exception If the configuration is invalid.
|
||||
*
|
||||
* @return Compatibilities Module instance.
|
||||
* @throws \Exception If the configuration is invalid.
|
||||
*/
|
||||
public function load( $product ) {
|
||||
|
||||
@ -124,15 +124,15 @@ class Compatibilities extends Abstract_Module {
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function ($) {
|
||||
setInterval(checkTheme, 500);
|
||||
|
||||
function checkTheme() {
|
||||
var theme = jQuery('.theme.active[data-slug="<?php echo esc_attr( $requirement->get_slug() ); ?>"]');
|
||||
var notice_id = 'testedup<?php echo esc_attr( $requirement->get_slug() . $product->get_slug() ); ?>';
|
||||
var product_name = '<?php echo esc_attr( $product->get_friendly_name() ); ?>';
|
||||
if (theme.length > 0 && jQuery('#' + notice_id).length === 0) {
|
||||
theme.find('.theme-id-container').prepend('<div style="bottom:100%;top:auto;" id="'+notice_id+'" class="notice notice-warning"><strong>Warning:</strong> This theme has not been tested with your current version of <strong>' + product_name +'</strong>. Please update '+product_name+' plugin.</div>');
|
||||
theme.find('.theme-id-container').prepend('<div style="bottom:100%;top:auto;" id="' + notice_id + '" class="notice notice-warning"><?php echo sprintf( esc_html( Loader::$labels['compatibilities']['notice_theme'] ), '<strong>', '</strong>', esc_attr( $product->get_friendly_name() ) ); ?></div>');
|
||||
}
|
||||
if (theme.length > 0 && jQuery('#' + notice_id + 'overlay').length === 0) {
|
||||
jQuery('.theme-overlay.active .theme-author').after('<div style="bottom:100%;top:auto;" id="'+notice_id+'overlay" class="notice notice-warning"><p><strong>Warning:</strong> This theme has not been tested with your current version of <strong>' + product_name +'</strong>. Please update '+product_name+' plugin.</p></div>');
|
||||
jQuery('.theme-overlay.active .theme-author').after('<div style="bottom:100%;top:auto;" id="' + notice_id + 'overlay" class="notice notice-warning"><p><?php echo sprintf( esc_html( Loader::$labels['compatibilities']['notice_theme'] ), '<strong>', '</strong>', esc_attr( $product->get_friendly_name() ) ); ?></p></div>');
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -145,13 +145,12 @@ class Compatibilities extends Abstract_Module {
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function ($) {
|
||||
setInterval(checkPlugin, 500);
|
||||
|
||||
function checkPlugin() {
|
||||
var plugin = jQuery('.plugins .active[data-slug="<?php echo esc_attr( $requirement->get_slug() ); ?>"]');
|
||||
var notice_id = 'testedup<?php echo esc_attr( $requirement->get_slug() . $product->get_slug() ); ?>';
|
||||
var product_name = '<?php echo esc_attr( $product->get_friendly_name() ); ?>';
|
||||
var product_type = '<?php echo ( $product->is_plugin() ? 'plugin' : 'theme' ); ?>';
|
||||
if (plugin.length > 0 && jQuery('#' + notice_id).length === 0) {
|
||||
plugin.find('.column-description').append('<div style="bottom:100%;top:auto;" id="'+notice_id+'" class="notice notice-warning notice-alt notice-inline"><strong>Warning:</strong> This plugin has not been tested with your current version of <strong>' + product_name +'</strong>. Please update '+product_name+' '+product_type+'.</div>');
|
||||
plugin.find('.column-description').append('<div style="bottom:100%;top:auto;" id="' + notice_id + '" class="notice notice-warning notice-alt notice-inline"><?php echo sprintf( esc_html( Loader::$labels['compatibilities']['notice_plugin'] ), '<strong>', '</strong>', esc_attr( $product->get_friendly_name() ), esc_attr( $product->is_plugin() ? Loader::$labels['compatibilities']['plugin'] : Loader::$labels['compatibilities']['theme'] ) ); ?></div>');
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -197,13 +196,13 @@ class Compatibilities extends Abstract_Module {
|
||||
}
|
||||
if ( $should_block ) {
|
||||
echo( sprintf(
|
||||
'%s update requires a newer version of %s. Please %supdate%s %s %s.',
|
||||
esc_html( Loader::$labels['compatibilities']['notice2'] ),
|
||||
esc_attr( $product->get_friendly_name() ),
|
||||
esc_attr( $requirement->get_friendly_name() ),
|
||||
'<a href="' . esc_url( admin_url( $requirement->is_theme() ? 'themes.php' : 'plugins.php' ) ) . '">',
|
||||
'</a>',
|
||||
esc_attr( $requirement->get_friendly_name() ),
|
||||
esc_attr( $requirement->is_theme() ? 'theme' : 'plugin' )
|
||||
esc_attr( $requirement->is_theme() ? Loader::$labels['compatibilities']['theme'] : Loader::$labels['compatibilities']['plugin'] )
|
||||
) );
|
||||
$upgrader->maintenance_mode( false );
|
||||
die();
|
||||
@ -220,13 +219,13 @@ class Compatibilities extends Abstract_Module {
|
||||
function () use ( $product, $requirement ) {
|
||||
echo '<div class="notice notice-error "><p>';
|
||||
echo( sprintf(
|
||||
'%s requires a newer version of %s. Please %supdate%s %s %s to the latest version.',
|
||||
esc_html( Loader::$labels['compatibilities']['notice'] ),
|
||||
'<strong>' . esc_attr( $product->get_friendly_name() ) . '</strong>',
|
||||
'<strong>' . esc_attr( $requirement->get_friendly_name() ) . '</strong>',
|
||||
'<a href="' . esc_url( admin_url( $requirement->is_theme() ? 'themes.php' : 'plugins.php' ) ) . '">',
|
||||
'</a>',
|
||||
'<strong>' . esc_attr( $requirement->get_friendly_name() ) . '</strong>',
|
||||
esc_attr( $requirement->is_theme() ? 'theme' : 'plugin' )
|
||||
esc_attr( $requirement->is_theme() ? Loader::$labels['compatibilities']['theme'] : Loader::$labels['compatibilities']['plugin'] )
|
||||
) );
|
||||
echo '</p></div>';
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
@ -76,7 +77,7 @@ class Dashboard_Widget extends Abstract_Module {
|
||||
return;
|
||||
}
|
||||
$this->product = $product;
|
||||
$this->dashboard_name = apply_filters( 'themeisle_sdk_dashboard_widget_name', 'WordPress Guides/Tutorials' );
|
||||
$this->dashboard_name = apply_filters( 'themeisle_sdk_dashboard_widget_name', Loader::$labels['dashboard_widget']['title'] );
|
||||
$this->feeds = apply_filters(
|
||||
'themeisle_sdk_dashboard_widget_feeds',
|
||||
[
|
||||
@ -280,7 +281,7 @@ class Dashboard_Widget extends Abstract_Module {
|
||||
?>
|
||||
<div class="ti-dw-footer">
|
||||
<span class="ti-dw-recommend-item ">
|
||||
<span class="ti-dw-recommend"><?php echo esc_attr( apply_filters( 'themeisle_sdk_dashboard_popular_label', sprintf( 'Popular %s', ucwords( $type ) ) ) ); ?>
|
||||
<span class="ti-dw-recommend"><?php echo esc_attr( apply_filters( 'themeisle_sdk_dashboard_popular_label', sprintf( Loader::$labels['dashboard_widget']['popular'], ucwords( $type ) ) ) ); ?>
|
||||
: </span>
|
||||
<?php
|
||||
echo esc_attr(
|
||||
@ -299,9 +300,9 @@ class Dashboard_Widget extends Abstract_Module {
|
||||
);
|
||||
?>
|
||||
(<a class="thickbox open-plugin-details-modal"
|
||||
href="<?php echo esc_url( $url . '&TB_iframe=true&width=600&height=500' ); ?>"><?php echo esc_attr( apply_filters( 'themeisle_sdk_dashboard_install_label', 'Install' ) ); ?></a>)
|
||||
href="<?php echo esc_url( $url . '&TB_iframe=true&width=600&height=500' ); ?>"><?php echo esc_attr( apply_filters( 'themeisle_sdk_dashboard_install_label', Loader::$labels['dashboard_widget']['install'] ) ); ?></a>)
|
||||
</span>
|
||||
<span class="ti-dw-powered-by"><span><?php echo esc_attr( apply_filters( 'themeisle_sdk_dashboard_widget_powered_by', sprintf( 'Powered by %s', $this->product->get_friendly_name() ) ) ); ?></span></span>
|
||||
<span class="ti-dw-powered-by"><span><?php echo esc_attr( apply_filters( 'themeisle_sdk_dashboard_widget_powered_by', sprintf( Loader::$labels['dashboard_widget']['powered'], $this->product->get_friendly_name() ) ) ); ?></span></span>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@ -326,12 +327,14 @@ class Dashboard_Widget extends Abstract_Module {
|
||||
|
||||
if ( ! is_string( $url ) && in_array( $url, $sdk_feeds, true ) ) {
|
||||
$feed->force_feed( false );
|
||||
|
||||
return;
|
||||
}
|
||||
if ( is_array( $url ) ) {
|
||||
foreach ( $url as $feed_url ) {
|
||||
if ( in_array( $feed_url, $sdk_feeds, true ) ) {
|
||||
$feed->force_feed( false );
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
167
wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Featured_plugins.php
vendored
Normal file
167
wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Featured_plugins.php
vendored
Normal file
@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/**
|
||||
* File responsible for showing plugins inside the featured tab.
|
||||
*
|
||||
* This is used to display information about limited events, such as Black Friday.
|
||||
*
|
||||
* @package ThemeIsleSDK
|
||||
* @subpackage Modules
|
||||
* @copyright Copyright (c) 2017, Marius Cristea
|
||||
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
|
||||
* @since 3.3.0
|
||||
*/
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Featured_Plugins module for the ThemeIsle SDK.
|
||||
*/
|
||||
class Featured_Plugins extends Abstract_Module {
|
||||
|
||||
/**
|
||||
* The transient key prefix.
|
||||
*
|
||||
* @var string $transient_key
|
||||
*/
|
||||
private $transient_key = 'themeisle_sdk_featured_plugins_';
|
||||
|
||||
/**
|
||||
* Check if the module can be loaded.
|
||||
*
|
||||
* @param Product $product Product data.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function can_load( $product ) {
|
||||
if ( $this->is_from_partner( $product ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$slug = $product->get_slug();
|
||||
// only load for products that contain "pro" in the slug.
|
||||
if ( strpos( $slug, 'pro' ) === false ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ! apply_filters( 'themeisle_sdk_disable_featured_plugins', false );
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the module for the selected product.
|
||||
*
|
||||
* @param Product $product Product data.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load( $product ) {
|
||||
if ( ! current_user_can( 'install_plugins' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// bail if we already registered a filter for the plugin API.
|
||||
if ( apply_filters( 'themeisle_sdk_plugin_api_filter_registered', false ) ) {
|
||||
return;
|
||||
}
|
||||
add_filter( 'themeisle_sdk_plugin_api_filter_registered', '__return_true' );
|
||||
|
||||
add_filter( 'plugins_api_result', [ $this, 'filter_plugin_api_results' ], 10, 3 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the plugin API results to include the featured plugins.
|
||||
*
|
||||
* @param object $res The result object.
|
||||
* @param string $action The type of information being requested from the Plugin Install API.
|
||||
* @param object $args Plugin API arguments.
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
public function filter_plugin_api_results( $res, $action, $args ) {
|
||||
|
||||
if ( 'query_plugins' !== $action ) {
|
||||
return $res;
|
||||
}
|
||||
|
||||
if ( ! isset( $args->browse ) || $args->browse !== 'featured' ) {
|
||||
return $res;
|
||||
}
|
||||
|
||||
$featured = $this->query_plugins_by_author( $args );
|
||||
|
||||
$plugins = array_merge( $featured, (array) $res->plugins );
|
||||
$plugins = array_slice( $plugins, 0, $res->info['results'] );
|
||||
$res->plugins = $plugins;
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Query plugins by author.
|
||||
*
|
||||
* @param object $args The arguments for the query.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function query_plugins_by_author( $args ) {
|
||||
$featured = [];
|
||||
|
||||
$optimole_filter_slugs = apply_filters( 'themeisle_sdk_optimole_filter_slugs', [ 'optimole-wp' ] );
|
||||
$filtered_from_optimole = $this->get_plugins_filtered_from_author( $args, $optimole_filter_slugs, 'Optimole' );
|
||||
$featured = array_merge( $featured, $filtered_from_optimole );
|
||||
|
||||
$themeisle_filter_slugs = apply_filters( 'themeisle_sdk_themeisle_filter_slugs', [ 'otter-blocks' ] );
|
||||
$filtered_from_themeisle = $this->get_plugins_filtered_from_author( $args, $themeisle_filter_slugs );
|
||||
$featured = array_merge( $featured, $filtered_from_themeisle );
|
||||
|
||||
return $featured;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get plugins filtered from an author.
|
||||
*
|
||||
* @param object $args The arguments for the query.
|
||||
* @param array $filter_slugs The slugs to filter.
|
||||
* @param string $author The author to filter.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function get_plugins_filtered_from_author( $args, $filter_slugs = [], $author = 'Themeisle' ) {
|
||||
|
||||
$cached = get_transient( $this->transient_key . $author );
|
||||
if ( $cached ) {
|
||||
return $cached;
|
||||
}
|
||||
|
||||
$new_args = [
|
||||
'page' => 1,
|
||||
'per_page' => 36,
|
||||
'locale' => get_user_locale(),
|
||||
'author' => $author,
|
||||
'wp_version' => isset( $args->wp_version ) ? $args->wp_version : get_bloginfo( 'version' ),
|
||||
];
|
||||
|
||||
$api = plugins_api( 'query_plugins', $new_args );
|
||||
if ( is_wp_error( $api ) ) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$filtered = array_filter(
|
||||
$api->plugins,
|
||||
function( $plugin ) use ( $filter_slugs ) {
|
||||
$array_plugin = (array) $plugin;
|
||||
return in_array( $array_plugin['slug'], $filter_slugs );
|
||||
}
|
||||
);
|
||||
|
||||
set_transient( $this->transient_key . $author, $filtered, 12 * HOUR_IN_SECONDS );
|
||||
|
||||
return $filtered;
|
||||
}
|
||||
}
|
@ -138,11 +138,11 @@ class Licenser extends Abstract_Module {
|
||||
$status = $this->get_license_status();
|
||||
$value = $this->license_key;
|
||||
|
||||
$activate_string = apply_filters( $this->product->get_key() . '_lc_activate_string', 'Activate' );
|
||||
$deactivate_string = apply_filters( $this->product->get_key() . '_lc_deactivate_string', 'Deactivate' );
|
||||
$valid_string = apply_filters( $this->product->get_key() . '_lc_valid_string', 'Valid' );
|
||||
$invalid_string = apply_filters( $this->product->get_key() . '_lc_invalid_string', 'Invalid' );
|
||||
$license_message = apply_filters( $this->product->get_key() . '_lc_license_message', 'Enter your license from %s purchase history in order to get %s updates' );
|
||||
$activate_string = apply_filters( $this->product->get_key() . '_lc_activate_string', Loader::$labels['licenser']['activate'] );
|
||||
$deactivate_string = apply_filters( $this->product->get_key() . '_lc_deactivate_string', Loader::$labels['licenser']['deactivateactivate'] );
|
||||
$valid_string = apply_filters( $this->product->get_key() . '_lc_valid_string', Loader::$labels['licenser']['valid'] );
|
||||
$invalid_string = apply_filters( $this->product->get_key() . '_lc_invalid_string', Loader::$labels['licenser']['invalid'] );
|
||||
$license_message = apply_filters( $this->product->get_key() . '_lc_license_message', Loader::$labels['licenser']['notice'] );
|
||||
$error_message = $this->get_error();
|
||||
?>
|
||||
<style type="text/css">
|
||||
@ -378,9 +378,9 @@ class Licenser extends Abstract_Module {
|
||||
}
|
||||
|
||||
$status = $this->get_license_status( true );
|
||||
$no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', 'No more activations left for %s. You need to upgrade your plan in order to use %s on more websites. If you need assistance, please get in touch with %s staff.' );
|
||||
$no_valid_string = apply_filters( $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' );
|
||||
$expired_license_string = apply_filters( $this->product->get_key() . '_lc_expired_string', 'Your %s\'s License Key has expired. In order to continue receiving support and software updates you must <a href="%s" target="_blank">renew</a> your license key.' );
|
||||
$no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', Loader::$labels['licenser']['no_activations'] );
|
||||
$no_valid_string = apply_filters( $this->product->get_key() . '_lc_no_valid_string', sprintf( Loader::$labels['licenser']['inactive'], '%s', '<a href="%s" target="_blank">', '</a>', '<a href="%s">', '</a>' ) );
|
||||
$expired_license_string = apply_filters( $this->product->get_key() . '_lc_expired_string', sprintf( Loader::$labels['licenser']['expired'], '%s', '<a href="%s" target="_blank">', '</a>' ) );
|
||||
// No activations left for this license.
|
||||
if ( 'valid' != $status && $this->check_activation() ) {
|
||||
?>
|
||||
@ -543,15 +543,15 @@ class Licenser extends Abstract_Module {
|
||||
*/
|
||||
public function do_license_process( $license, $action = 'toggle' ) {
|
||||
if ( strlen( $license ) < 10 ) {
|
||||
return new \WP_Error( 'themeisle-license-invalid-format', 'Invalid license.' );
|
||||
return new \WP_Error( 'themeisle-license-invalid-format', Loader::$labels['licenser']['invalid_msg'] );
|
||||
}
|
||||
$status = $this->get_license_status();
|
||||
|
||||
if ( 'valid' === $status && 'activate' === $action ) {
|
||||
return new \WP_Error( 'themeisle-license-already-active', 'License is already active.' );
|
||||
return new \WP_Error( 'themeisle-license-already-active', Loader::$labels['licenser']['already_active'] );
|
||||
}
|
||||
if ( 'valid' !== $status && 'deactivate' === $action ) {
|
||||
return new \WP_Error( 'themeisle-license-already-deactivate', 'License not active.' );
|
||||
return new \WP_Error( 'themeisle-license-already-deactivate', Loader::$labels['licenser']['not_active'] );
|
||||
}
|
||||
|
||||
if ( 'toggle' === $action ) {
|
||||
@ -579,13 +579,13 @@ class Licenser extends Abstract_Module {
|
||||
|
||||
// make sure the response came back okay.
|
||||
if ( is_wp_error( $response ) ) {
|
||||
return new \WP_Error( 'themeisle-license-500', sprintf( 'ERROR: Failed to connect to the license service. Please try again later. Reason: %s', $response->get_error_message() ) );
|
||||
return new \WP_Error( 'themeisle-license-500', sprintf( Loader::$labels['licenser']['error_notice'], $response->get_error_message() ) );
|
||||
}
|
||||
|
||||
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
||||
|
||||
if ( ! is_object( $license_data ) ) {
|
||||
return new \WP_Error( 'themeisle-license-404', 'ERROR: Failed to validate license. Please try again in one minute.' );
|
||||
return new \WP_Error( 'themeisle-license-404', Loader::$labels['licenser']['error_notice2'] );
|
||||
}
|
||||
if ( 'check' === $action ) {
|
||||
return $license_data;
|
||||
@ -618,7 +618,7 @@ class Licenser extends Abstract_Module {
|
||||
update_option( $this->product->get_key() . '_license_data', $license_data );
|
||||
set_transient( $this->product->get_key() . '_license_data', $license_data, 12 * HOUR_IN_SECONDS );
|
||||
if ( 'activate' === $action && 'valid' !== $license_data->license ) {
|
||||
return new \WP_Error( 'themeisle-license-invalid', 'ERROR: Invalid license provided.' );
|
||||
return new \WP_Error( 'themeisle-license-invalid', Loader::$labels['licenser']['error_invalid'] );
|
||||
}
|
||||
|
||||
// Remove the versions transient upon activation so that newer version for rollback can be acquired.
|
||||
@ -703,18 +703,16 @@ class Licenser extends Abstract_Module {
|
||||
return;
|
||||
}
|
||||
$update_url = wp_nonce_url( 'update.php?action=upgrade-theme&theme=' . urlencode( $this->product->get_slug() ), 'upgrade-theme_' . $this->product->get_slug() );
|
||||
$update_message = apply_filters( 'themeisle_sdk_license_update_message', 'Updating this theme will lose any customizations you have made. Cancel to stop, OK to update.' );
|
||||
$update_message = apply_filters( 'themeisle_sdk_license_update_message', Loader::$labels['licenser']['update_license'] );
|
||||
$update_onclick = ' onclick="if ( confirm(\'' . esc_js( $update_message ) . '\') ) {return true;}return false;"';
|
||||
if ( version_compare( $this->product->get_version(), $api_response->new_version, '<' ) ) {
|
||||
echo '<div id="update-nag">';
|
||||
printf(
|
||||
'<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.',
|
||||
esc_attr( $theme->get( 'Name' ) ),
|
||||
esc_attr( $api_response->new_version ),
|
||||
esc_url( sprintf( '%s&TB_iframe=true&width=1024&height=800', $this->product->get_changelog() ) ),
|
||||
esc_attr( $theme->get( 'Name' ) ),
|
||||
esc_url( $update_url ),
|
||||
$update_onclick // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, Already escaped.
|
||||
esc_html( Loader::$labels['licenser']['notice_update'] ),
|
||||
'<strong>' . esc_attr( $theme->get( 'Name' ) ) . ' ' . esc_attr( $api_response->new_version ) . '</strong>',
|
||||
'<a href="' . esc_url( sprintf( '%s&TB_iframe=true&width=1024&height=800', $this->product->get_changelog() ) ) . '" class="thickbox" title="' . esc_attr( $theme->get( 'Name' ) ) . '">',
|
||||
'</a>',
|
||||
'<a href="' . esc_url( $update_url ) . '" ' . $update_onclick . '>' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, Already escaped.
|
||||
);
|
||||
echo '</div>';
|
||||
echo '<div id="' . esc_attr( $this->product->get_slug() ) . '_changelog" style="display:none;">';
|
||||
@ -745,6 +743,7 @@ class Licenser extends Abstract_Module {
|
||||
}
|
||||
|
||||
$value->response[ $this->product->get_slug() ] = $update_data;
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
@ -984,7 +983,15 @@ class Licenser extends Abstract_Module {
|
||||
]
|
||||
);
|
||||
add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
|
||||
add_filter( 'http_request_args', array( $this, 'http_request_args' ), 10, 2 ); //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args
|
||||
add_filter( //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args
|
||||
'http_request_args',
|
||||
array(
|
||||
$this,
|
||||
'http_request_args',
|
||||
),
|
||||
10,
|
||||
2
|
||||
);
|
||||
if ( ! self::is_valid( $product->get_basefile() ) ) {
|
||||
add_filter(
|
||||
'plugin_action_links_' . plugin_basename( $product->get_basefile() ),
|
||||
@ -993,7 +1000,7 @@ class Licenser extends Abstract_Module {
|
||||
return $actions;
|
||||
}
|
||||
$new_actions['deactivate'] = $actions['deactivate'];
|
||||
$new_actions['renew_link'] = '<a style="color:#d63638" href="' . esc_url( $this->renew_url() ) . '" target="_blank" rel="external noopener noreferrer">Renew license to update</a>';
|
||||
$new_actions['renew_link'] = '<a style="color:#d63638" href="' . esc_url( $this->renew_url() ) . '" target="_blank" rel="external noopener noreferrer">' . esc_html( Loader::$labels['licenser']['renew_cta'] ) . '</a>';
|
||||
|
||||
return $new_actions;
|
||||
}
|
||||
@ -1008,7 +1015,15 @@ class Licenser extends Abstract_Module {
|
||||
add_action( 'load-update-core.php', array( &$this, 'delete_theme_update_transient' ) );
|
||||
add_action( 'load-themes.php', array( &$this, 'delete_theme_update_transient' ) );
|
||||
add_action( 'load-themes.php', array( &$this, 'load_themes_screen' ) );
|
||||
add_filter( 'http_request_args', array( $this, 'disable_wporg_update' ), 5, 2 ); //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args
|
||||
add_filter( //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args
|
||||
'http_request_args',
|
||||
array(
|
||||
$this,
|
||||
'disable_wporg_update',
|
||||
),
|
||||
5,
|
||||
2
|
||||
);
|
||||
|
||||
return $this;
|
||||
|
||||
@ -1051,8 +1066,10 @@ class Licenser extends Abstract_Module {
|
||||
if ( ! isset( $content->key ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $content->key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run license activation on plugin activate.
|
||||
*/
|
||||
@ -1102,7 +1119,7 @@ class Licenser extends Abstract_Module {
|
||||
public function autoactivate_notice() {
|
||||
?>
|
||||
<div class="notice notice-success is-dismissible">
|
||||
<p><?php echo sprintf( '<strong>%s</strong> has been successfully activated using <strong>%s</strong> license !', esc_attr( $this->product->get_name() ), esc_attr( str_repeat( '*', 20 ) . substr( $this->license_local, - 10 ) ) ); ?></p>
|
||||
<p><?php echo sprintf( esc_html( Loader::$labels['licenser']['autoactivate_notice'] ), '<strong>' . esc_attr( $this->product->get_name() ) . '</strong>', '<strong>' . esc_attr( str_repeat( '*', 20 ) . substr( $this->license_local, - 10 ) ) . '</strong>' ); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -126,15 +126,15 @@ class Logger extends Abstract_Module {
|
||||
*/
|
||||
public function add_notification( $all_notifications ) {
|
||||
|
||||
$message = apply_filters( $this->product->get_key() . '_logger_heading', 'Do you enjoy <b>{product}</b>? Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.' );
|
||||
$message = apply_filters( $this->product->get_key() . '_logger_heading', Loader::$labels['logger']['notice'] );
|
||||
|
||||
$message = str_replace(
|
||||
array( '{product}' ),
|
||||
$this->product->get_friendly_name(),
|
||||
$message
|
||||
);
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_logger_button_submit', 'Sure, I would love to help.' );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_logger_button_cancel', 'No, thanks.' );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_logger_button_submit', Loader::$labels['logger']['cta_y'] );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_logger_button_cancel', Loader::$labels['logger']['cta_n'] );
|
||||
|
||||
$all_notifications[] = [
|
||||
'id' => $this->product->get_key() . '_logger_flag',
|
||||
|
@ -14,6 +14,7 @@
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
@ -549,6 +550,7 @@ class Promotions extends Abstract_Module {
|
||||
}
|
||||
|
||||
$this->load_woo_promos();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -580,7 +582,13 @@ class Promotions extends Abstract_Module {
|
||||
case 'neve-fse-themes-popular':
|
||||
// Remove any other notifications if Neve FSE promotion is showing
|
||||
remove_action( 'admin_notices', array( 'ThemeisleSDK\Modules\Notification', 'show_notification' ) );
|
||||
remove_action( 'wp_ajax_themeisle_sdk_dismiss_notice', array( 'ThemeisleSDK\Modules\Notification', 'dismiss' ) );
|
||||
remove_action(
|
||||
'wp_ajax_themeisle_sdk_dismiss_notice',
|
||||
array(
|
||||
'ThemeisleSDK\Modules\Notification',
|
||||
'dismiss',
|
||||
)
|
||||
);
|
||||
remove_action( 'admin_head', array( 'ThemeisleSDK\Modules\Notification', 'dismiss_get' ) );
|
||||
remove_action( 'admin_head', array( 'ThemeisleSDK\Modules\Notification', 'setup_notifications' ) );
|
||||
// Add required actions to display this notification
|
||||
@ -621,6 +629,9 @@ class Promotions extends Abstract_Module {
|
||||
'themeisleSDKPromotions',
|
||||
[
|
||||
'debug' => $this->debug,
|
||||
'labels' => [
|
||||
'optimole' => Loader::$labels['promotions']['optimole'],
|
||||
],
|
||||
'email' => $user->user_email,
|
||||
'showPromotion' => $this->loaded_promo,
|
||||
'optionKey' => $this->option_main,
|
||||
@ -636,7 +647,7 @@ class Promotions extends Abstract_Module {
|
||||
'ropDash' => esc_url( add_query_arg( [ 'page' => 'TweetOldPost' ], admin_url( 'admin.php' ) ) ),
|
||||
'neveFSEMoreUrl' => tsdk_utmify( 'https://themeisle.com/themes/neve-fse/', 'neve-fse-themes-popular', 'theme-install' ),
|
||||
// translators: %s is the product name.
|
||||
'title' => esc_html( sprintf( __( 'Recommended by %s', 'textdomain' ), $this->product->get_name() ) ),
|
||||
'title' => esc_html( sprintf( Loader::$labels['promotions']['recommended'], $this->product->get_name() ) ),
|
||||
]
|
||||
);
|
||||
wp_enqueue_script( $handle );
|
||||
@ -724,6 +735,7 @@ class Promotions extends Abstract_Module {
|
||||
|
||||
set_transient( 'tsk_attachment_count', $attachment_count, DAY_IN_SECONDS );
|
||||
}
|
||||
|
||||
return $attachment_count > 50;
|
||||
}
|
||||
|
||||
@ -785,8 +797,8 @@ class Promotions extends Abstract_Module {
|
||||
private function load_woo_promos() {
|
||||
$this->woo_promos = array(
|
||||
'ppom' => array(
|
||||
'title' => 'Product Add-Ons',
|
||||
'description' => 'Add extra custom fields & add-ons on your product pages, like sizes, colors & more.',
|
||||
'title' => Loader::$labels['promotions']['woo']['ppom_title'],
|
||||
'description' => Loader::$labels['promotions']['woo']['ppom_desc'],
|
||||
'icon' => '<svg width="25" height="25" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800"><path d="M241.023,324.818c0.252,0,0.505,0.035,0.758,0.035h465.68c17.266,0,31.256-13.99,31.256-31.252 c0-17.262-13.99-31.247-31.256-31.247H351.021h-109.24c-17.258,0-31.252,13.985-31.252,31.247 C210.529,310.605,224.121,324.412,241.023,324.818z"/><path d="M210.529,450.306c0,17.257,13.994,31.252,31.252,31.252h769.451c17.262,0,31.256-13.995,31.256-31.252 c0-17.266-13.994-31.252-31.256-31.252H241.781C224.523,419.054,210.529,433.04,210.529,450.306z"/><path d="M1011.232,575.751H241.781c-8.149,0-15.549,3.147-21.116,8.261c-6.213,5.712-10.136,13.879-10.136,22.987 c0,17.262,13.994,31.26,31.252,31.26h769.451c17.262,0,31.256-13.999,31.256-31.26c0-9.108-3.923-17.275-10.141-22.987 C1026.781,578.898,1019.386,575.751,1011.232,575.751z"/><path d="M1011.232,732.461H241.781c-17.258,0-31.252,13.99-31.252,31.247c0,17.262,13.994,31.257,31.252,31.257 h769.451c17.262,0,31.256-13.995,31.256-31.257C1042.488,746.451,1028.494,732.461,1011.232,732.461z"/><path d="M1011.232,889.157H241.781c-8.149,0-15.549,3.147-21.116,8.261c-6.213,5.713-10.136,13.879-10.136,22.987 c0,17.257,13.994,31.261,31.252,31.261h769.451c17.262,0,31.256-14.004,31.256-31.261c0-9.108-3.923-17.274-10.141-22.987 C1026.781,892.305,1019.386,889.157,1011.232,889.157z"/><path d="M1011.232,1045.867H241.781c-17.258,0-31.252,13.99-31.252,31.243c0,17.271,13.994,31.265,31.252,31.265 h769.451c17.262,0,31.256-13.994,31.256-31.265C1042.488,1059.857,1028.494,1045.867,1011.232,1045.867z"/><path d="M1011.232,1202.576H241.781c-17.258,0-31.252,13.995-31.252,31.252c0,17.258,13.994,31.252,31.252,31.252 h769.451c17.262,0,31.256-13.994,31.256-31.252C1042.488,1216.571,1028.494,1202.576,1011.232,1202.576z"/><path d="M1011.232,1359.273H241.781c-8.149,0-15.549,3.151-21.116,8.265c-6.213,5.713-10.136,13.875-10.136,22.987 c0,17.258,13.994,31.261,31.252,31.261h769.451c17.262,0,31.256-14.003,31.256-31.261c0-9.112-3.923-17.274-10.141-22.987 C1026.781,1362.425,1019.386,1359.273,1011.232,1359.273z"/><path d="M1233.542,251.228l-49.851-45.109L1052.136,87.076l-59.185-53.554c-5.293-4.792-11.947-7.421-18.786-7.836 h-3.49H83.676c-45.688,0-82.858,37.375-82.858,83.316v1583.612c0,45.94,37.17,83.316,82.858,83.316h1078.562 c45.68,0,82.845-37.376,82.845-83.316V277.08v-3.182C1244.646,264.73,1240.261,256.589,1233.542,251.228z M1003.117,125.864 l131.119,118.657h-131.119V125.864z M1183.691,1692.613c0,12.094-9.622,21.926-21.454,21.926H83.676 c-11.836,0-21.467-9.832-21.467-21.926V109.001c0-12.089,9.631-21.925,21.467-21.925h857.857V275.38 c0,17.052,13.785,30.862,30.786,30.862h211.372V1692.613z"/><path d="M1798.578,180.737c-7.049-88.305-81.114-158.02-171.205-158.02c-0.004,0-0.004,0-0.004,0 c-45.889,0-89.033,17.874-121.479,50.32c-29.18,29.175-46.519,67.005-49.73,107.699h-0.586v13.609c0,0.06-0.005,0.115-0.005,0.175 c0,0.026,0.005,0.056,0.005,0.082l-0.005,1369.26h0.197c0.557,5.404,2.522,10.731,6.047,15.373l141.135,185.91 c5.803,7.648,14.851,12.136,24.447,12.136c9.601-0.004,18.646-4.496,24.447-12.14l141.093-185.897 c3.528-4.65,5.494-9.982,6.051-15.391h0.197V180.737H1798.578z M1549.299,116.448c20.854-20.855,48.578-32.339,78.07-32.339h0.004 c50.24,0,92.746,33.723,106.076,79.718h-212.19C1526.358,146.098,1535.896,129.852,1549.299,116.448z M1595.372,1502.468 l-78.413,0.005l0.005-1260.345h220.828v1260.336h-81.103l0.009-1016.486l-61.335,0.004L1595.372,1502.468z M1627.382,1695.821 l-100.171-131.963l200.338-0.004L1627.382,1695.821z"/></svg>',
|
||||
'has_install' => true,
|
||||
'link' => wp_nonce_url(
|
||||
@ -801,20 +813,20 @@ class Promotions extends Abstract_Module {
|
||||
),
|
||||
),
|
||||
'sparks-wishlist' => array(
|
||||
'title' => 'Wishlist',
|
||||
'description' => 'Loyalize your customers by allowing them to save their favorite products.',
|
||||
'title' => Loader::$labels['promotions']['woo']['spark_title1'],
|
||||
'description' => Loader::$labels['promotions']['woo']['spark_desc1'],
|
||||
'icon' => '<svg width="25" height="25" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/SVG" aria-hidden="true"><path d="M60 21.25H57.5V40.125H60V21.25Z"></path><path d="M2.5 40H0V8.75C0 6.625 1.625 5 3.75 5H25V7.5H3.75C3 7.5 2.5 8 2.5 8.75V40Z"></path><path d="M56.25 51.25H3.75C1.625 51.25 0 49.625 0 47.5V42.5H25V45H2.5V47.5C2.5 48.25 3 48.75 3.75 48.75H56.25C57 48.75 57.5 48.25 57.5 47.5V43.75H60V47.5C60 49.625 58.375 51.25 56.25 51.25Z"></path><path d="M23.75 58.75H21.25V57.25L22.5 51.125V50H25V51.5L23.75 57.625V58.75Z"></path><path d="M38.75 58.75H36.25V57.625L35 51.25V50H37.5V51.125L38.75 57.5V58.75Z"></path><path d="M41.25 57.5H18.75V60H41.25V57.5Z"></path><path d="M56.25 32.5H43.75C41.625 32.5 40 30.875 40 28.75V3.75C40 1.625 41.625 0 43.75 0H56.25C58.375 0 60 1.625 60 3.75V28.75C60 30.875 58.375 32.5 56.25 32.5ZM43.75 2.5C43 2.5 42.5 3 42.5 3.75V28.75C42.5 29.5 43 30 43.75 30H56.25C57 30 57.5 29.5 57.5 28.75V3.75C57.5 3 57 2.5 56.25 2.5H43.75Z"></path><path d="M50 27.5C50.6904 27.5 51.25 26.9404 51.25 26.25C51.25 25.5596 50.6904 25 50 25C49.3096 25 48.75 25.5596 48.75 26.25C48.75 26.9404 49.3096 27.5 50 27.5Z"></path><path d="M51.25 45H31.25C29.125 45 27.5 43.375 27.5 41.25V8.75C27.5 6.625 29.125 5 31.25 5H37.5V7.5H31.25C30.5 7.5 30 8 30 8.75V41.25C30 42 30.5 42.5 31.25 42.5H51.25C52 42.5 52.5 42 52.5 41.25V35H55V41.25C55 43.375 53.375 45 51.25 45Z"></path><path d="M41.25 40C41.9404 40 42.5 39.4404 42.5 38.75C42.5 38.0596 41.9404 37.5 41.25 37.5C40.5596 37.5 40 38.0596 40 38.75C40 39.4404 40.5596 40 41.25 40Z"></path><path d="M21.75 40H18.25L13.25 35H11.75L6.75 40H0V37.5H5.75L10.75 32.5H14.25L19.25 37.5H20.75L52.875 5.375L54.625 7.125L21.75 40Z"></path><path d="M55 11.25H52.5V7.5H48.75V5H55V11.25Z"></path><defs><clip-path id="clip0"><rect width="60" height="60" fill="white"></rect></clip-path></defs></svg>',
|
||||
'link' => tsdk_utmify( 'https://themeisle.com/plugins/sparks-for-woocommerce/', 'promo', 'products-tabs' ),
|
||||
),
|
||||
'sparks-announcement' => array(
|
||||
'title' => 'Multi-Announcement Bars',
|
||||
'description' => 'Add a top notification bar on your website to highlight the latest products, offers, or upcoming events.',
|
||||
'title' => Loader::$labels['promotions']['woo']['spark_title2'],
|
||||
'description' => Loader::$labels['promotions']['woo']['spark_desc2'],
|
||||
'icon' => '<svg width="25" height="25" viewBox="0 0 60 61" fill="none" xmlns="http://www.w3.org/2000/SVG" aria-hidden="true"><path d="M30 8.89282C29.6685 8.89282 29.3505 8.76113 29.1161 8.52671C28.8817 8.29228 28.75 7.97434 28.75 7.64282V1.39282C28.75 1.0613 28.8817 0.743359 29.1161 0.508939C29.3505 0.274518 29.6685 0.142822 30 0.142822C30.3315 0.142822 30.6495 0.274518 30.8839 0.508939C31.1183 0.743359 31.25 1.0613 31.25 1.39282V7.64282C31.25 7.97434 31.1183 8.29228 30.8839 8.52671C30.6495 8.76113 30.3315 8.89282 30 8.89282Z"></path><path d="M30 21.9105L26.25 18.1605V7.82598L26.9409 7.47992C27.8914 7.00723 28.9385 6.76123 30 6.76123C31.0615 6.76123 32.1086 7.00723 33.0591 7.47992L33.75 7.82598V18.1605L30 21.9105ZM28.75 17.1253L30 18.3753L31.25 17.1253V9.44219C30.4344 9.19928 29.5656 9.19928 28.75 9.44219V17.1253Z"></path><path d="M60 60.1428H0V22.6428H17.5C17.8315 22.6428 18.1495 22.7745 18.3839 23.0089C18.6183 23.2434 18.75 23.5613 18.75 23.8928C18.75 24.2243 18.6183 24.5423 18.3839 24.7767C18.1495 25.0111 17.8315 25.1428 17.5 25.1428H2.5V57.6428H57.5V25.1428H42.5C42.1685 25.1428 41.8505 25.0111 41.6161 24.7767C41.3817 24.5423 41.25 24.2243 41.25 23.8928C41.25 23.5613 41.3817 23.2434 41.6161 23.0089C41.8505 22.7745 42.1685 22.6428 42.5 22.6428H60V60.1428Z"></path><path d="M11.2493 53.8933C11.0421 53.8929 10.8383 53.841 10.6561 53.7424C10.474 53.6438 10.3191 53.5015 10.2055 53.3283C10.0919 53.1551 10.0231 52.9564 10.0052 52.75C9.98727 52.5436 10.0209 52.336 10.103 52.1458L26.353 14.6459C26.4182 14.4953 26.5125 14.359 26.6304 14.2448C26.7483 14.1306 26.8876 14.0408 27.0402 13.9804C27.1928 13.9201 27.3559 13.8903 27.52 13.893C27.6841 13.8956 27.8461 13.9306 27.9967 13.9958C28.1473 14.0611 28.2836 14.1553 28.3978 14.2732C28.5119 14.3912 28.6018 14.5304 28.6621 14.683C28.7225 14.8357 28.7522 14.9987 28.7496 15.1628C28.7469 15.3269 28.712 15.4889 28.6467 15.6395L12.3967 53.1395C12.2999 53.3634 12.1397 53.5541 11.9358 53.6881C11.7319 53.822 11.4932 53.8934 11.2493 53.8933Z"></path><path d="M48.7505 53.8935C48.5065 53.8935 48.2679 53.8222 48.064 53.6883C47.8601 53.5543 47.6999 53.3637 47.603 53.1398L31.353 15.6398C31.2212 15.3356 31.2157 14.9915 31.3376 14.6833C31.4595 14.375 31.6989 14.1278 32.003 13.9961C32.3072 13.8643 32.6513 13.8588 32.9595 13.9807C33.2678 14.1026 33.515 14.3419 33.6467 14.6461L49.8967 52.1461C49.9789 52.3363 50.0125 52.5439 49.9946 52.7503C49.9767 52.9566 49.9078 53.1553 49.7942 53.3285C49.6806 53.5018 49.5258 53.6441 49.3436 53.7427C49.1614 53.8413 48.9576 53.8932 48.7505 53.8936V53.8935Z"></path><path d="M30 33.8928C29.6685 33.8928 29.3505 33.7611 29.1161 33.5267C28.8817 33.2923 28.75 32.9743 28.75 32.6428V25.1428C28.75 24.8113 28.8817 24.4934 29.1161 24.2589C29.3505 24.0245 29.6685 23.8928 30 23.8928C30.3315 23.8928 30.6495 24.0245 30.8839 24.2589C31.1183 24.4934 31.25 24.8113 31.25 25.1428V32.6428C31.25 32.9743 31.1183 33.2923 30.8839 33.5267C30.6495 33.7611 30.3315 33.8928 30 33.8928Z"></path><path d="M45 30.1428H15C14.6685 30.1428 14.3505 30.0111 14.1161 29.7767C13.8817 29.5423 13.75 29.2243 13.75 28.8928C13.75 28.5613 13.8817 28.2434 14.1161 28.0089C14.3505 27.7745 14.6685 27.6428 15 27.6428H45C45.3315 27.6428 45.6495 27.7745 45.8839 28.0089C46.1183 28.2434 46.25 28.5613 46.25 28.8928C46.25 29.2243 46.1183 29.5423 45.8839 29.7767C45.6495 30.0111 45.3315 30.1428 45 30.1428Z"></path><defs><clip-path id="clip0"><rect width="60" height="60" fill="white" transform="translate(0 0.142822)"></rect></clip-path></defs></svg>',
|
||||
'link' => tsdk_utmify( 'https://themeisle.com/plugins/sparks-for-woocommerce/', 'promo', 'products-tabs' ),
|
||||
),
|
||||
'sparks-product-review' => array(
|
||||
'title' => 'Advanced Product Review',
|
||||
'description' => 'Enable an advanced review section, enlarging the basic review options with lots of capabilities.',
|
||||
'title' => Loader::$labels['promotions']['woo']['spark_title3'],
|
||||
'description' => Loader::$labels['promotions']['woo']['spark_desc3'],
|
||||
'icon' => '<svg width="25" height="25" viewBox="0 0 60 61" fill="none" xmlns="http://www.w3.org/2000/SVG" aria-hidden="true"><path d="M58.75 54.1797H1.25C1.08584 54.1797 0.923271 54.1474 0.771595 54.0846C0.619919 54.0218 0.482103 53.9297 0.366021 53.8137C0.24994 53.6976 0.157867 53.5598 0.0950637 53.4081C0.0322604 53.2564 -4.26571e-05 53.0939 4.22759e-08 52.9297V6.67969C-4.26571e-05 6.51552 0.0322604 6.35296 0.0950637 6.20128C0.157867 6.04961 0.24994 5.91179 0.366021 5.79571C0.482103 5.67963 0.619919 5.58755 0.771595 5.52475C0.923271 5.46195 1.08584 5.42964 1.25 5.42969H58.75C58.9142 5.42964 59.0767 5.46195 59.2284 5.52475C59.3801 5.58755 59.5179 5.67963 59.634 5.79571C59.7501 5.91179 59.8421 6.04961 59.9049 6.20128C59.9677 6.35296 60 6.51552 60 6.67969V52.9297C60 53.0939 59.9677 53.2564 59.9049 53.4081C59.8421 53.5598 59.7501 53.6976 59.634 53.8137C59.5179 53.9297 59.3801 54.0218 59.2284 54.0846C59.0767 54.1474 58.9142 54.1797 58.75 54.1797ZM2.5 51.6797H57.5V7.92969H2.5V51.6797Z"></path><path d="M6.25 15.4297C6.94036 15.4297 7.5 14.87 7.5 14.1797C7.5 13.4893 6.94036 12.9297 6.25 12.9297C5.55964 12.9297 5 13.4893 5 14.1797C5 14.87 5.55964 15.4297 6.25 15.4297Z"></path><path d="M10 15.4297C10.6904 15.4297 11.25 14.87 11.25 14.1797C11.25 13.4893 10.6904 12.9297 10 12.9297C9.30964 12.9297 8.75 13.4893 8.75 14.1797C8.75 14.87 9.30964 15.4297 10 15.4297Z"></path><path d="M13.75 15.4297C14.4404 15.4297 15 14.87 15 14.1797C15 13.4893 14.4404 12.9297 13.75 12.9297C13.0596 12.9297 12.5 13.4893 12.5 14.1797C12.5 14.87 13.0596 15.4297 13.75 15.4297Z"></path><path d="M58.75 15.4297H18.75C18.4185 15.4297 18.1005 15.298 17.8661 15.0636C17.6317 14.8292 17.5 14.5112 17.5 14.1797C17.5 13.8482 17.6317 13.5302 17.8661 13.2958C18.1005 13.0614 18.4185 12.9297 18.75 12.9297H58.75C59.0815 12.9297 59.3995 13.0614 59.6339 13.2958C59.8683 13.5302 60 13.8482 60 14.1797C60 14.5112 59.8683 14.8292 59.6339 15.0636C59.3995 15.298 59.0815 15.4297 58.75 15.4297Z"></path><path d="M28.7502 37.9297C28.4187 37.9295 28.1009 37.7978 27.8664 37.5634L24.4289 34.1259C24.198 33.8908 24.0693 33.574 24.0708 33.2445C24.0723 32.915 24.2039 32.5994 24.4369 32.3664C24.6699 32.1334 24.9855 32.0018 25.315 32.0003C25.6445 31.9988 25.9613 32.1275 26.1964 32.3584L28.6977 34.8597L38.8588 23.4522C38.968 23.3296 39.1002 23.2298 39.2479 23.1583C39.3957 23.0869 39.5561 23.0452 39.7199 23.0358C39.8838 23.0263 40.0479 23.0492 40.2029 23.1032C40.3579 23.1571 40.5008 23.2411 40.6233 23.3503C40.7459 23.4594 40.8457 23.5917 40.9172 23.7394C40.9886 23.8872 41.0303 24.0476 41.0397 24.2114C41.0492 24.3753 41.0263 24.5394 40.9723 24.6944C40.9184 24.8494 40.8344 24.9922 40.7253 25.1148L29.6834 37.511C29.5702 37.6382 29.4322 37.7409 29.2779 37.8129C29.1237 37.8849 28.9563 37.9247 28.7862 37.9298L28.7502 37.9297Z"></path><path d="M29.977 44.1812C28.3217 44.1775 26.6876 43.8085 25.1912 43.1007C23.6948 42.3928 22.3731 41.3635 21.3203 40.0861C20.2675 38.8087 19.5095 37.3148 19.1004 35.7108C18.6913 34.1068 18.6413 32.4322 18.9537 30.8067C19.2662 29.1811 19.9335 27.6445 20.9081 26.3065C21.8827 24.9684 23.1406 23.862 24.592 23.0659C26.0433 22.2699 27.6525 21.804 29.3046 21.7013C30.9568 21.5987 32.6113 21.8619 34.15 22.4722C34.4579 22.5949 34.7044 22.8349 34.8354 23.1393C34.9663 23.4438 34.9709 23.7878 34.8482 24.0957C34.7255 24.4036 34.4856 24.6501 34.1811 24.7811C33.8766 24.912 33.5326 24.9166 33.2247 24.7939C31.44 24.0862 29.472 23.985 27.6241 24.5059C25.7762 25.0269 24.1508 26.141 22.9985 27.6767C21.8462 29.2124 21.2308 31.0844 21.2473 33.0043C21.2637 34.9242 21.9111 36.7854 23.0895 38.3011C24.268 39.8168 25.9122 40.903 27.7688 41.3922C29.6254 41.8813 31.5913 41.7464 33.3637 41.0082C35.136 40.27 36.6164 38.9694 37.5768 37.3069C38.5372 35.6444 38.9242 33.7122 38.6782 31.8081C38.6568 31.6451 38.6678 31.4795 38.7104 31.3208C38.7531 31.1621 38.8267 31.0133 38.927 30.8831C39.0272 30.7528 39.1522 30.6436 39.2947 30.5617C39.4373 30.4798 39.5945 30.4268 39.7575 30.4058C39.9206 30.3848 40.0861 30.3961 40.2448 30.4391C40.4034 30.4822 40.552 30.5561 40.682 30.6566C40.8121 30.7572 40.921 30.8824 41.0026 31.0251C41.0842 31.1678 41.1368 31.3252 41.1574 31.4883C41.3469 32.9535 41.2459 34.4417 40.8602 35.8679C40.4745 37.294 39.8116 38.6303 38.9094 39.8002C38.0072 40.9702 36.8834 41.9509 35.6021 42.6865C34.3208 43.4221 32.9071 43.898 31.4419 44.0872C30.9561 44.1494 30.4668 44.1807 29.977 44.1812Z"></path><defs><clip-path id="clip0"><rect width="60" height="60" fill="white" transform="translate(0 0.429688)"></rect></clip-path></defs></svg>',
|
||||
'link' => tsdk_utmify( 'https://themeisle.com/plugins/sparks-for-woocommerce/', 'promo', 'products-tabs' ),
|
||||
),
|
||||
@ -831,7 +843,7 @@ class Promotions extends Abstract_Module {
|
||||
'woocommerce_product_data_tabs',
|
||||
function ( $tabs ) {
|
||||
$tabs['tisdk-suggestions'] = array(
|
||||
'label' => 'More extensions from Themeisle',
|
||||
'label' => Loader::$labels['promotions']['woo']['title'],
|
||||
'target' => 'tisdk_suggestions',
|
||||
'class' => array(),
|
||||
'priority' => 1000,
|
||||
@ -865,7 +877,7 @@ class Promotions extends Abstract_Module {
|
||||
|
||||
<div id="tisdk_suggestions" class="panel woocommerce_options_panel hidden">
|
||||
<div class="tisdk-suggestions-header">
|
||||
<h4>Recommended extensions</h4>
|
||||
<h4><?php echo esc_html( Loader::$labels['promotions']['woo']['title2'] ); ?></h4>
|
||||
</div>
|
||||
<div class="tisdk-suggestions-content">
|
||||
<?php foreach ( $content as $key => $item ) : ?>
|
||||
@ -881,9 +893,11 @@ class Promotions extends Abstract_Module {
|
||||
</div>
|
||||
<div class="tisdk-suggestion-cta">
|
||||
<a href="<?php echo esc_url( $item['link'] ); ?>" target="blank" class="button">
|
||||
<?php echo ( ( isset( $item['has_install'] ) && $item['has_install'] ) ? 'Install' : 'Learn More' ); ?>
|
||||
<?php echo( ( isset( $item['has_install'] ) && $item['has_install'] ) ? esc_html( Loader::$labels['promotions']['woo']['cta_install'] ) : esc_html( Loader::$labels['promotions']['woo']['learn_more'] ) ); ?>
|
||||
</a>
|
||||
<a class="suggestion-dismiss" title="Dismiss this suggestion" href="#"></a>
|
||||
<a class="suggestion-dismiss"
|
||||
title="<?php echo esc_attr( Loader::$labels['promotions']['woo']['dismiss'] ); ?>"
|
||||
href="#"></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
@ -904,29 +918,35 @@ class Promotions extends Abstract_Module {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tisdk-suggestions_options a::before {
|
||||
content: url("data:image/svg+xml,%3Csvg fill='%23135e96' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='<?php echo esc_attr( $icon ); ?>'/%3E%3C/svg%3E") !important;
|
||||
min-width: 13px;
|
||||
max-width: 13px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.tisdk-suggestions_options.active a::before {
|
||||
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='<?php echo esc_attr( $icon ); ?>'/%3E%3C/svg%3E") !important;
|
||||
}
|
||||
|
||||
.tisdk-suggestions-header {
|
||||
padding: 1em 1.5em;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.tisdk-suggestions-header h4 {
|
||||
font-size: 1.1em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tisdk-suggestion {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
padding: 1em 1.5em;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-icon {
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
@ -940,32 +960,39 @@ class Promotions extends Abstract_Module {
|
||||
align-items: center;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-icon svg {
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-content {
|
||||
flex: 1 1 60%;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-content h4 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-content p {
|
||||
margin: 0;
|
||||
margin-top: 4px;
|
||||
padding: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-cta {
|
||||
flex: 1 1 30%;
|
||||
min-width: 160px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-cta .button {
|
||||
display: inline-block;
|
||||
min-width: 120px;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tisdk-suggestion-cta .suggestion-dismiss {
|
||||
position: relative;
|
||||
top: 5px;
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
@ -67,10 +68,10 @@ class Review extends Abstract_Module {
|
||||
|
||||
$link = 'https://wordpress.org/support/' . $this->product->get_type() . '/' . $this->product->get_slug() . '/reviews/#wporg-footer';
|
||||
|
||||
$message = apply_filters( $this->product->get_key() . '_feedback_review_message', '<p>Hey, it\'s great to see you have <b>{product}</b> active for a few days now. How is everything going? If you can spare a few moments to rate it on WordPress.org it would help us a lot (and boost my motivation). Cheers! <br/> <br/>~ {developer}, developer of {product}</p>' );
|
||||
$message = apply_filters( $this->product->get_key() . '_feedback_review_message', Loader::$labels['review']['notice'] );
|
||||
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', 'Ok, I will gladly help.' );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', 'No, thanks.' );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', Loader::$labels['review']['ctay'] );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', Loader::$labels['review']['ctan'] );
|
||||
$message = str_replace(
|
||||
[ '{product}', '{developer}' ],
|
||||
[
|
||||
|
@ -13,6 +13,7 @@ namespace ThemeisleSDK\Modules;
|
||||
|
||||
// Exit if accessed directly.
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
@ -184,7 +185,7 @@ class Rollback extends Abstract_Module {
|
||||
if ( empty( $version ) ) {
|
||||
return $links;
|
||||
}
|
||||
$links[] = '<a href="' . wp_nonce_url( admin_url( 'admin-post.php?action=' . $this->product->get_key() . '_rollback' ), $this->product->get_key() . '_rollback' ) . '">' . sprintf( apply_filters( $this->product->get_key() . '_rollback_label', 'Rollback to v%s' ), $version['version'] ) . '</a>';
|
||||
$links[] = '<a href="' . wp_nonce_url( admin_url( 'admin-post.php?action=' . $this->product->get_key() . '_rollback' ), $this->product->get_key() . '_rollback' ) . '">' . sprintf( apply_filters( $this->product->get_key() . '_rollback_label', Loader::$labels['rollback']['cta'] ), $version['version'] ) . '</a>';
|
||||
|
||||
return $links;
|
||||
}
|
||||
@ -284,6 +285,22 @@ class Rollback extends Abstract_Module {
|
||||
$nonce = 'upgrade-theme_' . $theme;
|
||||
$url = 'update.php?action=upgrade-theme&theme=' . urlencode( $theme );
|
||||
|
||||
/**
|
||||
* The rollback will attach a temporary theme for the rollback to the transient.
|
||||
* However, when executing the upgrade for the attached theme we need to change the slug to the original theme slug.
|
||||
* This is because it will use the slug to create a temp folder for the theme used during the upgrade.
|
||||
*/
|
||||
add_filter(
|
||||
'upgrader_package_options',
|
||||
function ( $options ) use ( $folder, $theme ) {
|
||||
if ( isset( $options['hook_extra']['theme'] ) && $options['hook_extra']['theme'] === $theme && isset( $options['hook_extra']['temp_backup']['slug'] ) ) {
|
||||
$options['hook_extra']['temp_backup']['slug'] = $folder;
|
||||
}
|
||||
|
||||
return $options;
|
||||
}
|
||||
);
|
||||
|
||||
$upgrader = new \Theme_Upgrader( new \Theme_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'theme' ) ) );
|
||||
$upgrader->upgrade( $theme );
|
||||
delete_transient( $this->product->get_key() . '_warning_rollback' );
|
||||
|
@ -31,10 +31,6 @@ class Script_Loader extends Abstract_Module {
|
||||
* @return bool Should we load ?
|
||||
*/
|
||||
public function can_load( $product ) {
|
||||
if ( apply_filters( 'themeisle_sdk_ran_promos', false ) === true ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $this->is_from_partner( $product ) ) {
|
||||
return false;
|
||||
}
|
||||
@ -56,11 +52,18 @@ class Script_Loader extends Abstract_Module {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup actions.
|
||||
* Setup actions. Once for all products.
|
||||
*/
|
||||
private function setup_actions() {
|
||||
|
||||
if ( apply_filters( 'themeisle_sdk_script_setup', false ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
add_filter( 'themeisle_sdk_dependency_script_handler', [ $this, 'get_script_handler' ], 10, 1 );
|
||||
add_action( 'themeisle_sdk_dependency_enqueue_script', [ $this, 'enqueue_script' ], 10, 1 );
|
||||
|
||||
add_filter( 'themeisle_sdk_script_setup', '__return_true' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace ThemeisleSDK\Modules;
|
||||
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
use ThemeisleSDK\Product;
|
||||
|
||||
// Exit if accessed directly.
|
||||
@ -48,24 +49,21 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
* @var array $options_plugin The main options list for plugins.
|
||||
*/
|
||||
private $options_plugin = array(
|
||||
'I found a better plugin' => array(
|
||||
'id3' => array(
|
||||
'id' => 3,
|
||||
'type' => 'text',
|
||||
'placeholder' => 'What\'s the plugin\'s name?',
|
||||
|
||||
),
|
||||
'I could not get the plugin to work' => array(
|
||||
'id4' => array(
|
||||
'type' => 'textarea',
|
||||
'placeholder' => 'What problem are you experiencing?',
|
||||
'id' => 4,
|
||||
),
|
||||
'I no longer need the plugin' => array(
|
||||
'id5' => array(
|
||||
'id' => 5,
|
||||
'type' => 'textarea',
|
||||
'placeholder' => 'If you could improve one thing about our product, what would it be?',
|
||||
),
|
||||
'It\'s a temporary deactivation. I\'m just debugging an issue.' => array(
|
||||
'id6' => array(
|
||||
'type' => 'textarea',
|
||||
'placeholder' => 'What problem are you experiencing?',
|
||||
'id' => 6,
|
||||
),
|
||||
);
|
||||
@ -75,20 +73,20 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
* @var array $options_theme The main options list for themes.
|
||||
*/
|
||||
private $options_theme = array(
|
||||
'I don\'t know how to make it look like demo' => array(
|
||||
'id7' => array(
|
||||
'id' => 7,
|
||||
),
|
||||
'It lacks options' => array(
|
||||
'placeholder' => 'What option is missing?',
|
||||
'id8' => array(
|
||||
'type' => 'text',
|
||||
'id' => 8,
|
||||
),
|
||||
'Is not working with a plugin that I need' => array(
|
||||
'id9' => array(
|
||||
'id' => 9,
|
||||
'type' => 'text',
|
||||
'placeholder' => 'What is the name of the plugin',
|
||||
),
|
||||
'I want to try a new design, I don\'t like {theme} style' => array(
|
||||
'id10' => array(
|
||||
|
||||
'title' => '',
|
||||
'id' => 10,
|
||||
),
|
||||
);
|
||||
@ -98,36 +96,11 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
* @var array $other The other option
|
||||
*/
|
||||
private $other = array(
|
||||
'Other' => array(
|
||||
'id999' => array(
|
||||
'id' => 999,
|
||||
'type' => 'textarea',
|
||||
'placeholder' => 'What can we do better?',
|
||||
),
|
||||
);
|
||||
/**
|
||||
* Default heading for plugin.
|
||||
*
|
||||
* @var string $heading_plugin The heading of the modal
|
||||
*/
|
||||
private $heading_plugin = 'What\'s wrong?';
|
||||
/**
|
||||
* Default heading for theme.
|
||||
*
|
||||
* @var string $heading_theme The heading of the modal
|
||||
*/
|
||||
private $heading_theme = 'What does not work for you in {theme}?';
|
||||
/**
|
||||
* Default submit button action text.
|
||||
*
|
||||
* @var string $button_submit The text of the deactivate button
|
||||
*/
|
||||
private $button_submit = 'Submit & Deactivate';
|
||||
/**
|
||||
* Default cancel button.
|
||||
*
|
||||
* @var string $button_cancel The text of the cancel button
|
||||
*/
|
||||
private $button_cancel = 'Skip & Deactivate';
|
||||
|
||||
/**
|
||||
* Loads the additional resources
|
||||
@ -155,11 +128,11 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
* Render theme feedback drawer.
|
||||
*/
|
||||
private function render_theme_feedback_popup() {
|
||||
$heading = str_replace( '{theme}', $this->product->get_name(), $this->heading_theme );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_submit', 'Submit' );
|
||||
$heading = str_replace( '{theme}', $this->product->get_name(), Loader::$labels['uninstall']['heading_theme'] );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_submit', Loader::$labels['uninstall']['submit'] );
|
||||
$options = $this->options_theme;
|
||||
$options = $this->randomize_options( apply_filters( $this->product->get_key() . '_feedback_deactivate_options', $options ) );
|
||||
$info_disclosure_link = '<a href="#" class="info-disclosure-link">' . apply_filters( $this->product->get_slug() . '_themeisle_sdk_info_collect_cta', 'What info do we collect?' ) . '</a>';
|
||||
$info_disclosure_link = '<a href="#" class="info-disclosure-link">' . apply_filters( $this->product->get_slug() . '_themeisle_sdk_info_collect_cta', Loader::$labels['uninstall']['cta_info'] ) . '</a>';
|
||||
|
||||
$options += $this->other;
|
||||
|
||||
@ -386,8 +359,7 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
position: absolute;
|
||||
white-space: normal;
|
||||
width: 400px;
|
||||
<?php echo is_rtl() ? 'right: calc( 100% + 15px );' : 'left: calc( 100% + 15px );'; ?>
|
||||
top: -15px;
|
||||
<?php echo is_rtl() ? 'right: calc( 100% + 15px );' : 'left: calc( 100% + 15px );'; ?> top: -15px;
|
||||
}
|
||||
|
||||
.ti-plugin-uninstall-feedback-popup.sending-feedback .popup--body i {
|
||||
@ -525,15 +497,20 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
];
|
||||
?>
|
||||
<ul class="popup--form">
|
||||
<?php foreach ( $options as $title => $attributes ) { ?>
|
||||
<?php
|
||||
foreach ( $options as $idx => $attributes ) {
|
||||
$title = Loader::$labels['uninstall']['options'][ $idx ]['title'];
|
||||
$placeholder = array_key_exists( 'placeholder', Loader::$labels['uninstall']['options'][ $idx ] ) ? Loader::$labels['uninstall']['options'][ $idx ]['placeholder'] : '';
|
||||
?>
|
||||
<li ti-option-id="<?php echo esc_attr( $attributes['id'] ); ?>">
|
||||
<input type="radio" name="ti-deactivate-option" id="<?php echo esc_attr( $key . $attributes['id'] ); ?>">
|
||||
<input type="radio" name="ti-deactivate-option"
|
||||
id="<?php echo esc_attr( $key . $attributes['id'] ); ?>">
|
||||
<label for="<?php echo esc_attr( $key . $attributes['id'] ); ?>">
|
||||
<?php echo esc_attr( str_replace( '{theme}', $this->product->get_name(), $title ) ); ?>
|
||||
</label>
|
||||
<?php
|
||||
if ( array_key_exists( 'type', $attributes ) ) {
|
||||
$placeholder = array_key_exists( 'placeholder', $attributes ) ? $attributes['placeholder'] : '';
|
||||
|
||||
echo '<textarea width="100%" rows="' . esc_attr( $inputs_row_map[ $attributes['type'] ] ) . '" name="comments" placeholder="' . esc_attr( $placeholder ) . '"></textarea>';
|
||||
}
|
||||
?>
|
||||
@ -547,16 +524,17 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
* Render plugin feedback popup.
|
||||
*/
|
||||
private function render_plugin_feedback_popup() {
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_cancel', $this->button_cancel );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_submit', $this->button_submit );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_cancel', Loader::$labels['uninstall']['button_cancel'] );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_submit', Loader::$labels['uninstall']['button_submit'] );
|
||||
$options = $this->randomize_options( apply_filters( $this->product->get_key() . '_feedback_deactivate_options', $this->options_plugin ) );
|
||||
$info_disclosure_link = '<a href="#" class="info-disclosure-link">' . apply_filters( $this->product->get_slug() . '_themeisle_sdk_info_collect_cta', 'What info do we collect?' ) . '</a>';
|
||||
$info_disclosure_link = '<a href="#" class="info-disclosure-link">' . apply_filters( $this->product->get_slug() . '_themeisle_sdk_info_collect_cta', Loader::$labels['uninstall']['cta_info'] ) . '</a>';
|
||||
|
||||
$options += $this->other;
|
||||
?>
|
||||
<div class="ti-plugin-uninstall-feedback-popup ti-feedback" id="<?php echo esc_attr( $this->product->get_slug() . '_uninstall_feedback_popup' ); ?>">
|
||||
<div class="ti-plugin-uninstall-feedback-popup ti-feedback"
|
||||
id="<?php echo esc_attr( $this->product->get_slug() . '_uninstall_feedback_popup' ); ?>">
|
||||
<div class="popup--header">
|
||||
<h5><?php echo wp_kses( $this->heading_plugin, array( 'span' => true ) ); ?> </h5>
|
||||
<h5><?php echo wp_kses( Loader::$labels['uninstall']['heading_plugin'], array( 'span' => true ) ); ?> </h5>
|
||||
</div><!--/.popup--header-->
|
||||
<div class="popup--body">
|
||||
<?php $this->render_options_list( $options ); ?>
|
||||
@ -701,12 +679,12 @@ class Uninstall_Feedback extends Abstract_Module {
|
||||
$disclosure_new_labels = apply_filters( $this->product->get_slug() . '_themeisle_sdk_disclosure_content_labels', [], $this->product );
|
||||
$disclosure_labels = array_merge(
|
||||
[
|
||||
'title' => 'Below is a detailed view of all data that ThemeIsle will receive if you fill in this survey. No email address or IP addresses are transmitted after you submit the survey.',
|
||||
'title' => Loader::$labels['uninstall']['disclosure']['title'],
|
||||
'items' => [
|
||||
sprintf( '%s %s version %s %s %s %s', '<strong>', ucwords( $this->product->get_type() ), '</strong>', '<code>', $this->product->get_version(), '</code>' ),
|
||||
sprintf( '%sCurrent website:%s %s %s %s', '<strong>', '</strong>', '<code>', get_site_url(), '</code>' ),
|
||||
sprintf( '%sUsage time:%s %s %s%s', '<strong>', '</strong>', '<code>', ( time() - $this->product->get_install_time() ), 's</code>' ),
|
||||
sprintf( '%s Uninstall reason %s %s Selected reason from the above survey %s ', '<strong>', '</strong>', '<i>', '</i>' ),
|
||||
sprintf( Loader::$labels['uninstall']['disclosure']['version'], '<strong>', ucwords( $this->product->get_type() ), '</strong>', '<code>', $this->product->get_version(), '</code>' ),
|
||||
sprintf( Loader::$labels['uninstall']['disclosure']['website'], '<strong>', '</strong>', '<code>', get_site_url(), '</code>' ),
|
||||
sprintf( Loader::$labels['uninstall']['disclosure']['usage'], '<strong>', '</strong>', '<code>', ( time() - $this->product->get_install_time() ), 's</code>' ),
|
||||
sprintf( Loader::$labels['uninstall']['disclosure']['reason'], '<strong>', '</strong>', '<i>', '</i>' ),
|
||||
],
|
||||
],
|
||||
$disclosure_new_labels
|
||||
|
@ -25,6 +25,7 @@ namespace ThemeisleSDK\Modules;
|
||||
|
||||
// Exit if accessed directly.
|
||||
use ThemeisleSDK\Common\Abstract_Module;
|
||||
use ThemeisleSDK\Loader;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
@ -153,10 +154,10 @@ class Welcome extends Abstract_Module {
|
||||
|
||||
$link = $offer['cta_link'];
|
||||
|
||||
$message = apply_filters( $this->product->get_key() . '_welcome_upsell_message', '<p>You\'ve been using <b>{product}</b> for 7 days now and we appreciate your loyalty! We also want to make sure you\'re getting the most out of our product. That\'s why we\'re offering you a special deal - upgrade to <b>{pro_product}</b> in the next 5 days and receive a discount of <b>up to 30%</b>. <a href="{cta_link}" target="_blank">Upgrade now</a> and unlock all the amazing features of <b>{pro_product}</b>!</p>' );
|
||||
$message = apply_filters( $this->product->get_key() . '_welcome_upsell_message', Loader::$labels['welcome']['message'] );
|
||||
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', 'Upgrade Now!' );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', 'No, thanks.' );
|
||||
$button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', Loader::$labels['welcome']['ctay'] );
|
||||
$button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', Loader::$labels['welcome']['ctan'] );
|
||||
$message = str_replace(
|
||||
[ '{product}', '{pro_product}', '{cta_link}' ],
|
||||
[
|
||||
|
@ -412,6 +412,7 @@ class Product {
|
||||
[
|
||||
'name' => rawurlencode( $this->get_name() ),
|
||||
'edd_action' => 'view_changelog',
|
||||
'locale' => get_user_locale(),
|
||||
],
|
||||
$this->get_store_url()
|
||||
);
|
||||
|
@ -38,6 +38,7 @@ $files_to_load = [
|
||||
$themeisle_library_path . '/src/Modules/Compatibilities.php',
|
||||
$themeisle_library_path . '/src/Modules/About_us.php',
|
||||
$themeisle_library_path . '/src/Modules/Announcements.php',
|
||||
$themeisle_library_path . '/src/Modules/Featured_plugins.php',
|
||||
];
|
||||
|
||||
$files_to_load = array_merge( $files_to_load, apply_filters( 'themeisle_sdk_required_files', [] ) );
|
||||
|
@ -128,23 +128,23 @@
|
||||
},
|
||||
{
|
||||
"name": "codeinwp/themeisle-sdk",
|
||||
"version": "3.3.15",
|
||||
"version_normalized": "3.3.15.0",
|
||||
"version": "3.3.20",
|
||||
"version_normalized": "3.3.20.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
|
||||
"reference": "eb06ae687ee39cbcc316936db1349b8b1092e32f"
|
||||
"reference": "d1b92f3ab74f1b3f0afad7e23ddb1c058d66c03c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/eb06ae687ee39cbcc316936db1349b8b1092e32f",
|
||||
"reference": "eb06ae687ee39cbcc316936db1349b8b1092e32f",
|
||||
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/d1b92f3ab74f1b3f0afad7e23ddb1c058d66c03c",
|
||||
"reference": "d1b92f3ab74f1b3f0afad7e23ddb1c058d66c03c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require-dev": {
|
||||
"codeinwp/phpcs-ruleset": "dev-main"
|
||||
},
|
||||
"time": "2024-03-26T09:05:18+00:00",
|
||||
"time": "2024-04-16T12:27:32+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php return array(
|
||||
'root' => array(
|
||||
'name' => 'codeinwp/wp-menu-icons',
|
||||
'pretty_version' => 'v0.13.10',
|
||||
'version' => '0.13.10.0',
|
||||
'reference' => 'c952a9d2f3db0616568acf8ac3f6eba9a94024c0',
|
||||
'pretty_version' => 'v0.13.13',
|
||||
'version' => '0.13.13.0',
|
||||
'reference' => '1d9b7a1bc87b0942bb633546596245b44c1dd15e',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
@ -38,18 +38,18 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'codeinwp/themeisle-sdk' => array(
|
||||
'pretty_version' => '3.3.15',
|
||||
'version' => '3.3.15.0',
|
||||
'reference' => 'eb06ae687ee39cbcc316936db1349b8b1092e32f',
|
||||
'pretty_version' => '3.3.20',
|
||||
'version' => '3.3.20.0',
|
||||
'reference' => 'd1b92f3ab74f1b3f0afad7e23ddb1c058d66c03c',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'codeinwp/wp-menu-icons' => array(
|
||||
'pretty_version' => 'v0.13.10',
|
||||
'version' => '0.13.10.0',
|
||||
'reference' => 'c952a9d2f3db0616568acf8ac3f6eba9a94024c0',
|
||||
'pretty_version' => 'v0.13.13',
|
||||
'version' => '0.13.13.0',
|
||||
'reference' => '1d9b7a1bc87b0942bb633546596245b44c1dd15e',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
|
Loading…
Reference in New Issue
Block a user