PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 6.2.1
پارسی دیت – Parsi Date v6.2.1
6.2.1 6.2 6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / inc / App / Integration / Elementor.php
wp-parsidate / inc / App / Integration Last commit date
ACF 3 weeks ago WooCommerce 3 weeks ago ACF.php 3 weeks ago BulkyBulkEditProductsWooCommerce.php 3 weeks ago EDD.php 3 weeks ago Elementor.php 3 weeks ago Formello.php 3 weeks ago Integration.php 3 weeks ago JetEngine.php 3 weeks ago LimitLoginAttempts.php 3 weeks ago MonsterInsights.php 3 weeks ago RankMath.php 3 weeks ago SchemaPro.php 3 weeks ago UltimateMember.php 3 weeks ago WooCommerce.php 3 weeks ago
Elementor.php
58 lines
1 <?php
2 /**
3 * Makes Elementor compatible with WP-Parsidate plugin
4 *
5 * @package WP-Parsidate
6 * @subpackage Plugins/Elementor
7 */
8
9 namespace WPParsidate\App\Integration;
10
11 defined( 'ABSPATH' ) || exit;
12
13 use WPParsidate\Addons\Addon;
14
15 class Elementor extends Addon {
16 public string $addonID = 'elementor';
17
18 public function initAction(): void {
19 add_action( "elementor/editor/after_enqueue_styles", [ $this, 'fixEditorStyle' ] );
20 }
21
22 public function fixEditorStyle(): void {
23 $wpp_elementor_css = "
24 body, .tipsy-inner, .elementor-button, .elementor-panel {
25 font-family: Tahoma,Arial,Helvetica,Verdana,sans-serif;
26 }
27 .tipsy-inner {
28 font-size: small;
29 }";
30 $wpp_elementor_css = apply_filters( "wpp_elementor_css", $wpp_elementor_css );
31 wp_add_inline_style( "elementor-editor", $wpp_elementor_css );
32 }
33
34 public function info(): array {
35 $svg = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100"><path fill="#010051" d="M50 0C22.383 0 0 22.383 0 50c0 27.608 22.383 50 50 50s50-22.383 50-50C99.99 22.383 77.608 0 50 0M37.502 70.827h-8.329V29.164h8.33zm33.324 0H45.831v-8.33h24.995zm0-16.667H45.831V45.83h24.995zm0-16.667H45.831v-8.329h24.995z"/></svg>';
36
37 return array(
38 'id' => $this->addonID,
39 'title' => esc_html__( 'Elementor', 'wp-parsidate' ),
40 'desc' => esc_html__( 'ParsiDate integration for Elementor', 'wp-parsidate' ),
41 'force_enable' => false,
42 'icon' => $svg,
43 'image_link' => 'https://wordpress.org/plugins/elementor/',
44 'tags' => [ esc_html__( 'Elementor', 'wp-parsidate' ) ],
45 'cat' => 'integration',
46 'settings_key' => $this->addonID,
47 'requires_plugins' => [
48 'elementor/elementor.php' => array(
49 'is_wp_plugin' => true,
50 'is_free' => true,
51 'plugin_link' => 'https://wordpress.org/plugins/elementor/',
52 'define_check' => 'ELEMENTOR_PLUGIN_BASE'
53 )
54 ]
55 );
56 }
57 }
58