💎 PREMIUM: Changeset/ - Uncensored 2025

Changeset 3252922


Ignore:
Timestamp:
03/09/2025 07:00:52 PM (10 months ago)
Author:
shiponkarmakar
Message:

2.0.0

Location:
shareme
Files:
26 added
2 edited

Legend:

Unmodified
Added
Removed
  • shareme/trunk/readme.txt

    r3252906 r3252922  
    44Requires at least: 5.0
    55Tested up to: 6.7.2
    6 Stable tag: 1.3.0
     6Stable tag: 2.0.0
    77Requires PHP: 7.2
    88License: GPL v2 or later
  • shareme/trunk/shareme.php

    r3252899 r3252922  
    44 * Plugin URI:        https://wordpress.org/plugins/shareme
    55 * Description:       ShareMe Plugin for Social Share, Grow your followers, increase your social shares!
    6  * Version:           1.3.0
     6 * Version:           2.0.0
    77 * Author:            Shipon Karmakar
    88 * Author URI:        https://shiponkarmakar.com
     
    1818 */
    1919
    20  // If this file is called firectily, abort!!
    21 defined( 'ABSPATH' ) or ( 'Hey, What are you doing here? you silly human!' );
    22 
     20// If this file is called directly, abort!!
     21defined( 'ABSPATH' ) or die( 'Hey, What are you doing here? you silly human!' );
    2322
    2423define( 'SHAREME_URL', trailingslashit( plugins_url('/', __FILE__) ) );
    2524define( 'SHAREME_PATH', trailingslashit( plugin_dir_path(__FILE__) ) );
    2625
    27 
    2826// i18n Text Domain
    2927if ( ! function_exists( 'shareme_i18n' ) ){
    30     function shareme_i18n() {
    31         load_plugin_textdomain( 'eladdon', false, dirname( plugin_basename( __FILE__ ) ). '/languages' );
    32     }
    33     add_action( 'init', 'shareme_i18n' );
    34 }
    35 
     28    function shareme_i18n() {
     29        load_plugin_textdomain( 'shareme', false, dirname( plugin_basename( __FILE__ ) ). '/languages' );
     30    }
     31    add_action( 'init', 'shareme_i18n' );
     32}
    3633
    3734/**
    3835 * Scripts and styles
    39 */
     36 */
    4037if ( ! function_exists( 'shareme_scripts_styles' ) ){
    41     function shareme_scripts_styles() {
    42         wp_register_style( 'shareme-style', SHAREME_URL . 'assets/css/style.css' );
    43    
    44         wp_enqueue_style('shareme-style');
    45     }
    46     add_action( 'wp_enqueue_scripts', 'shareme_scripts_styles' );
     38    function shareme_scripts_styles() {
     39        wp_register_style( 'shareme-style', SHAREME_URL . 'assets/css/style.css' );
     40        wp_enqueue_style('shareme-style');
     41    }
     42    add_action( 'wp_enqueue_scripts', 'shareme_scripts_styles' );
     43}
     44
     45/**
     46 * Admin scripts and styles
     47 */
     48if ( ! function_exists( 'shareme_admin_scripts_styles' ) ){
     49    function shareme_admin_scripts_styles($hook) {
     50        if('settings_page_shareme-settings' != $hook) {
     51            return;
     52