Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"require-dev": {
"squizlabs/php_codesniffer": "^3.6",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"wp-coding-standards/wpcs": "3.3.0",
"wp-coding-standards/wpcs": "3.4.1",
"phpunit/phpunit": "^9.6.33",
"elementor/elementor-editor-testing": "0.0.3",
"yoast/phpunit-polyfills": "^1.0.1"
Expand Down
97 changes: 40 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed dev/images/ai.png
Binary file not shown.
12 changes: 0 additions & 12 deletions dev/images/image-optimization-bg.svg

This file was deleted.

5 changes: 0 additions & 5 deletions dev/images/image-optimizer.svg

This file was deleted.

37 changes: 0 additions & 37 deletions includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace HelloTheme\Includes;

use Elementor\App\App;

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
Expand All @@ -13,10 +11,6 @@
**/
class Utils {

public static function elementor(): \Elementor\Plugin {
return \Elementor\Plugin::$instance;
}

public static function has_pro(): bool {
return defined( 'ELEMENTOR_PRO_VERSION' );
}
Expand All @@ -39,22 +33,6 @@ public static function is_elementor_installed(): bool {
return $elementor_installed;
}

public static function get_theme_builder_url(): string {
if ( ! class_exists( 'Elementor\App\App' ) ) {
return 'https://go.elementor.com/hello-theme-builder';
}

if ( self::has_pro() ) {
return admin_url( 'admin.php?page=' . App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION ) . '#site-editor';
}

if ( self::is_elementor_active() ) {
return admin_url( 'admin.php?page=' . App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION ) . '#site-editor/promotion';
}

return 'https://go.elementor.com/hello-theme-builder';
}

public static function get_elementor_activation_link(): string {
$plugin = 'elementor/elementor.php';

Expand All @@ -63,21 +41,6 @@ public static function get_elementor_activation_link(): string {
return add_query_arg( '_wpnonce', wp_create_nonce( 'activate-plugin_' . $plugin ), $url );
}

public static function get_plugin_install_url( $plugin_slug ): string {
$action = 'install-plugin';

$url = add_query_arg(
[
'action' => $action,
'plugin' => $plugin_slug,
'referrer' => 'hello-elementor',
],
admin_url( 'update.php' )
);

return add_query_arg( '_wpnonce', wp_create_nonce( $action . '_' . $plugin_slug ), $url );
}

public static function get_action_link_type() {
$installed_plugins = get_plugins();

Expand Down
16 changes: 0 additions & 16 deletions modules/admin-home/assets/js/components/dynamic-icon.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
import React, { useState, useEffect } from 'react';

const componentMap = {
BrandYoutubeIcon: () => import('../icons/youtube.tsx'),
BrandElementorIcon: () => import('../icons/elementor.tsx'),
ThemeBuilderIcon: () => import('@elementor/icons/ThemeBuilderIcon'),
SettingsIcon: () => import('@elementor/icons/SettingsIcon'),
BrandFacebookIcon: () => import('@elementor/icons/BrandFacebookIcon'),
StarIcon: () => import('@elementor/icons/StarIcon'),
HelpIcon: () => import('@elementor/icons/HelpIcon'),
SpeakerphoneIcon: () => import('@elementor/icons/SpeakerphoneIcon'),
TextIcon: () => import('@elementor/icons/TextIcon'),
PhotoIcon: () => import('@elementor/icons/PhotoIcon'),
AppsIcon: () => import('@elementor/icons/AppsIcon'),
BrushIcon: () => import('@elementor/icons/BrushIcon'),
UnderlineIcon: () => import('@elementor/icons/UnderlineIcon'),
PagesIcon: () => import('@elementor/icons/PagesIcon'),
PageTypeIcon: () => import('@elementor/icons/PageTypeIcon'),
HeaderTemplateIcon: () => import('@elementor/icons/HeaderTemplateIcon'),
FooterTemplateIcon: () => import('@elementor/icons/FooterTemplateIcon'),
};

const DynamicIcon = ({ componentName, ...rest }) => {
Expand Down
29 changes: 0 additions & 29 deletions modules/admin-home/assets/js/components/link/link-or-title.js

This file was deleted.

Loading
Loading