Social Counter for WordPress – AccessPress Social Counter - Version 1.4.1

Version Description

  • Added font and frontend css disabling option
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Counter for WordPress – AccessPress Social Counter
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4.0 to 1.4.1

accesspress-social-counter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AccessPress Social Counter
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
5
  * Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
6
- * Version: 1.4.0
7
  * Author: AccessPress Themes
8
  * Author URI: http://accesspressthemes.com
9
  * Text Domain: aps-counter
@@ -24,7 +24,7 @@ if (!defined('SC_CSS_DIR')) {
24
  define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('SC_VERSION')) {
27
- define('SC_VERSION', '1.4.0');
28
  }
29
  /**
30
  * Register of widgets
@@ -102,8 +102,15 @@ if (!class_exists('SC_Class')) {
102
  * Registers Frontend Assets
103
  * */
104
  function register_frontend_assets() {
105
- wp_enqueue_style('apsc-font-awesome','https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css',array(),SC_VERSION);
 
 
 
 
 
 
106
  wp_enqueue_style('apsc-frontend-css', SC_CSS_DIR . '/frontend.css', array(), SC_VERSION);
 
107
  }
108
 
109
  /**
@@ -160,7 +167,9 @@ if (!class_exists('SC_Class')) {
160
  'profile_order' => array('facebook', 'twitter', 'googlePlus', 'instagram', 'youtube', 'soundcloud', 'dribbble', 'posts', 'comments'),
161
  'social_profile_theme' => 'theme-1',
162
  'counter_format'=>'comma',
163
- 'cache_period' => ''
 
 
164
  );
165
  return $apsc_settings;
166
  }
3
  * Plugin Name: AccessPress Social Counter
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
5
  * Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
6
+ * Version: 1.4.1
7
  * Author: AccessPress Themes
8
  * Author URI: http://accesspressthemes.com
9
  * Text Domain: aps-counter
24
  define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('SC_VERSION')) {
27
+ define('SC_VERSION', '1.4.1');
28
  }
29
  /**
30
  * Register of widgets
102
  * Registers Frontend Assets
103
  * */
104
  function register_frontend_assets() {
105
+ $apsc_settings = $this->apsc_settings;
106
+ $enable_font_css = (isset($apsc_settings['disable_font_css']) && $apsc_settings['disable_font_css']==1)?true:false;
107
+ $enable_frontend_css = (isset($apsc_settings['disable_frontend_css']) && $apsc_settings['disable_frontend_css']==1)?true:false;
108
+ if($enable_font_css){
109
+ wp_enqueue_style('apsc-font-awesome','https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css',array(),SC_VERSION);
110
+ }
111
+ if($enable_frontend_css){
112
  wp_enqueue_style('apsc-frontend-css', SC_CSS_DIR . '/frontend.css', array(), SC_VERSION);
113
+ }
114
  }
115
 
116
  /**
167
  'profile_order' => array('facebook', 'twitter', 'googlePlus', 'instagram', 'youtube', 'soundcloud', 'dribbble', 'posts', 'comments'),
168
  'social_profile_theme' => 'theme-1',
169
  'counter_format'=>'comma',
170
+ 'cache_period' => '',
171
+ 'disable_font_css'=>0,
172
+ 'disable_frontend_css'=>0
173
  );
174
  return $apsc_settings;
175
  }
css/backend.css CHANGED
@@ -743,4 +743,8 @@ padding: 1px 12px;
743
  margin-bottom: 25px;
744
  margin-top: 25px;
745
  line-height:1.75;
 
 
 
 
746
  }
743
  margin-bottom: 25px;
744
  margin-top: 25px;
745
  line-height:1.75;
746
+ }
747
+ .apsc-option-field >label {
748
+ width: 100%;
749
+
750
  }
inc/backend/boards/display-settings.php CHANGED
@@ -67,5 +67,17 @@
67
  </label>
68
  </div>
69
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
70
  </div>
71
  </div>
67
  </label>
68
  </div>
69
  </div>
70
+ <div class="apsc-option-inner-wrapper">
71
+ <label><?php _e('Disable Font CSS','aps-counter');?></label>
72
+ <div class="apsc-option-field">
73
+ <label><input type="checkbox" name="disable_font_css" <?php echo (isset($apsc_settings['disable_font_css']) && $apsc_settings['disable_font_css']==1)?'checked="checked"':'';?>/><span class="apsc-option-trigger"><?php _e('Check if you want to disable the font awesome css of our plugin','aps-counter');?></span> </label>
74
+ </div>
75
+ </div>
76
+ <div class="apsc-option-inner-wrapper">
77
+ <label><?php _e('Disable Frontend CSS','aps-counter');?></label>
78
+ <div class="apsc-option-field">
79
+ <label><input type="checkbox" name="disable_frontend_css" <?php echo (isset($apsc_settings['disable_frontend_css']) && $apsc_settings['disable_frontend_css']==1)?'checked="checked"':'';?>/><span class="apsc-option-trigger"><?php _e('Check if you want to disable all the frontend css of our plugin','aps-counter');?></span> </label>
80
+ </div>
81
+ </div>
82
  </div>
83
  </div>
inc/backend/save-settings.php CHANGED
@@ -82,6 +82,8 @@ $apsc_settings['profile_order'] = $profile_order;
82
  $apsc_settings['cache_period'] = $cache_period;
83
  $apsc_settings['social_profile_theme'] = $social_profile_theme;
84
  $apsc_settings['counter_format'] = $counter_format;
 
 
85
  update_option('apsc_settings', $apsc_settings);
86
  $_SESSION['apsc_message'] = __('Settings Saved Successfully','aps-counter');
87
  wp_redirect(admin_url().'admin.php?page=ap-social-counter');
82
  $apsc_settings['cache_period'] = $cache_period;
83
  $apsc_settings['social_profile_theme'] = $social_profile_theme;
84
  $apsc_settings['counter_format'] = $counter_format;
85
+ $apsc_settings['disable_font_css'] = isset($disable_font_css)?1:0;
86
+ $apsc_settings['disable_frontend_css'] = isset($disable_frontend_css)?1:0;
87
  update_option('apsc_settings', $apsc_settings);
88
  $_SESSION['apsc_message'] = __('Settings Saved Successfully','aps-counter');
89
  wp_redirect(admin_url().'admin.php?page=ap-social-counter');
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: 3.8
6
  Tested up to: 4.3
7
- Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,9 @@ Once you install the plugin , you can check some general documentation about how
125
  5. Backend Cache Settings Section
126
 
127
  == Changelog ==
 
 
 
128
  = 1.4.0 =
129
  * Updated help note for youtube
130
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
+ Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
125
  5. Backend Cache Settings Section
126
 
127
  == Changelog ==
128
+ = 1.4.1 =
129
+ * Added font and frontend css disabling option
130
+
131
  = 1.4.0 =
132
  * Updated help note for youtube
133