PluginProbe ʕ •ᴥ•ʔ
ECS – Ele Custom Skin for Elementor / 4.3.6
ECS – Ele Custom Skin for Elementor v4.3.6
4.3.6 4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.11 4.1.10 4.1.9 4.1.8 4.1.6 4.1.7 4.1.5 4.1.4 4.1.1 4.1.2 trunk 1.0.0 1.0.1 1.0.9 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.4 1.2.5 1.3.10 1.3.11 1.3.3 1.3.4 1.3.6 1.3.7 1.3.9 1.4.0 2.0.2 2.1.0 2.2.0 2.2.1 2.2.2 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 4.1.0
ele-custom-skin / includes / pro-features.php
ele-custom-skin / includes Last commit date
admin-bar-menu.php 3 years ago ajax-pagination.php 2 years ago class-ecs-core.php 2 months ago class-ecs-module-base.php 1 month ago class-ecs-modules-manager.php 2 months ago dynamic-style.php 3 years ago ecs-dependencies.php 6 years ago ecs-notices.php 6 years ago enqueue-styles.php 2 years ago pro-features.php 2 months ago pro-preview.php 6 years ago
pro-features.php
61 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
4 /*
5 *
6 * Plugin notices and links
7 *
8 */
9
10 function ecs_admin_notice(){
11 if ( defined( 'ELECSP_VER' ) ) return;
12 $user_id = get_current_user_id();
13 if (get_user_meta( $user_id, 'ele_custom_skin_notice_dismissed' )) return;
14 $offer = '2019-10-10' > date("Y-m-d") ? 'Limited Offer: <b style="color:red;">Unlimited Sites Lifetime License</b>.':"";
15 $image = '<img width="30px" src="'.ELECS_URL . 'assets/dudaster_icon.png" style="width:32px;margin-right:10px;margin-bottom: -11px;"/>';
16 $user = wp_get_current_user();
17 if ( in_array( 'administrator', (array) $user->roles ) ) {
18 echo '<div class="notice notice-info " style="padding-right: 38px; position: relative;">
19 <p> '.$image.' Ele Custom Skin <b>PRO</b> is out <a href="https://dudaster.com/ecs-pro/" target="_blank">Check it out!</a>. '.$offer.' <a class="button button-primary" style="margin-left:20px;" href="https://dudaster.com/ecs-pro/" target="_blank">Get it now!</a></p>
20 <a href="?ele_custom_skin_notice_dismissed"><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></a>
21 </div>';
22 }
23 }
24 add_action('admin_notices', 'ecs_admin_notice');
25
26 function ele_custom_skin_notice_dismissed() {
27 $user_id = get_current_user_id();
28 if ( isset( $_GET['ele_custom_skin_notice_dismissed'] ) )
29 add_user_meta( $user_id, 'ele_custom_skin_notice_dismissed', 'true', true );
30 }
31 add_action( 'admin_init', 'ele_custom_skin_notice_dismissed' );
32
33 add_filter( 'plugin_row_meta', 'ele_custom_skin_row_meta', 10, 2 );
34 function ele_custom_skin_row_meta( $links, $file ) {
35 if (ELECS_NAME == $file ) {
36 $row_meta = array(
37 'video' => '<a href="' . esc_url( 'https://www.youtube.com/watch?v=DwLFdaZ69KU&feature=youtu.be&t=94' ) . '" target="_blank" aria-label="' . esc_attr__( 'Video Tutorial', 'ele-custom-skin' ) . '" >' . esc_html__( 'Video Tutorial', 'ele-custom-skin' ) . '</a>'
38 );
39
40 return array_merge( $links, $row_meta );
41 }
42 return (array) $links;
43 }
44
45 function elecs_action_links( $links ) {
46 if ( ! defined( 'ELECSP_VER' ) ) {
47 $links[] = '<a href="' . esc_url( 'https://dudaster.com/ecs-pro/' ) . '" target="_blank" aria-label="' . esc_attr__( 'Go Pro', 'ele-custom-skin' ) . '" style="color:#39b54a;font-weight:bold;">' . esc_html__( 'Go Pro', 'ele-custom-skin' ) . '</a>';
48 }
49 return $links;
50 }
51 add_action( 'plugin_action_links_' . ELECS_NAME, 'elecs_action_links' );
52
53 /*
54 *
55 * Pro features preview
56 *
57 */
58
59 if ( ! defined( 'ELECSP_VER' ) ) {
60 require_once ELECS_DIR . 'includes/pro-preview.php';
61 }