Version Description
- General bug fixes in the plugin
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.8 to 1.7.9
- accesspress-social-counter.php +15 -6
- nbproject/private/private.xml +4 -1
- readme.txt +6 -2
accesspress-social-counter.php
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
<?php
|
2 |
|
3 |
defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
|
4 |
/**
|
5 |
* Plugin Name: AccessPress Social Counter
|
6 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
7 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
8 |
-
* Version: 1.7.
|
9 |
* Author: AccessPress Themes
|
10 |
* Author URI: http://accesspressthemes.com
|
11 |
* Text Domain: aps-counter
|
@@ -13,9 +14,11 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
13 |
* Network: false
|
14 |
* License: GPL2
|
15 |
*/
|
|
|
16 |
/**
|
17 |
* Declartion of necessary constants for plugin
|
18 |
* */
|
|
|
19 |
if ( ! defined( 'SC_IMAGE_DIR' ) ) {
|
20 |
define( 'SC_IMAGE_DIR', plugin_dir_url( __FILE__ ) . 'images' );
|
21 |
}
|
@@ -26,7 +29,7 @@ if ( ! defined( 'SC_CSS_DIR' ) ) {
|
|
26 |
define( 'SC_CSS_DIR', plugin_dir_url( __FILE__ ) . 'css' );
|
27 |
}
|
28 |
if ( ! defined( 'SC_VERSION' ) ) {
|
29 |
-
define( 'SC_VERSION', '1.7.
|
30 |
}
|
31 |
if ( ! defined( 'SC_PATH' ) ) {
|
32 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) );
|
@@ -44,6 +47,7 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
44 |
/**
|
45 |
* Initializes the plugin functions
|
46 |
*/
|
|
|
47 |
function __construct(){
|
48 |
$this -> apsc_settings = get_option( 'apsc_settings' );
|
49 |
register_activation_hook( __FILE__, array( $this, 'load_default_settings' ) ); //loads default settings for the plugin while activating the plugin
|
@@ -62,13 +66,15 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
62 |
/**
|
63 |
* Plugin Translation
|
64 |
*/
|
|
|
65 |
function plugin_text_domain(){
|
66 |
load_plugin_textdomain( 'accesspress-social-counter', false, basename( dirname( __FILE__ ) ) . '/languages/' );
|
67 |
}
|
68 |
|
69 |
/**
|
70 |
* Load Default Settings
|
71 |
-
|
|
|
72 |
function load_default_settings(){
|
73 |
if ( ! get_option( 'apsc_settings' ) ) {
|
74 |
$apsc_settings = $this -> get_default_settings();
|
@@ -79,6 +85,7 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
79 |
/**
|
80 |
* Plugin Admin Menu
|
81 |
*/
|
|
|
82 |
function add_sc_menu(){
|
83 |
add_menu_page( __( 'AccessPress Social Counter', 'accesspress-social-counter' ), __( 'AccessPress Social Counter', 'accesspress-social-counter' ), 'manage_options', 'ap-social-counter', array( $this, 'sc_settings' ), SC_IMAGE_DIR . '/sc-icon.png' );
|
84 |
}
|
@@ -86,6 +93,7 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
86 |
/**
|
87 |
* Plugin Main Settings Page
|
88 |
*/
|
|
|
89 |
function sc_settings(){
|
90 |
include('inc/backend/settings.php');
|
91 |
}
|
@@ -93,13 +101,14 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
93 |
/**
|
94 |
* Registering of backend js and css
|
95 |
*/
|
|
|
96 |
function register_admin_assets(){
|
97 |
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'ap-social-counter' ) {
|
98 |
wp_enqueue_style( 'sc-admin-css', SC_CSS_DIR . '/backend.css', array(), SC_VERSION );
|
99 |
wp_enqueue_script( 'sc-admin-js', SC_JS_DIR . '/backend.js', array( 'jquery', 'jquery-ui-sortable' ), SC_VERSION );
|
100 |
-
wp_enqueue_script( 'sc-wpac-time-js', SC_JS_DIR . '/wpac-time.js', array( 'jquery' ),
|
101 |
-
wp_enqueue_script( 'sc-wpac-js', SC_JS_DIR . '/wpac.js', array( 'jquery' ),
|
102 |
-
|
103 |
wp_enqueue_style( 'fontawesome-css', SC_CSS_DIR . '/font-awesome.min.css', false, SC_VERSION );
|
104 |
}
|
105 |
|
1 |
<?php
|
2 |
|
3 |
defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
4 |
+
|
5 |
/**
|
6 |
* Plugin Name: AccessPress Social Counter
|
7 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
8 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
9 |
+
* Version: 1.7.9
|
10 |
* Author: AccessPress Themes
|
11 |
* Author URI: http://accesspressthemes.com
|
12 |
* Text Domain: aps-counter
|
14 |
* Network: false
|
15 |
* License: GPL2
|
16 |
*/
|
17 |
+
|
18 |
/**
|
19 |
* Declartion of necessary constants for plugin
|
20 |
* */
|
21 |
+
|
22 |
if ( ! defined( 'SC_IMAGE_DIR' ) ) {
|
23 |
define( 'SC_IMAGE_DIR', plugin_dir_url( __FILE__ ) . 'images' );
|
24 |
}
|
29 |
define( 'SC_CSS_DIR', plugin_dir_url( __FILE__ ) . 'css' );
|
30 |
}
|
31 |
if ( ! defined( 'SC_VERSION' ) ) {
|
32 |
+
define( 'SC_VERSION', '1.7.9' );
|
33 |
}
|
34 |
if ( ! defined( 'SC_PATH' ) ) {
|
35 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) );
|
47 |
/**
|
48 |
* Initializes the plugin functions
|
49 |
*/
|
50 |
+
|
51 |
function __construct(){
|
52 |
$this -> apsc_settings = get_option( 'apsc_settings' );
|
53 |
register_activation_hook( __FILE__, array( $this, 'load_default_settings' ) ); //loads default settings for the plugin while activating the plugin
|
66 |
/**
|
67 |
* Plugin Translation
|
68 |
*/
|
69 |
+
|
70 |
function plugin_text_domain(){
|
71 |
load_plugin_textdomain( 'accesspress-social-counter', false, basename( dirname( __FILE__ ) ) . '/languages/' );
|
72 |
}
|
73 |
|
74 |
/**
|
75 |
* Load Default Settings
|
76 |
+
**/
|
77 |
+
|
78 |
function load_default_settings(){
|
79 |
if ( ! get_option( 'apsc_settings' ) ) {
|
80 |
$apsc_settings = $this -> get_default_settings();
|
85 |
/**
|
86 |
* Plugin Admin Menu
|
87 |
*/
|
88 |
+
|
89 |
function add_sc_menu(){
|
90 |
add_menu_page( __( 'AccessPress Social Counter', 'accesspress-social-counter' ), __( 'AccessPress Social Counter', 'accesspress-social-counter' ), 'manage_options', 'ap-social-counter', array( $this, 'sc_settings' ), SC_IMAGE_DIR . '/sc-icon.png' );
|
91 |
}
|
93 |
/**
|
94 |
* Plugin Main Settings Page
|
95 |
*/
|
96 |
+
|
97 |
function sc_settings(){
|
98 |
include('inc/backend/settings.php');
|
99 |
}
|
101 |
/**
|
102 |
* Registering of backend js and css
|
103 |
*/
|
104 |
+
|
105 |
function register_admin_assets(){
|
106 |
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'ap-social-counter' ) {
|
107 |
wp_enqueue_style( 'sc-admin-css', SC_CSS_DIR . '/backend.css', array(), SC_VERSION );
|
108 |
wp_enqueue_script( 'sc-admin-js', SC_JS_DIR . '/backend.js', array( 'jquery', 'jquery-ui-sortable' ), SC_VERSION );
|
109 |
+
wp_enqueue_script( 'sc-wpac-time-js', SC_JS_DIR . '/wpac-time.js', array( 'jquery' ), SC_VERSION ); // Third Party API for Facebook followers count
|
110 |
+
wp_enqueue_script( 'sc-wpac-js', SC_JS_DIR . '/wpac.js', array( 'jquery' ), SC_VERSION ); // Third Party API for Facebook followers count
|
111 |
+
}
|
112 |
wp_enqueue_style( 'fontawesome-css', SC_CSS_DIR . '/font-awesome.min.css', false, SC_VERSION );
|
113 |
}
|
114 |
|
nbproject/private/private.xml
CHANGED
@@ -2,6 +2,9 @@
|
|
2 |
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
3 |
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
4 |
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
5 |
-
<group
|
|
|
|
|
|
|
6 |
</open-files>
|
7 |
</project-private>
|
2 |
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
3 |
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
4 |
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
5 |
+
<group>
|
6 |
+
<file>file:/E:/XAMPP/htdocs/accesspress-social-counter/wp-content/plugins/accesspress-social-counter/inc/backend/boards/social-profiles.php</file>
|
7 |
+
<file>file:/E:/XAMPP/htdocs/accesspress-social-counter/wp-content/plugins/accesspress-social-counter/js/backend.js</file>
|
8 |
+
</group>
|
9 |
</open-files>
|
10 |
</project-private>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social count, social counter, social counters, social media counters, soci
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -148,7 +148,11 @@ Once you install the plugin , you can check some general documentation about how
|
|
148 |
5. Backend Cache Settings Section
|
149 |
|
150 |
== Changelog ==
|
151 |
-
|
|
|
|
|
|
|
|
|
152 |
* Addition of third party API to extract Facebook count
|
153 |
* Addition of default count values for all the available networks
|
154 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 1.7.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
148 |
5. Backend Cache Settings Section
|
149 |
|
150 |
== Changelog ==
|
151 |
+
|
152 |
+
= 1.7.9 =
|
153 |
+
* General bug fixes in the plugin
|
154 |
+
|
155 |
+
= 1.7.8 =
|
156 |
* Addition of third party API to extract Facebook count
|
157 |
* Addition of default count values for all the available networks
|
158 |
|