date("Y-m-d") ? 'Limited Offer: Unlimited Sites Lifetime License.':"";
$image = '
';
$user = wp_get_current_user();
if ( in_array( 'administrator', (array) $user->roles ) ) {
echo '
';
}
}
add_action('admin_notices', 'ecs_admin_notice');
function ele_custom_skin_notice_dismissed() {
$user_id = get_current_user_id();
if ( isset( $_GET['ele_custom_skin_notice_dismissed'] ) )
add_user_meta( $user_id, 'ele_custom_skin_notice_dismissed', 'true', true );
}
add_action( 'admin_init', 'ele_custom_skin_notice_dismissed' );
add_filter( 'plugin_row_meta', 'ele_custom_skin_row_meta', 10, 2 );
function ele_custom_skin_row_meta( $links, $file ) {
if (ELECS_NAME == $file ) {
$row_meta = array(
'video' => '' . esc_html__( 'Video Tutorial', 'ele-custom-skin' ) . ''
);
return array_merge( $links, $row_meta );
}
return (array) $links;
}
function elecs_action_links( $links ) {
$links = array_merge($links, array(
'' . __( 'Add Loop Template', 'ele-custom-skin' ) . '',
));
if (!function_exists('ele_custom_skin_pro')) $links = array_merge($links, array(
'' . esc_html__( 'Go Pro', 'ele-custom-skin' ) . ''
));
return $links;
}
add_action( 'plugin_action_links_' . ELECS_NAME, 'elecs_action_links' );
/*
*
* Pro features preview
*
*/
if(!function_exists('ele_custom_skin_pro')){
require_once ELECS_DIR.'includes/pro-preview.php';
}