first commit

This commit is contained in:
2024-11-04 20:48:19 +01:00
commit 2fa33a3be9
7968 changed files with 2313063 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
use Elementor\Modules\Promotions\AdminMenuItems\Interfaces\Promotion_Menu_Item;
use Elementor\Settings;
use Elementor\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
abstract class Base_Promotion_Item implements Promotion_Menu_Item {
public function is_visible() {
return true;
}
public function get_parent_slug() {
return Settings::PAGE_ID;
}
public function get_capability() {
return 'manage_options';
}
public function get_cta_text() {
return esc_html__( 'Upgrade Now', 'elementor' );
}
public function get_image_url() {
return ELEMENTOR_ASSETS_URL . 'images/go-pro-wp-dashboard.svg';
}
public function render() {
?>
<div class="wrap">
<div class="elementor-blank_state">
<img src="<?php echo esc_url( $this->get_image_url() ); ?>" loading="lazy" />
<h3><?php Utils::print_unescaped_internal_string( $this->get_promotion_title() ); ?></h3>
<p><?php $this->render_promotion_description(); ?></p>
<a class="elementor-button go-pro" href="<?php echo esc_url( $this->get_cta_url() ); ?>">
<?php Utils::print_unescaped_internal_string( $this->get_cta_text() ); ?>
</a>
</div>
</div>
<?php
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Custom_Code_Promotion_Item extends Base_Promotion_Item {
public function get_label() {
return esc_html__( 'Custom Code', 'elementor' );
}
public function get_page_title() {
return esc_html__( 'Custom Code', 'elementor' );
}
public function get_promotion_title() {
return esc_html__( 'Add Your Custom Code', 'elementor' );
}
public function render_promotion_description() {
echo esc_html__(
'Custom Code is a tool gives you one place where you can insert scripts, rather than dealing with dozens of different plugins and deal with code.',
'elementor'
);
}
public function get_cta_url() {
return 'https://go.elementor.com/go-pro-custom-code/';
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Custom_Fonts_Promotion_Item extends Base_Promotion_Item {
public function get_label() {
return esc_html__( 'Custom Fonts', 'elementor' );
}
public function get_page_title() {
return esc_html__( 'Custom Fonts', 'elementor' );
}
public function get_promotion_title() {
return esc_html__( 'Add Your Custom Fonts', 'elementor' );
}
public function render_promotion_description() {
echo esc_html__(
'Custom Fonts allows you to add your self-hosted fonts and use them on your Elementor projects to create a unique brand language.',
'elementor'
);
}
public function get_cta_url() {
return 'https://go.elementor.com/go-pro-custom-fonts/';
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Custom_Icons_Promotion_Item extends Base_Promotion_Item {
public function get_label() {
return esc_html__( 'Custom Icons', 'elementor' );
}
public function get_page_title() {
return esc_html__( 'Custom Icons', 'elementor' );
}
public function get_promotion_title() {
return esc_html__( 'Add Your Custom Icons', 'elementor' );
}
public function render_promotion_description() {
echo esc_html__(
'Don\'t rely solely on the FontAwesome icons everyone else is using! Differentiate your website and your style with custom icons you can upload from your favorite icons source.',
'elementor'
);
}
public function get_cta_url() {
return 'https://go.elementor.com/go-pro-custom-icons/';
}
}

View File

@@ -0,0 +1,36 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Form_Submissions_Promotion_Item extends Base_Promotion_Item {
public function get_label() {
return esc_html__( 'Submissions', 'elementor' );
}
public function get_page_title() {
return esc_html__( 'Submissions', 'elementor' );
}
public function get_promotion_title() {
return esc_html__( 'Collect Your Form Submissions', 'elementor' );
}
public function render_promotion_description() {
echo esc_html__( 'Save and manage all of your form submissions in one single place. All within a simple, intuitive place.', 'elementor' );
?>
<a href="https://go.elementor.com/wp-dash-submissions" target="_blank" rel="nofollow">
<?php echo esc_html__( 'Learn More', 'elementor' ); ?>
</a>
<?php
}
public function get_cta_url() {
return 'https://go.elementor.com/go-pro-submissions/';
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
use Elementor\Settings;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Go_Pro_Promotion_Item implements Admin_Menu_Item_With_Page {
const URL = 'https://go.elementor.com/pro-admin-menu/';
public function is_visible() {
return true;
}
public function get_parent_slug() {
return Settings::PAGE_ID;
}
public function get_label() {
return esc_html__( 'Upgrade', 'elementor' );
}
public function get_page_title() {
return '';
}
public function get_capability() {
return 'manage_options';
}
public function render() {
// Redirects from the module on `admin_init`.
die;
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems\Interfaces;
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
interface Promotion_Menu_Item extends Admin_Menu_Item_With_Page {
public function get_image_url();
public function get_promotion_title();
public function render_promotion_description();
public function get_cta_text();
public function get_cta_url();
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Elementor\Modules\Promotions\AdminMenuItems;
use Elementor\TemplateLibrary\Source_Local;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Popups_Promotion_Item extends Base_Promotion_Item {
public function get_parent_slug() {
return Source_Local::ADMIN_MENU_SLUG;
}
public function get_label() {
return esc_html__( 'Popups', 'elementor' );
}
public function get_page_title() {
return esc_html__( 'Popups', 'elementor' );
}
public function get_promotion_title() {
return esc_html__( 'Get Popup Builder', 'elementor' );
}
public function render_promotion_description() {
echo esc_html__(
'The Popup Builder lets you take advantage of all the amazing features in Elementor, so you can build beautiful & highly converting popups. Get Elementor Pro and start designing your popups today.',
'elementor'
);
}
public function get_cta_url() {
return 'https://go.elementor.com/go-pro-popup-builder/';
}
}