Social Icons WordPress Plugin – AccessPress Social Icons - Version 1.7.4

Version Description

  • Changed Upgrade to pro banner image on backend.
  • How to use and about us page maded translation ready.
  • Removed GooglePlus display on backend and frontend from code since it has been deprecated.
  • Fixed Page index error message shown on backend.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Icons WordPress Plugin – AccessPress Social Icons
Version 1.7.4
Comparing to
See all releases

Code changes from version 1.7.3 to 1.7.4

accesspress-social-icons.php CHANGED
@@ -1,10 +1,9 @@
1
- <?php
2
- defined('ABSPATH') or die("No script kiddies please!");
3
  /**
4
- * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
- * Version: 1.7.3
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: accesspress-social-icons
@@ -33,7 +32,7 @@ if (!class_exists('APS_Class')) {
33
  add_action('admin_post_aps_delete_action', array($this, 'aps_delete_action')); //icon set delete action
34
  add_action('admin_post_aps_copy_action', array($this, 'aps_copy_action')); //icon set copy action
35
  add_shortcode('aps-social', array($this, 'aps_social_shortcode')); //adds the aps-social shortcode
36
- add_action('wp_ajax_aps_icon_list_action', array($this, 'aps_icon_list_action')); //admin ajax action for icon listing
37
  add_action('wp_ajax_nopriv_aps_icon_list_action', array($this, 'no_permission')); //action for unauthenticate admin ajax call
38
  add_action('wp_ajax_get_theme_icons', array($this, 'get_theme_icons')); //admin ajax for getting theme icons
39
  add_action('wp_ajax_nopriv_get_theme_icons', array($this, 'no_permission')); //ajax action for unathenticate admin ajax call
@@ -43,25 +42,25 @@ if (!class_exists('APS_Class')) {
43
  add_action( 'admin_init', array( $this, 'redirect_to_site' ), 1 );
44
  add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
45
  add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
46
-
47
  }
48
 
49
  function admin_footer_text( $text ){
50
- if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-social'
51
- || $_GET[ 'page' ] == 'aps-social-add' || $_GET[ 'page' ] == 'aps-about' || $_GET[ 'page' ] == 'aps-social-how-to-use'
52
- || $_GET[ 'page' ] == 'aps-more-wp-resources' || $_GET[ 'page' ] == 'aps-social-how-to-use') {
53
- $link = 'https://wordpress.org/support/plugin/accesspress-social-icons/reviews/#new-post';
54
- $pro_link = 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839';
55
- $text = 'Enjoyed AccessPress Social Icons? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">AccessPress Social Icons Pro</a> - more features, more power!';
56
- return $text;
57
- } else {
58
- return $text;
59
  }
 
 
60
  }
61
 
62
  function redirect_to_site(){
63
  if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-doclinks' ) {
64
- wp_redirect( 'https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/' );
65
  exit();
66
  }
67
  if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-premium' ) {
@@ -74,7 +73,7 @@ if (!class_exists('APS_Class')) {
74
  if ( strpos( $file, 'accesspress-social-icons.php' ) !== false ) {
75
  $new_links = array(
76
  'demo' => '<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
77
- 'doc' => '<a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
78
  'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
79
  'pro' => '<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
80
  );
@@ -83,17 +82,17 @@ if (!class_exists('APS_Class')) {
83
  return $links;
84
  }
85
 
86
-
87
  /**
88
  * Declartion of necessary constants for plugin
89
- *
90
  * Previously declare outside the class
91
- *
92
  * @since 1.6.3
93
- *
94
- * */
95
  function define_constants(){
96
-
97
  if (!defined('APS_IMAGE_DIR')) {
98
  define('APS_IMAGE_DIR', plugin_dir_url(__FILE__) . 'images');
99
  }
@@ -103,36 +102,36 @@ if (!class_exists('APS_Class')) {
103
  if (!defined('APS_CSS_DIR')) {
104
  define('APS_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
105
  }
106
-
107
  /**
108
  * @since 1.5.3
109
- *
110
  * */
111
  defined('APSI_PLUGIN_URL') or define('APSI_PLUGIN_URL',plugin_dir_url(__FILE__));
112
-
113
  if (!defined('APS_ICONS_DIR')) {
114
  /**
115
  * apsi_icons_sets_directory filter
116
- *
117
  * since @1.5.2
118
- *
119
  * Can be hooked to change http to https
120
- *
121
  * */
122
- define('APS_ICONS_DIR', apply_filters('apsi_icon_sets_directory',plugin_dir_url(__FILE__) . 'icon-sets'));
123
  }
124
  if (!defined('APS_LANG_DIR')) {
125
  define('APS_LANG_DIR', basename( dirname( __FILE__ ) ) . '/languages');
126
  }
127
  if(!defined('APS_VERSION'))
128
  {
129
- define('APS_VERSION','1.7.3');
130
  }
131
  }
132
 
133
  //called when plugin is activated
134
  function plugin_activation() {
135
- include_once('inc/backend/activation.php');
136
  }
137
 
138
  //loads the text domain for translation
@@ -161,7 +160,7 @@ if (!class_exists('APS_Class')) {
161
  function add_new_set() {
162
  include_once('inc/backend/add-new-set.php');
163
  }
164
-
165
  function wp_resources(){
166
  include_once('inc/backend/wp-resources.php');
167
  }
@@ -188,13 +187,13 @@ if (!class_exists('APS_Class')) {
188
  wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css',false,APS_VERSION); //animate.css library
189
  wp_enqueue_style('thickbox'); //for including wp thickbox css
190
  wp_enqueue_style('wp-color-picker'); //for including color picker css
191
-
192
 
193
  /**
194
  * Backend JS
195
  * */
196
  wp_enqueue_script('media-upload'); //for uploading image using wp native uploader
197
- wp_enqueue_script('thickbox'); //for uploading image using wp native uploader + thickbox
198
  wp_enqueue_script('aps-admin-js', APS_JS_DIR . '/backend.js', array('jquery', 'jquery-ui-sortable', 'wp-color-picker'),APS_VERSION);//registering plugin's admin js
199
  wp_localize_script('aps-admin-js', 'aps_script_variable', $aps_script_variable); //localization of php variable in aps-admin-js
200
  }
@@ -207,11 +206,11 @@ if (!class_exists('APS_Class')) {
207
  * */
208
  wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css',false,APS_VERSION);//registering animate.css
209
  wp_enqueue_style('aps-frontend-css', APS_CSS_DIR . '/frontend.css',false,APS_VERSION); //registering frontend css
210
-
211
  /**
212
  * Frontend JS
213
  * */
214
- wp_enqueue_script('aps-frontend-js', APS_JS_DIR . '/frontend.js', array('jquery'),APS_VERSION);//registering frontend js
215
  }
216
 
217
  //action to save the set in db
@@ -230,7 +229,7 @@ if (!class_exists('APS_Class')) {
230
  echo "</pre>";
231
  }
232
 
233
-
234
 
235
  //Icon set delete section
236
  function aps_delete_action() {
@@ -248,7 +247,7 @@ if (!class_exists('APS_Class')) {
248
  die('No script kiddies please!');
249
  }
250
  }
251
-
252
 
253
  //Icon set edit action
254
  function aps_edit_action() {
@@ -260,8 +259,8 @@ if (!class_exists('APS_Class')) {
260
  }
261
  }
262
 
263
-
264
-
265
 
266
  //shortcode function
267
  function aps_social_shortcode($atts) {
@@ -275,11 +274,11 @@ if (!class_exists('APS_Class')) {
275
  }
276
  }
277
 
278
- //lists the available icons
279
  function aps_icon_list_action() {
280
  if (wp_verify_nonce($_POST['_wpnonce'], 'aps-ajax-nonce')) {
281
  $plugin_path = plugin_dir_path(__FILE__);
282
-
283
  for ($i = 1; $i <= 12; $i++) {
284
  $icon_set_image_array = array();
285
  ?>
@@ -296,7 +295,7 @@ if (!class_exists('APS_Class')) {
296
  $icon_set_image_array[] = $file;
297
 
298
 
299
-
300
  }//if close
301
  }//while close
302
  if (count($icon_set_image_array) > 0) {
@@ -316,7 +315,7 @@ if (!class_exists('APS_Class')) {
316
  <?php
317
  }
318
  }
319
-
320
  ?>
321
  </div>
322
  </div><!--aps-set-wrapper-->
@@ -357,13 +356,15 @@ if (!class_exists('APS_Class')) {
357
  $filename = ucfirst($filename_array[0]);
358
  if($_POST['url_only']=='yes')
359
  {
360
- $image_url_array[$filename] = APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file;
361
  }
362
  else
363
  {
364
- include('inc/backend/theme-icon-set.php');
 
 
365
  }
366
-
367
  }
368
  if($_POST['url_only']=='yes')
369
  {
@@ -414,24 +415,24 @@ if (!class_exists('APS_Class')) {
414
  }
415
  return $counter;
416
  }
417
-
418
  //about section
419
  function about()
420
  {
421
  include('inc/backend/about.php');
422
  }
423
-
424
  //how to use section
425
  function how_to_use()
426
  {
427
  include('inc/backend/how-to-use.php');
428
  }
429
-
430
  /**
431
  * @since 1.5.3
432
- *
433
  * Checks the URL of the image and matches with current site URL
434
- *
435
  * */
436
  function check_url($image_url){
437
  if (strpos($image_url, '/icon-sets/') !== false){
@@ -440,19 +441,15 @@ if (!class_exists('APS_Class')) {
440
  //echo $image_url_array[1];
441
  $actual_image_url = $plugin_icon_url.'/'.$image_url_array[1];
442
  return $actual_image_url;
443
-
444
  }else{
445
  return $image_url;
446
  }
447
-
448
-
449
  }
450
 
451
  }
452
-
453
  //APS_Class termination
454
-
455
  $aps_object = new APS_Class();
456
  }// class exists condition check
457
-
458
-
1
+ <?php defined('ABSPATH') or die("No script kiddies please!");
 
2
  /**
3
+ * Plugin Name: AccessPress Social Icons
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
5
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
6
+ * Version: 1.7.4
7
  * Author:AccessPress Themes
8
  * Author URI:http://accesspressthemes.com/
9
  * Text Domain: accesspress-social-icons
32
  add_action('admin_post_aps_delete_action', array($this, 'aps_delete_action')); //icon set delete action
33
  add_action('admin_post_aps_copy_action', array($this, 'aps_copy_action')); //icon set copy action
34
  add_shortcode('aps-social', array($this, 'aps_social_shortcode')); //adds the aps-social shortcode
35
+ add_action('wp_ajax_aps_icon_list_action', array($this, 'aps_icon_list_action')); //admin ajax action for icon listing
36
  add_action('wp_ajax_nopriv_aps_icon_list_action', array($this, 'no_permission')); //action for unauthenticate admin ajax call
37
  add_action('wp_ajax_get_theme_icons', array($this, 'get_theme_icons')); //admin ajax for getting theme icons
38
  add_action('wp_ajax_nopriv_get_theme_icons', array($this, 'no_permission')); //ajax action for unathenticate admin ajax call
42
  add_action( 'admin_init', array( $this, 'redirect_to_site' ), 1 );
43
  add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
44
  add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
45
+
46
  }
47
 
48
  function admin_footer_text( $text ){
49
+ $link = 'https://wordpress.org/support/plugin/accesspress-social-icons/reviews/#new-post';
50
+ $pro_link = 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839';
51
+ if(isset( $_GET[ 'page' ] )){
52
+ if($_GET[ 'page' ] == 'aps-social-add' || $_GET[ 'page' ] == 'aps-social' ||
53
+ $_GET[ 'page' ] == 'aps-about' || $_GET[ 'page' ] == 'aps-social-how-to-use'
54
+ || $_GET[ 'page' ] == 'aps-more-wp-resources' || $_GET[ 'page' ] == 'aps-social-how-to-use'){
55
+ $text = 'Enjoyed AccessPress Social Icons? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">AccessPress Social Icons Pro</a> - more features, more power!';
 
 
56
  }
57
+ }
58
+ return $text;
59
  }
60
 
61
  function redirect_to_site(){
62
  if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-doclinks' ) {
63
+ wp_redirect( 'https://accesspressthemes.com/documentation/accesspress-social-icons/' );
64
  exit();
65
  }
66
  if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-premium' ) {
73
  if ( strpos( $file, 'accesspress-social-icons.php' ) !== false ) {
74
  $new_links = array(
75
  'demo' => '<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
76
+ 'doc' => '<a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
77
  'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
78
  'pro' => '<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
79
  );
82
  return $links;
83
  }
84
 
85
+
86
  /**
87
  * Declartion of necessary constants for plugin
88
+ *
89
  * Previously declare outside the class
90
+ *
91
  * @since 1.6.3
92
+ *
93
+ * */
94
  function define_constants(){
95
+
96
  if (!defined('APS_IMAGE_DIR')) {
97
  define('APS_IMAGE_DIR', plugin_dir_url(__FILE__) . 'images');
98
  }
102
  if (!defined('APS_CSS_DIR')) {
103
  define('APS_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
104
  }
105
+
106
  /**
107
  * @since 1.5.3
108
+ *
109
  * */
110
  defined('APSI_PLUGIN_URL') or define('APSI_PLUGIN_URL',plugin_dir_url(__FILE__));
111
+
112
  if (!defined('APS_ICONS_DIR')) {
113
  /**
114
  * apsi_icons_sets_directory filter
115
+ *
116
  * since @1.5.2
117
+ *
118
  * Can be hooked to change http to https
119
+ *
120
  * */
121
+ define('APS_ICONS_DIR', apply_filters('apsi_icon_sets_directory',plugin_dir_url(__FILE__) . 'icon-sets'));
122
  }
123
  if (!defined('APS_LANG_DIR')) {
124
  define('APS_LANG_DIR', basename( dirname( __FILE__ ) ) . '/languages');
125
  }
126
  if(!defined('APS_VERSION'))
127
  {
128
+ define('APS_VERSION','1.7.4');
129
  }
130
  }
131
 
132
  //called when plugin is activated
133
  function plugin_activation() {
134
+ include('inc/backend/activation.php');
135
  }
136
 
137
  //loads the text domain for translation
160
  function add_new_set() {
161
  include_once('inc/backend/add-new-set.php');
162
  }
163
+
164
  function wp_resources(){
165
  include_once('inc/backend/wp-resources.php');
166
  }
187
  wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css',false,APS_VERSION); //animate.css library
188
  wp_enqueue_style('thickbox'); //for including wp thickbox css
189
  wp_enqueue_style('wp-color-picker'); //for including color picker css
190
+
191
 
192
  /**
193
  * Backend JS
194
  * */
195
  wp_enqueue_script('media-upload'); //for uploading image using wp native uploader
196
+ wp_enqueue_script('thickbox'); //for uploading image using wp native uploader + thickbox
197
  wp_enqueue_script('aps-admin-js', APS_JS_DIR . '/backend.js', array('jquery', 'jquery-ui-sortable', 'wp-color-picker'),APS_VERSION);//registering plugin's admin js
198
  wp_localize_script('aps-admin-js', 'aps_script_variable', $aps_script_variable); //localization of php variable in aps-admin-js
199
  }
206
  * */
207
  wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css',false,APS_VERSION);//registering animate.css
208
  wp_enqueue_style('aps-frontend-css', APS_CSS_DIR . '/frontend.css',false,APS_VERSION); //registering frontend css
209
+
210
  /**
211
  * Frontend JS
212
  * */
213
+ wp_enqueue_script('aps-frontend-js', APS_JS_DIR . '/frontend.js', array('jquery'),APS_VERSION);//registering frontend js
214
  }
215
 
216
  //action to save the set in db
229
  echo "</pre>";
230
  }
231
 
232
+
233
 
234
  //Icon set delete section
235
  function aps_delete_action() {
247
  die('No script kiddies please!');
248
  }
249
  }
250
+
251
 
252
  //Icon set edit action
253
  function aps_edit_action() {
259
  }
260
  }
261
 
262
+
263
+
264
 
265
  //shortcode function
266
  function aps_social_shortcode($atts) {
274
  }
275
  }
276
 
277
+ //lists the available icons
278
  function aps_icon_list_action() {
279
  if (wp_verify_nonce($_POST['_wpnonce'], 'aps-ajax-nonce')) {
280
  $plugin_path = plugin_dir_path(__FILE__);
281
+
282
  for ($i = 1; $i <= 12; $i++) {
283
  $icon_set_image_array = array();
284
  ?>
295
  $icon_set_image_array[] = $file;
296
 
297
 
298
+
299
  }//if close
300
  }//while close
301
  if (count($icon_set_image_array) > 0) {
315
  <?php
316
  }
317
  }
318
+
319
  ?>
320
  </div>
321
  </div><!--aps-set-wrapper-->
356
  $filename = ucfirst($filename_array[0]);
357
  if($_POST['url_only']=='yes')
358
  {
359
+ $image_url_array[$filename] = APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file;
360
  }
361
  else
362
  {
363
+ if($filename != 'GooglePlus'){
364
+ include('inc/backend/theme-icon-set.php');
365
+ }
366
  }
367
+
368
  }
369
  if($_POST['url_only']=='yes')
370
  {
415
  }
416
  return $counter;
417
  }
418
+
419
  //about section
420
  function about()
421
  {
422
  include('inc/backend/about.php');
423
  }
424
+
425
  //how to use section
426
  function how_to_use()
427
  {
428
  include('inc/backend/how-to-use.php');
429
  }
430
+
431
  /**
432
  * @since 1.5.3
433
+ *
434
  * Checks the URL of the image and matches with current site URL
435
+ *
436
  * */
437
  function check_url($image_url){
438
  if (strpos($image_url, '/icon-sets/') !== false){
441
  //echo $image_url_array[1];
442
  $actual_image_url = $plugin_icon_url.'/'.$image_url_array[1];
443
  return $actual_image_url;
444
+
445
  }else{
446
  return $image_url;
447
  }
448
+
449
+
450
  }
451
 
452
  }
 
453
  //APS_Class termination
 
454
  $aps_object = new APS_Class();
455
  }// class exists condition check
 
 
css/backend.css CHANGED
@@ -102,8 +102,8 @@
102
  margin-top:20px;
103
  }
104
  .aps-panel-head{
105
- background: #B8BA7C;
106
- border-bottom: 5px solid #818348;
107
  padding:10px;
108
  color:#353535;
109
  -webkit-border-radius: 4px 4px 0 0;
@@ -247,7 +247,7 @@
247
  -moz-box-shadow:0 0 5px 1px rgba(0,0,0,0.4);
248
  color: #fff;
249
  border: 3px solid #fff;
250
-
251
  }
252
  .aps-close-font:hover{
253
  background:#111;
@@ -287,7 +287,7 @@
287
  padding:15px;
288
  display:block;
289
  text-align: center;
290
-
291
  margin: 0 auto;
292
  }
293
  .aps-set-image-wrapper{
@@ -497,8 +497,10 @@ div.aps-message{
497
  text-align:center;
498
  }
499
  .aps-panel-head .aps-col-socials{
500
- width:40%;
501
- text-align:center;
 
 
502
  }
503
  .aps-panel-head .aps-col-title{
504
  width:35%;
@@ -601,7 +603,7 @@ div.aps-message{
601
  width:16px !important;
602
  height:16px !important;
603
  }
604
-
605
  .form-wrap .label-inline{
606
  margin-bottom:10px;
607
  }
102
  margin-top:20px;
103
  }
104
  .aps-panel-head{
105
+ background: #ffba00;
106
+ border-bottom: 5px solid #fb9015;
107
  padding:10px;
108
  color:#353535;
109
  -webkit-border-radius: 4px 4px 0 0;
247
  -moz-box-shadow:0 0 5px 1px rgba(0,0,0,0.4);
248
  color: #fff;
249
  border: 3px solid #fff;
250
+
251
  }
252
  .aps-close-font:hover{
253
  background:#111;
287
  padding:15px;
288
  display:block;
289
  text-align: center;
290
+
291
  margin: 0 auto;
292
  }
293
  .aps-set-image-wrapper{
497
  text-align:center;
498
  }
499
  .aps-panel-head .aps-col-socials{
500
+ float:right;
501
+ }
502
+ .aps-panel-head .aps-col-socials p{
503
+ color: #ffffff;
504
  }
505
  .aps-panel-head .aps-col-title{
506
  width:35%;
603
  width:16px !important;
604
  height:16px !important;
605
  }
606
+
607
  .form-wrap .label-inline{
608
  margin-bottom:10px;
609
  }
images/{accesspress-social-icons-pro.jpg → accesspress-social-icons-pro-old.jpg} RENAMED
File without changes
images/{accesspress-social-icons-pro-upgrade.jpg → accesspress-social-icons-pro-upgrade-old.jpg} RENAMED
File without changes
images/accesspress-social-icons-pro-upgrade.png ADDED
Binary file
images/accesspress-social-icons-pro.png ADDED
Binary file
inc/backend/about.php CHANGED
@@ -20,7 +20,7 @@
20
  <div class="halfseperator"></div>
21
  <p><strong>Plugin documentation can be found here:</strong>
22
  <br />
23
- <a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/" target="_blank">Visit Documentation Page</a>
24
  </p>
25
  <div class="halfseperator"></div>
26
  <p><strong>If you'd like to buy premium version of this plugin please check here:</strong>
@@ -58,16 +58,16 @@
58
  </div>
59
  </div>
60
  </div>
61
-
62
-
63
-
64
  <div class="aps-col-one-third">
65
  <div class="product">
66
  <div class="logo-product">
67
  <a href="http://accesspressthemes.com/contact/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/customize.png" /></a>
68
  </div>
69
  <div class="productext">
70
- <p><strong>WordPress Customization</strong>
71
  <br />
72
  <a href="http://accesspressthemes.com/contact/" target="_blank">http://accesspressthemes.com/wordpress-plugins/contact/</a>
73
  </p>
@@ -75,8 +75,8 @@
75
  </div>
76
  </div>
77
  </div>
78
-
79
-
80
 
81
  <hr />
82
  <h3>Get in touch</h3>
@@ -97,12 +97,10 @@
97
 
98
  <p><strong>Like us on facebook:</strong>
99
  <br />
100
- <iframe style="border: none; overflow: hidden; width: 250px; height: 250px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width=842&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=true&amp;appId=1411139805828592" width="240" height="150" frameborder="0" scrolling="no"></iframe>
101
  </p>
102
 
103
  <ul class="aps-about-social-icon aps-unstyled aps-inlinelist">
104
- <li><a href="https://plus.google.com/u/0/+Accesspressthemesprofile/about" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/googleplus.png" alt="google+"></a>
105
- </li>
106
  <li><a href="http://www.pinterest.com/accesspresswp/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/pinterest.png" alt="pinterest"></a>
107
  </li>
108
  <li><a href="https://www.flickr.com/photos/accesspressthemes/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/flicker.png" alt="flicker"></a>
@@ -116,4 +114,4 @@
116
  </div>
117
  </div>
118
  <?php include_once('promobar.php'); ?>
119
- </div>
20
  <div class="halfseperator"></div>
21
  <p><strong>Plugin documentation can be found here:</strong>
22
  <br />
23
+ <a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank">Visit Documentation Page</a>
24
  </p>
25
  <div class="halfseperator"></div>
26
  <p><strong>If you'd like to buy premium version of this plugin please check here:</strong>
58
  </div>
59
  </div>
60
  </div>
61
+
62
+
63
+
64
  <div class="aps-col-one-third">
65
  <div class="product">
66
  <div class="logo-product">
67
  <a href="http://accesspressthemes.com/contact/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/customize.png" /></a>
68
  </div>
69
  <div class="productext">
70
+ <p><strong>WordPress Customization</strong>
71
  <br />
72
  <a href="http://accesspressthemes.com/contact/" target="_blank">http://accesspressthemes.com/wordpress-plugins/contact/</a>
73
  </p>
75
  </div>
76
  </div>
77
  </div>
78
+
79
+
80
 
81
  <hr />
82
  <h3>Get in touch</h3>
97
 
98
  <p><strong>Like us on facebook:</strong>
99
  <br />
100
+ <iframe style="border: none; overflow: hidden; width: 942px; height: 250px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width=942&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=true&amp;appId=1411139805828592" width="942" height="258" frameborder="0" scrolling="no"></iframe>
101
  </p>
102
 
103
  <ul class="aps-about-social-icon aps-unstyled aps-inlinelist">
 
 
104
  <li><a href="http://www.pinterest.com/accesspresswp/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/pinterest.png" alt="pinterest"></a>
105
  </li>
106
  <li><a href="https://www.flickr.com/photos/accesspressthemes/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/flicker.png" alt="flicker"></a>
114
  </div>
115
  </div>
116
  <?php include_once('promobar.php'); ?>
117
+ </div>
inc/backend/activation.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- defined('ABSPATH') or die("No script kiddies please!");
3
  global $wpdb;
4
  /**
5
  * Creating table for storing social icons sets
6
- * */
 
7
  $table_name = $wpdb->prefix . 'aps_social_icons';
8
- $sql = "CREATE TABLE IF NOT EXISTS $table_name
9
- (
10
- si_id INT NOT NULL AUTO_INCREMENT,
11
- PRIMARY KEY(si_id),
12
- icon_set_name VARCHAR(255),
13
- icon_display VARCHAR(255),
14
- num_rows VARCHAR(255),
15
- icon_margin VARCHAR(255),
16
- icon_tooltip INT NOT NULL,
17
- tooltip_background VARCHAR(255),
18
- tooltip_text_color VARCHAR(255),
19
- icon_animation VARCHAR(255),
20
- opacity_hover VARCHAR(20),
21
- icon_details TEXT,
22
- icon_extra TEXT
23
- )";
24
- $wpdb->query($sql);
1
+ <?php defined('ABSPATH') or die("No script kiddies please!");
 
2
  global $wpdb;
3
  /**
4
  * Creating table for storing social icons sets
5
+ *
6
+ */
7
  $table_name = $wpdb->prefix . 'aps_social_icons';
8
+ $sql = "CREATE TABLE IF NOT EXISTS $table_name
9
+ (
10
+ si_id INT NOT NULL AUTO_INCREMENT,
11
+ PRIMARY KEY(si_id),
12
+ icon_set_name VARCHAR(255),
13
+ icon_display VARCHAR(255),
14
+ num_rows VARCHAR(255),
15
+ icon_margin VARCHAR(255),
16
+ icon_tooltip INT NOT NULL,
17
+ tooltip_background VARCHAR(255),
18
+ tooltip_text_color VARCHAR(255),
19
+ icon_animation VARCHAR(255),
20
+ opacity_hover VARCHAR(20),
21
+ icon_details TEXT,
22
+ icon_extra TEXT
23
+ )";
24
+ $wpdb->query($sql);
inc/backend/add-new-set.php CHANGED
@@ -170,10 +170,10 @@
170
  </div>
171
  </div>
172
  </div>
173
-
174
  </div>
175
 
176
-
177
  <div class="aps-clear"></div>
178
  </div><!--end .aps-col-half-->
179
  <div class="aps-col-half">
@@ -198,7 +198,7 @@
198
  </div>
199
  <!--Icon Adder-->
200
  <?php include_once('icon-adder.php'); ?>
201
- <!--aps-icon-adder-->
202
  </div>
203
  </div>
204
 
@@ -217,7 +217,7 @@
217
  </div>
218
 
219
  </div>
220
- </div>
221
  </div>
222
  <?php include_once('promobar.php'); ?>
223
- </div>
170
  </div>
171
  </div>
172
  </div>
173
+
174
  </div>
175
 
176
+
177
  <div class="aps-clear"></div>
178
  </div><!--end .aps-col-half-->
179
  <div class="aps-col-half">
198
  </div>
199
  <!--Icon Adder-->
200
  <?php include_once('icon-adder.php'); ?>
201
+ <!--aps-icon-adder-->
202
  </div>
203
  </div>
204
 
217
  </div>
218
 
219
  </div>
220
+ </div>
221
  </div>
222
  <?php include_once('promobar.php'); ?>
223
+ </div>
inc/backend/edit-icon-set.php CHANGED
@@ -10,387 +10,389 @@ $icon_extra = unserialize($icon_set->icon_extra);
10
  //$this->print_array($icon_extra);
11
  ?>
12
  <div class="aps-add-set-wrapper">
13
- <?php if (isset($_GET['message'])) { ?>
14
- <div class="aps-message aps-message-success updated">
15
- <p>
16
- <?php
17
- _e('Icon Set Updated Successfully','accesspress-social-icons');
18
- ?>
19
- </p>
20
- </div>
21
- <?php } ?>
22
- <div class="aps-list-wrapper">
23
- <div class="aps-panel">
24
- <!--Panel Head-->
25
- <?php include('panel-head.php');?>
26
- <!--Panel Head-->
27
- <div class="aps-panel-body">
28
- <h2><?php _e('Edit Social Icons Set', 'accesspress-social-icons'); ?></h2>
29
 
30
- <div class="form-wrap">
31
- <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
32
- <input type="hidden" name="action" value="aps_edit_action"/>
33
- <div class="aps-row">
34
- <div class="aps-col-half">
35
- <div class="aps-row">
36
- <div class="aps-col-full">
37
- <div class="aps-field-wrapper form-field">
38
- <label><?php _e('Name of Set', 'accesspress-social-icons'); ?></label>
39
- <div class="aps-field">
40
- <input type="text" name="set_name" value="<?php echo esc_attr($icon_set->icon_set_name); ?>"/>
41
- </div>
42
- <div class="aps-error"></div>
43
- </div><!--aps-field-wrapper form-field-->
 
 
 
 
 
 
 
 
44
  </div>
45
- <div class="aps-col-full">
46
- <div class="aps-group-chooser">
47
- <div class="aps-field-wrapper form-field">
48
- <label><?php _e('Choose Icon Set type', 'accesspress-social-icons'); ?></label>
49
- <div class="aps-field">
50
- <label class="label-inline"><input type="radio" name="icon_set_type" value="1" <?php if ($icon_extra['icon_set_type'] == 1) { ?>checked="checked"<?php } ?>/><?php _e('Choose icon indiviually', 'accesspress-social-icons'); ?></label>
51
- <label class="label-inline"><input type="radio" name="icon_set_type" value="2" <?php if ($icon_extra['icon_set_type'] == 2) { ?>checked="checked"<?php } ?>/><?php _e('Choose from available themes', 'accesspress-social-icons'); ?></label>
52
- </div>
53
- </div>
54
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  </div>
56
- <div class="aps-col-full">
57
- <!--Icon Themes-->
58
- <?php include_once('icon-themes.php'); ?>
59
- <!--Icon Themes-->
 
 
 
60
  </div>
61
- <div class="aps-col-full">
62
- <div class="aps-field-wrapper form-field">
63
- <label><?php _e('Display', 'accesspress-social-icons'); ?></label>
64
- <div class="aps-field">
65
- <label class="label-inline"><input type="radio" name="display" value="horizontal" <?php if ($icon_set->icon_display == 'horizontal') { ?>checked="checked"<?php } ?>/><?php _e('Horizontal', 'accesspress-social-icons'); ?></label>
66
- <label class="label-inline"><input type="radio" name="display" value="vertical" <?php if ($icon_set->icon_display == 'vertical') { ?>checked="checked"<?php } ?>/><?php _e('Vertical', 'accesspress-social-icons'); ?></label>
67
- </div>
68
- </div><!--aps-field-wrapper form-field-->
 
 
 
 
69
  </div>
70
  </div>
71
- <div class="aps-row">
72
- <div class="aps-col-half">
73
- <div class="aps-field-wrapper form-field display-horizontal-reference" <?php if ($icon_set->icon_display == 'vertical') { ?>style="display: none"<?php } ?>>
74
- <label><?php _e('Number of Rows', 'accesspress-social-icons') ?></label>
75
- <div class="aps-field">
76
- <input type="number" name="num_rows" value="<?php echo $icon_set->num_rows; ?>" min="1"/>
77
- </div>
78
- <div class="aps-option-note">
79
- <p><?php _e('Please enter the number of rows in number.Default is 1.', 'accesspress-social-icons'); ?></p>
80
- </div>
81
- </div><!--aps-field-wrapper-->
82
- </div>
83
- <div class="aps-col-half">
84
- <div class="aps-field-wrapper display-vertical-reference form-field" <?php if ($icon_set->icon_display == 'horizontal') { ?>style="display: none"<?php } ?>>
85
- <label><?php _e('Number of Columns', 'accesspress-social-icons') ?></label>
86
- <div class="aps-field">
87
- <input type="number" name="num_columns" value='<?php
88
- if (isset($icon_extra['num_columns'])) {
89
- echo $icon_extra['num_columns'];
90
- }
91
- ?>' min="1"/>
92
- </div>
93
- <div class="aps-option-note">
94
- <p><?php _e('Please enter the number of columns in number.Default is 1.', 'accesspress-social-icons'); ?></p>
95
- </div>
96
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  </div>
98
- <div class="aps-col-half">
99
- <div class="aps-field-wrapper form-field">
100
- <label><?php _e('Margin Between Each Icon', 'accesspress-social-icons'); ?></label>
101
- <div class="aps-field">
102
- <input type="number" name="margins" value="<?php echo esc_attr($icon_set->icon_margin); ?>"/>
 
103
  </div>
104
- <div class="aps-field-note">
105
- <p>
106
- <?php _e('Please enter the margin for each icon in px.', 'accesspress-social-icons'); ?>
107
- </p>
 
 
 
108
  </div>
109
- </div><!--aps-field-wrapper-->
110
- </div>
111
- <div class="aps-clear"></div>
112
- <div class="aps-col-two-third">
113
- <div class="aps-field-wrapper form-field">
114
- <label><?php _e('Tooltip', 'accesspress-social-icons'); ?></label>
115
- <div class="aps-field">
116
- <label class="label-inline"><input type="radio" name="tooltip" value="1" <?php if ($icon_set->icon_tooltip == 1) { ?>checked="checked"<?php } ?>/><?php _e('Show', 'accesspress-social-icons'); ?></label>
117
- <label class="label-inline"><input type="radio" name="tooltip" value="0" <?php if ($icon_set->icon_tooltip == 0) { ?>checked="checked"<?php } ?>/><?php _e('Don\'t show', 'accesspress-social-icons'); ?></label>
 
118
  </div>
119
- </div><!--aps-field-wrapper form-field-->
120
- </div>
121
- <div class="aps-clear"></div>
122
- <div class="aps-tooltip-options">
123
- <div class="aps-col-one-third">
124
- <div class="aps-field-wrapper form-field aps-tooltip-reference">
125
- <label><?php _e('Tooltip Bg Color', 'accesspress-social-icons') ?></label>
126
- <div class="aps-field">
127
- <input type="text" name="tooltip_bg" class="aps-color-picker" value="<?php echo esc_attr($icon_set->tooltip_background); ?>"/>
128
- </div>
129
- </div><!--aps-field-wrapper form-field-->
130
- </div>
131
- <div class="aps-col-one-third">
132
- <div class="aps-field-wrapper form-field aps-tooltip-reference">
133
- <label><?php _e('Tooltip Text Color', 'accesspress-social-icons'); ?></label>
134
- <div class="aps-field">
135
- <input type="text" name="tooltip_text_color" class="aps-color-picker" value="<?php echo esc_attr($icon_set->tooltip_text_color); ?>"/>
136
- </div>
137
- </div><!--aps-field-wrapper form-field-->
138
- </div>
139
- <div class="aps-col-one-third">
140
- <div class="aps-field-wrapper aps-tooltip-reference form-field">
141
- <label><?php _e('Tooltip Position', 'accesspress-social-icons'); ?></label>
142
- <div class="aps-field">
143
- <select name="tooltip_position" class="aps-form-control">
144
- <option value="top" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='top'){?>selected="selected"<?php }?>><?php _e('Top','accesspress-social-icons');?></option>
145
- <option value="right" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='right'){?>selected="selected"<?php }?>><?php _e('Right','accesspress-social-icons');?></option>
146
- <option value="bottom" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='bottom'){?>selected="selected"<?php }?>><?php _e('Bottom','accesspress-social-icons');?></option>
147
- <option value="left" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='left'){?>selected="selected"<?php }?>><?php _e('Left','accesspress-social-icons');?></option>
148
- </select>
149
- </div>
150
  </div>
151
- </div>
152
- </div>
153
- <div class="aps-clear"></div>
154
- <div class="aps-col-half">
155
- <div class="aps-field-wrapper form-field">
156
- <label><?php _e('Icons Animation', 'accesspress-social-icons'); ?></label>
157
- <div class="aps-field">
158
- <select name="icon_animation" class="aps-form-control" id="aps-icon-animation">
159
- <option value=""><?php _e('No Animation', 'accesspress-social-icons'); ?></option>
160
- <optgroup label="Attention Seekers">
161
- <option value="bounce" <?php if ($icon_set->icon_animation == 'bounce') { ?>selected="selected"<?php } ?>>bounce</option>
162
- <option value="flash" <?php if ($icon_set->icon_animation == 'flash') { ?>selected="selected"<?php } ?>>flash</option>
163
- <option value="pulse" <?php if ($icon_set->icon_animation == 'pulse') { ?>selected="selected"<?php } ?>>pulse</option>
164
- <option value="shake" <?php if ($icon_set->icon_animation == 'shake') { ?>selected="selected"<?php } ?>>shake</option>
165
- <option value="swing" <?php if ($icon_set->icon_animation == 'swing') { ?>selected="selected"<?php } ?>>swing</option>
166
- <option value="tada" <?php if ($icon_set->icon_animation == 'tada') { ?>selected="selected"<?php } ?>>tada</option>
167
-
168
- </optgroup>
169
- <optgroup label="Bouncing Entrances">
170
- <option value="bounceIn" <?php if ($icon_set->icon_animation == 'bounceIn') { ?>selected="selected"<?php } ?>>bounceIn</option>
171
- </optgroup>
172
- <optgroup label="Fading Entrances">
173
- <option value="fadeIn" <?php if ($icon_set->icon_animation == 'fadeIn') { ?>selected="selected"<?php } ?>>fadeIn</option>
174
- <option value="fadeInDown" <?php if ($icon_set->icon_animation == 'fadeInDown') { ?>selected="selected"<?php } ?>>fadeInDown</option>
175
- <option value="fadeInUp" <?php if ($icon_set->icon_animation == 'fadeInUp') { ?>selected="selected"<?php } ?>>fadeInUp</option>
176
- </optgroup>
177
- <optgroup label="Flippers">
178
- <option value="flip" <?php if ($icon_set->icon_animation == 'flip') { ?>selected="selected"<?php } ?>>flip</option>
179
- <option value="flipInX" <?php if ($icon_set->icon_animation == 'flipInX') { ?>selected="selected"<?php } ?>>flipInX</option>
180
- <option value="flipInY" <?php if ($icon_set->icon_animation == 'flipInY') { ?>selected="selected"<?php } ?>>flipInY</option>
181
- </optgroup>
182
- <optgroup label="Zoom Entrances">
183
- <option value="zoomIn" <?php if ($icon_set->icon_animation == 'zoomIn') { ?>selected="selected"<?php } ?>>zoomIn</option>
184
- </optgroup>
185
- <?php do_action('apsi_icon_animation_option',$icon_set);?>
186
- </select>
187
  </div>
188
- </div><!--aps-field-wrapper form-field-->
189
- </div>
190
- <div class="aps-col-half">
191
- <div class="aps-field-wrapper form-field">
192
- <label><?php _e('Opacity on Non Hover', 'accesspress-social-icons'); ?></label>
193
- <div class="aps-field">
194
- <select name="opacity_hover" class="aps-form-control">
195
- <option value="1" <?php selected($icon_set->opacity_hover,1);?>>1</option>
196
- <option value="0.75" <?php selected($icon_set->opacity_hover,0.75);?>>0.75</option>
197
- <option value="0.5" <?php selected($icon_set->opacity_hover,0.5);?>>0.5</option>
198
- <option value="0.25" <?php selected($icon_set->opacity_hover,0.25);?>>0.25</option>
199
- </select>
200
  </div>
201
- </div><!--aps-field-wrapper form-field-->
202
- </div>
203
-
204
- </div>
205
-
206
- </div>
207
-
208
- <div class="aps-col-half">
209
- <div class="aps-field-wrapper">
210
- <div class="aps-field">
211
- <div class="aps-preview-holder">
212
- <div class="aps-image-icon-preview">
213
- <?php _e('Icon Preview', 'accesspress-social-icons'); ?>
214
  </div>
215
  </div>
216
  </div>
217
- </div>
218
- <h3><?php _e('Icon Lists', 'accesspress-social-icons'); ?></h3>
219
- <div class="aps-expander-controls">
220
- <a href="javascript:void(0);" class="aps-icon-theme-expand button button-secondary button-small"><?php _e('Expand All', 'accesspress-social-icons'); ?></a>
221
- </div>
222
- <div class="aps-icon-list-wrapper">
223
- <p style="display: none;"><?php _e('Empty List', 'accesspress-social-icons'); ?></p>
224
- <div class="aps-icon-note"><?php _e('Each Icon will only show up in the frontend if icon link is not empty', 'accesspress-social-icons'); ?></div>
225
- <ul class="aps-icon-list">
226
- <?php
227
- $icon_details = unserialize($icon_set->icon_details);
228
- //$this->print_array($icon_details);
229
- $icon_counter = 0;
230
- $si_id = $_GET['si_id'];
231
- if(!empty($icon_details)):
232
- foreach ($icon_details as $title => $icon_detail) {
233
- $icon_counter++;
234
- $icon_main_class = 'icon-' . $si_id . '-' . $icon_counter;
235
- ?>
236
- <li class="aps-sortable-icons">
237
- <div class="aps-drag-icon"></div>
238
- <div class="aps-icon-head">
239
- <span class="aps-icon-name"><?php echo esc_attr($title); ?></span>
240
- <span class="aps-icon-list-controls">
241
- <span class="aps-arrow-down aps-arrow button button-secondary" aria-label="expand icons">
242
- <i class="dashicons dashicons-arrow-down"></i>
243
- </span>
244
- <?php if ($icon_extra['icon_set_type'] == 1) { ?>
245
- <span class="aps-delete-icon button button-secondary" aria-label="delete icons">
246
- <i class="dashicons dashicons-trash"></i>
247
- </span>
248
- <?php }?>
249
- </span>
250
- </div>
251
- <div class="aps-icon-body" style="display: none;">
252
 
253
- <div class="aps-row">
254
- <div class="aps-icon-preview <?php echo $icon_main_class;?>">
255
- <label><?php _e('Icon Preview', 'accesspress-social-icons'); ?></label>
256
- <img src="<?php echo esc_url_raw($icon_detail['image']); ?>" data-image-name="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>"/>
257
- </div>
258
- <div class="aps-col-full">
259
- <div class="aps-field-wrapper form-field">
260
- <label><?php _e('Icon Title', 'accesspress-social-icons'); ?></label>
261
- <div class="aps-field">
262
- <input type="text" name="icons[<?php echo esc_attr($title); ?>][title]" value="<?php echo esc_attr($icon_detail['title']); ?>"/>
263
- </div>
264
- </div><!--aps-field-wrapper form-field-->
265
- </div>
266
- <div class="aps-col-half">
267
- <div class="aps-field-wrapper form-field">
268
- <label><?php _e('Icon Width', 'accesspress-social-icons'); ?></label>
269
- <div class="aps-field">
270
- <input type="text" name="icons[<?php echo esc_attr($title); ?>][icon_width]" value="<?php echo esc_attr($icon_detail['icon_width']) ?>" class="aps_theme_icon_width"/>
271
- </div>
272
- <div class="aps-option-note">
273
- <p><?php _e('Please enter the width for the icon in px.', 'accesspress-social-icons'); ?></p>
274
- </div>
275
- </div><!--aps-field-wrapper form-field-->
276
- </div>
277
- <div class="aps-col-half">
278
- <div class="aps-field-wrapper form-field">
279
- <label><?php _e('Icon Height', 'accesspress-social-icons'); ?></label>
280
- <div class="aps-field">
281
- <input type="text" name="icons[<?php echo esc_attr($title); ?>][icon_height]" value="<?php echo esc_attr($icon_detail['icon_height']) ?>" class="aps_theme_icon_height"/>
282
- </div>
283
- <p><?php _e('Please enter the height for the icon in px.', 'accesspress-social-icons'); ?></p>
284
- </div><!--aps-field-wrapper form-field-->
285
- </div>
286
- <div class="aps-col-full">
287
- <div class="aps-field-wrapper form-field">
288
- <label><?php _e('Icon Link', 'accesspress-social-icons'); ?></label>
289
- <div class="aps-field">
290
- <input type="text" name="icons[<?php echo esc_attr($title); ?>][link]" value="<?php echo esc_url_raw($icon_detail['link']) ?>"/>
291
- </div>
292
- </div><!--aps-field-wrapper form-field-->
293
- </div>
294
- <div class="aps-col-half">
295
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo $icon_detail['image']; ?>"/>
296
- <div class="aps-field-wrapper form-field">
297
- <label><?php _e('Tooltip Text', 'accesspress-social-icons'); ?></label>
298
- <div class="aps-field">
299
- <input type="text" name="icons[<?php echo esc_attr($title); ?>][tooltip_text]" value="<?php echo esc_attr($icon_detail['tooltip_text']) ?>"/>
300
- </div>
301
- </div><!--aps-field-wrapper form-field-->
302
- </div>
303
- <div class="aps-col-half">
304
- <div class="aps-field-wrapper form-field">
305
- <label><?php _e('Icon Link Target', 'accesspress-social-icons'); ?></label>
306
- <div class="aps-field">
307
- <select class="aps-form-control" name="icons[<?php echo esc_attr($title); ?>][link_target]">
308
- <option value="New Window">New Window</option>
309
- <option value="Same Window">Same Window</option>
310
- </select>
311
- </div>
312
- </div><!--aps-field-wrapper form-field-->
313
- </div>
314
- </div>
315
- </div>
316
- <input type="hidden" name="icons[<?php echo $title; ?>][image_name]" value="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>" />
317
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo esc_attr($icon_detail['image']) ?>" class="set_image_reference" data-image-name="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>"/>
318
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_type]" value="<?php echo esc_attr($icon_detail['border_type']) ?>"/>
319
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_thickness]" value="<?php echo esc_attr($icon_detail['border_thickness']) ?>"/>
320
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_color]" value="<?php echo esc_attr($icon_detail['border_color']) ?>"/>
321
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow]" value="<?php echo esc_attr($icon_detail['shadow']) ?>"/>
322
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_x]" value="<?php echo esc_attr($icon_detail['shadow_offset_x']) ?>"/>
323
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_y]" value="<?php echo esc_attr($icon_detail['shadow_offset_y']) ?>"/>
324
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_blur]" value="<?php echo isset($icon_detail['shadow_blur'])?esc_attr($icon_detail['shadow_blur']):''; ?>"/>
325
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_color]" value="<?php echo esc_attr($icon_detail['shadow_color']) ?>"/>
326
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][padding]" value="<?php echo esc_attr($icon_detail['padding']) ?>"/>
327
- <?php
328
- $border_thickness = str_replace('px', '', $icon_detail['border_thickness']);
329
- $border_thickness = ($border_thickness == '') ? '1' : $border_thickness;
330
- $border_color = ($icon_detail['border_color'] == '') ? '#000' : $icon_detail['border_color'];
331
- $border_type = $icon_detail['border_type'];
332
- $shadow_type = $icon_detail['shadow'];
333
- $offset_x = str_replace('px', '', $icon_detail['shadow_offset_x']);
334
- $offset_x = ($offset_x == '') ? '0' : $offset_x;
335
- $offset_y = str_replace('px', '', $icon_detail['shadow_offset_y']);
336
- $offset_y = ($offset_y == '') ? '0' : $offset_y;
337
- $blur = str_replace('px', '', isset($icon_detail['shadow_blur'])?$icon_detail['shadow_blur']:'');
338
- $blur = ($blur == '') ? '0' : $blur;
339
- $shadow_color = $icon_detail['shadow_color'];
340
- if ($shadow_type != 'no') {
341
- $shadow = '-moz-box-shadow:' . $offset_x . 'px ' . $offset_y . 'px ' . $blur . 'px ' . '0' . ' ' . $shadow_color . ';';
342
- $shadow .= '-webkit-box-shadow:' . $offset_x . 'px ' . $offset_y . 'px ' . $blur . 'px ' . '0' . ' ' . $shadow_color . ';';
343
- $shadow .= 'box-shadow:' . $offset_x . 'px ' . $offset_y . 'px ' . $blur . 'px ' . '0' . ' ' . $shadow_color . ';';
344
- } else {
345
- $shadow = '';
346
- }
347
 
348
- $border = ($icon_detail['border_type'] == 'none') ? '' : "border:{$border_thickness}px $border_type $border_color;";
349
- ?>
350
- <?php
351
- $icon_height = str_replace('px', '', $icon_detail['icon_height']);
352
- $icon_width = str_replace('px', '', $icon_detail['icon_width']);
353
- $padding = str_replace('px', '', $icon_detail['padding']);
354
- $padding = "padding:{$padding}px;";
355
- $icon_style =".$icon_main_class img{height:{$icon_height}px;width:{$icon_width}px;{$border}{$shadow}{$padding}";
356
- ?>
357
- <style><?php echo $icon_style;?></style>
358
- </li>
359
- <?php
360
- }
361
- endif;
362
- ?>
363
- </ul>
364
- </div>
365
- <!--aps-icon-adder-->
366
- <?php include('icon-adder.php') ?>
367
- <!--aps-icon-adder-->
368
- </div>
369
- </div>
370
 
371
- <div class="aps-field-wrapper form-field">
372
- <div class="aps-error aps-main-error"></div>
373
- <input type="submit" class="button button-primary" value="<?php _e('Save icon set', 'accesspress-social-icons'); ?>" name="aps_icon_set_submit" id="aps_icon_set_submit"/>
374
- <input type="hidden" id="aps-icon-counter" value="<?php echo count($icon_details); ?>"/>
375
- <input type="hidden" name="si_id" value="<?php echo $si_id; ?>"/>
376
- <input type="hidden" name="current_page" value="<?php echo $this->curPageURL(); ?>"/>
377
- <input type="hidden" name="icon_theme_id" id="icon_theme_id" value="<?php echo $icon_extra['icon_theme_id']; ?>"/>
378
-
379
- </div>
380
- <?php wp_nonce_field('aps_edit_action', 'aps_edit_set_nonce'); ?>
381
- </form>
382
- </div>
383
- <div class="aps-pre-available-icons" style="display: none;">
384
- </div>
385
- <div class="aps-font-awesome-icons" style="display:none">
386
- <?php include_once('font-awesome-icons.php'); ?>
387
- </div>
388
  </div>
389
- </div>
 
390
  </div>
 
 
 
 
 
 
 
 
391
  </div>
392
  <?php
393
  include_once('promobar.php');
394
  }else{
395
- _e('No icon set found for this ID','accesspress-social-icons');
396
- } ?>
10
  //$this->print_array($icon_extra);
11
  ?>
12
  <div class="aps-add-set-wrapper">
13
+ <?php if (isset($_GET['message'])) { ?>
14
+ <div class="aps-message aps-message-success updated">
15
+ <p>
16
+ <?php
17
+ _e('Icon Set Updated Successfully','accesspress-social-icons');
18
+ ?>
19
+ </p>
20
+ </div>
21
+ <?php } ?>
22
+ <div class="aps-list-wrapper">
23
+ <div class="aps-panel">
24
+ <!--Panel Head-->
25
+ <?php include('panel-head.php');?>
26
+ <!--Panel Head-->
27
+ <div class="aps-panel-body">
28
+ <h2><?php _e('Edit Social Icons Set', 'accesspress-social-icons'); ?></h2>
29
 
30
+ <div class="form-wrap">
31
+ <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
32
+ <input type="hidden" name="action" value="aps_edit_action"/>
33
+ <div class="aps-row">
34
+ <div class="aps-col-half">
35
+ <div class="aps-row">
36
+ <div class="aps-col-full">
37
+ <div class="aps-field-wrapper form-field">
38
+ <label><?php _e('Name of Set', 'accesspress-social-icons'); ?></label>
39
+ <div class="aps-field">
40
+ <input type="text" name="set_name" value="<?php echo esc_attr($icon_set->icon_set_name); ?>"/>
41
+ </div>
42
+ <div class="aps-error"></div>
43
+ </div><!--aps-field-wrapper form-field-->
44
+ </div>
45
+ <div class="aps-col-full">
46
+ <div class="aps-group-chooser">
47
+ <div class="aps-field-wrapper form-field">
48
+ <label><?php _e('Choose Icon Set type', 'accesspress-social-icons'); ?></label>
49
+ <div class="aps-field">
50
+ <label class="label-inline"><input type="radio" name="icon_set_type" value="1" <?php if ($icon_extra['icon_set_type'] == 1) { ?>checked="checked"<?php } ?>/><?php _e('Choose icon indiviually', 'accesspress-social-icons'); ?></label>
51
+ <label class="label-inline"><input type="radio" name="icon_set_type" value="2" <?php if ($icon_extra['icon_set_type'] == 2) { ?>checked="checked"<?php } ?>/><?php _e('Choose from available themes', 'accesspress-social-icons'); ?></label>
52
  </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <div class="aps-col-full">
57
+ <!--Icon Themes-->
58
+ <?php include_once('icon-themes.php'); ?>
59
+ <!--Icon Themes-->
60
+ </div>
61
+ <div class="aps-col-full">
62
+ <div class="aps-field-wrapper form-field">
63
+ <label><?php _e('Display', 'accesspress-social-icons'); ?></label>
64
+ <div class="aps-field">
65
+ <label class="label-inline"><input type="radio" name="display" value="horizontal" <?php if ($icon_set->icon_display == 'horizontal') { ?>checked="checked"<?php } ?>/><?php _e('Horizontal', 'accesspress-social-icons'); ?></label>
66
+ <label class="label-inline"><input type="radio" name="display" value="vertical" <?php if ($icon_set->icon_display == 'vertical') { ?>checked="checked"<?php } ?>/><?php _e('Vertical', 'accesspress-social-icons'); ?></label>
67
+ </div>
68
+ </div><!--aps-field-wrapper form-field-->
69
+ </div>
70
+ </div>
71
+ <div class="aps-row">
72
+ <div class="aps-col-half">
73
+ <div class="aps-field-wrapper form-field display-horizontal-reference" <?php if ($icon_set->icon_display == 'vertical') { ?>style="display: none"<?php } ?>>
74
+ <label><?php _e('Number of Rows', 'accesspress-social-icons') ?></label>
75
+ <div class="aps-field">
76
+ <input type="number" name="num_rows" value="<?php echo $icon_set->num_rows; ?>" min="1"/>
77
+ </div>
78
+ <div class="aps-option-note">
79
+ <p><?php _e('Please enter the number of rows in number.Default is 1.', 'accesspress-social-icons'); ?></p>
80
+ </div>
81
+ </div><!--aps-field-wrapper-->
82
+ </div>
83
+ <div class="aps-col-half">
84
+ <div class="aps-field-wrapper display-vertical-reference form-field" <?php if ($icon_set->icon_display == 'horizontal') { ?>style="display: none"<?php } ?>>
85
+ <label><?php _e('Number of Columns', 'accesspress-social-icons') ?></label>
86
+ <div class="aps-field">
87
+ <input type="number" name="num_columns" value='<?php
88
+ if (isset($icon_extra['num_columns'])) {
89
+ echo $icon_extra['num_columns'];
90
+ }
91
+ ?>' min="1"/>
92
+ </div>
93
+ <div class="aps-option-note">
94
+ <p><?php _e('Please enter the number of columns in number.Default is 1.', 'accesspress-social-icons'); ?></p>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ <div class="aps-col-half">
99
+ <div class="aps-field-wrapper form-field">
100
+ <label><?php _e('Margin Between Each Icon', 'accesspress-social-icons'); ?></label>
101
+ <div class="aps-field">
102
+ <input type="number" name="margins" value="<?php echo esc_attr($icon_set->icon_margin); ?>"/>
103
+ </div>
104
+ <div class="aps-field-note">
105
+ <p>
106
+ <?php _e('Please enter the margin for each icon in px.', 'accesspress-social-icons'); ?>
107
+ </p>
108
+ </div>
109
+ </div><!--aps-field-wrapper-->
110
+ </div>
111
+ <div class="aps-clear"></div>
112
+ <div class="aps-col-two-third">
113
+ <div class="aps-field-wrapper form-field">
114
+ <label><?php _e('Tooltip', 'accesspress-social-icons'); ?></label>
115
+ <div class="aps-field">
116
+ <label class="label-inline"><input type="radio" name="tooltip" value="1" <?php if ($icon_set->icon_tooltip == 1) { ?>checked="checked"<?php } ?>/><?php _e('Show', 'accesspress-social-icons'); ?></label>
117
+ <label class="label-inline"><input type="radio" name="tooltip" value="0" <?php if ($icon_set->icon_tooltip == 0) { ?>checked="checked"<?php } ?>/><?php _e('Don\'t show', 'accesspress-social-icons'); ?></label>
118
+ </div>
119
+ </div><!--aps-field-wrapper form-field-->
120
+ </div>
121
+ <div class="aps-clear"></div>
122
+ <div class="aps-tooltip-options">
123
+ <div class="aps-col-one-third">
124
+ <div class="aps-field-wrapper form-field aps-tooltip-reference">
125
+ <label><?php _e('Tooltip Bg Color', 'accesspress-social-icons') ?></label>
126
+ <div class="aps-field">
127
+ <input type="text" name="tooltip_bg" class="aps-color-picker" value="<?php echo esc_attr($icon_set->tooltip_background); ?>"/>
128
  </div>
129
+ </div><!--aps-field-wrapper form-field-->
130
+ </div>
131
+ <div class="aps-col-one-third">
132
+ <div class="aps-field-wrapper form-field aps-tooltip-reference">
133
+ <label><?php _e('Tooltip Text Color', 'accesspress-social-icons'); ?></label>
134
+ <div class="aps-field">
135
+ <input type="text" name="tooltip_text_color" class="aps-color-picker" value="<?php echo esc_attr($icon_set->tooltip_text_color); ?>"/>
136
  </div>
137
+ </div><!--aps-field-wrapper form-field-->
138
+ </div>
139
+ <div class="aps-col-one-third">
140
+ <div class="aps-field-wrapper aps-tooltip-reference form-field">
141
+ <label><?php _e('Tooltip Position', 'accesspress-social-icons'); ?></label>
142
+ <div class="aps-field">
143
+ <select name="tooltip_position" class="aps-form-control">
144
+ <option value="top" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='top'){?>selected="selected"<?php }?>><?php _e('Top','accesspress-social-icons');?></option>
145
+ <option value="right" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='right'){?>selected="selected"<?php }?>><?php _e('Right','accesspress-social-icons');?></option>
146
+ <option value="bottom" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='bottom'){?>selected="selected"<?php }?>><?php _e('Bottom','accesspress-social-icons');?></option>
147
+ <option value="left" <?php if(isset($icon_extra['tooltip_position']) && $icon_extra['tooltip_position']=='left'){?>selected="selected"<?php }?>><?php _e('Left','accesspress-social-icons');?></option>
148
+ </select>
149
  </div>
150
  </div>
151
+ </div>
152
+ </div>
153
+ <div class="aps-clear"></div>
154
+ <div class="aps-col-half">
155
+ <div class="aps-field-wrapper form-field">
156
+ <label><?php _e('Icons Animation', 'accesspress-social-icons'); ?></label>
157
+ <div class="aps-field">
158
+ <select name="icon_animation" class="aps-form-control" id="aps-icon-animation">
159
+ <option value=""><?php _e('No Animation', 'accesspress-social-icons'); ?></option>
160
+ <optgroup label="Attention Seekers">
161
+ <option value="bounce" <?php if ($icon_set->icon_animation == 'bounce') { ?>selected="selected"<?php } ?>>bounce</option>
162
+ <option value="flash" <?php if ($icon_set->icon_animation == 'flash') { ?>selected="selected"<?php } ?>>flash</option>
163
+ <option value="pulse" <?php if ($icon_set->icon_animation == 'pulse') { ?>selected="selected"<?php } ?>>pulse</option>
164
+ <option value="shake" <?php if ($icon_set->icon_animation == 'shake') { ?>selected="selected"<?php } ?>>shake</option>
165
+ <option value="swing" <?php if ($icon_set->icon_animation == 'swing') { ?>selected="selected"<?php } ?>>swing</option>
166
+ <option value="tada" <?php if ($icon_set->icon_animation == 'tada') { ?>selected="selected"<?php } ?>>tada</option>
167
+
168
+ </optgroup>
169
+ <optgroup label="Bouncing Entrances">
170
+ <option value="bounceIn" <?php if ($icon_set->icon_animation == 'bounceIn') { ?>selected="selected"<?php } ?>>bounceIn</option>
171
+ </optgroup>
172
+ <optgroup label="Fading Entrances">
173
+ <option value="fadeIn" <?php if ($icon_set->icon_animation == 'fadeIn') { ?>selected="selected"<?php } ?>>fadeIn</option>
174
+ <option value="fadeInDown" <?php if ($icon_set->icon_animation == 'fadeInDown') { ?>selected="selected"<?php } ?>>fadeInDown</option>
175
+ <option value="fadeInUp" <?php if ($icon_set->icon_animation == 'fadeInUp') { ?>selected="selected"<?php } ?>>fadeInUp</option>
176
+ </optgroup>
177
+ <optgroup label="Flippers">
178
+ <option value="flip" <?php if ($icon_set->icon_animation == 'flip') { ?>selected="selected"<?php } ?>>flip</option>
179
+ <option value="flipInX" <?php if ($icon_set->icon_animation == 'flipInX') { ?>selected="selected"<?php } ?>>flipInX</option>
180
+ <option value="flipInY" <?php if ($icon_set->icon_animation == 'flipInY') { ?>selected="selected"<?php } ?>>flipInY</option>
181
+ </optgroup>
182
+ <optgroup label="Zoom Entrances">
183
+ <option value="zoomIn" <?php if ($icon_set->icon_animation == 'zoomIn') { ?>selected="selected"<?php } ?>>zoomIn</option>
184
+ </optgroup>
185
+ <?php do_action('apsi_icon_animation_option',$icon_set);?>
186
+ </select>
187
+ </div>
188
+ </div><!--aps-field-wrapper form-field-->
189
+ </div>
190
+ <div class="aps-col-half">
191
+ <div class="aps-field-wrapper form-field">
192
+ <label><?php _e('Opacity on Non Hover', 'accesspress-social-icons'); ?></label>
193
+ <div class="aps-field">
194
+ <select name="opacity_hover" class="aps-form-control">
195
+ <option value="1" <?php selected($icon_set->opacity_hover,1);?>>1</option>
196
+ <option value="0.75" <?php selected($icon_set->opacity_hover,0.75);?>>0.75</option>
197
+ <option value="0.5" <?php selected($icon_set->opacity_hover,0.5);?>>0.5</option>
198
+ <option value="0.25" <?php selected($icon_set->opacity_hover,0.25);?>>0.25</option>
199
+ </select>
200
+ </div>
201
+ </div><!--aps-field-wrapper form-field-->
202
+ </div>
203
+
204
+ </div>
205
+
206
+ </div>
207
+
208
+ <div class="aps-col-half">
209
+ <div class="aps-field-wrapper">
210
+ <div class="aps-field">
211
+ <div class="aps-preview-holder">
212
+ <div class="aps-image-icon-preview">
213
+ <?php _e('Icon Preview', 'accesspress-social-icons'); ?>
214
+ </div>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ <h3><?php _e('Icon Lists', 'accesspress-social-icons'); ?></h3>
219
+ <div class="aps-expander-controls">
220
+ <a href="javascript:void(0);" class="aps-icon-theme-expand button button-secondary button-small"><?php _e('Expand All', 'accesspress-social-icons'); ?></a>
221
+ </div>
222
+ <div class="aps-icon-list-wrapper">
223
+ <p style="display: none;"><?php _e('Empty List', 'accesspress-social-icons'); ?></p>
224
+ <div class="aps-icon-note"><?php _e('Each Icon will only show up in the frontend if icon link is not empty', 'accesspress-social-icons'); ?></div>
225
+ <ul class="aps-icon-list">
226
+ <?php
227
+ $icon_details = unserialize($icon_set->icon_details);
228
+ //$this->print_array($icon_details);
229
+ $icon_counter = 0;
230
+ $si_id = $_GET['si_id'];
231
+ if(!empty($icon_details)):
232
+ foreach ($icon_details as $title => $icon_detail) {
233
+ $icon_counter++;
234
+ $icon_main_class = 'icon-' . $si_id . '-' . $icon_counter;
235
+ if($title != 'GooglePlus'){
236
+ ?>
237
+ <li class="aps-sortable-icons">
238
+ <div class="aps-drag-icon"></div>
239
+ <div class="aps-icon-head">
240
+ <span class="aps-icon-name"><?php echo esc_attr($title); ?></span>
241
+ <span class="aps-icon-list-controls">
242
+ <span class="aps-arrow-down aps-arrow button button-secondary" aria-label="expand icons">
243
+ <i class="dashicons dashicons-arrow-down"></i>
244
+ </span>
245
+ <?php if ($icon_extra['icon_set_type'] == 1) { ?>
246
+ <span class="aps-delete-icon button button-secondary" aria-label="delete icons">
247
+ <i class="dashicons dashicons-trash"></i>
248
+ </span>
249
+ <?php }?>
250
+ </span>
251
  </div>
252
+ <div class="aps-icon-body" style="display: none;">
253
+
254
+ <div class="aps-row">
255
+ <div class="aps-icon-preview <?php echo $icon_main_class;?>">
256
+ <label><?php _e('Icon Preview', 'accesspress-social-icons'); ?></label>
257
+ <img src="<?php echo esc_url_raw($icon_detail['image']); ?>" data-image-name="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>"/>
258
  </div>
259
+ <div class="aps-col-full">
260
+ <div class="aps-field-wrapper form-field">
261
+ <label><?php _e('Icon Title', 'accesspress-social-icons'); ?></label>
262
+ <div class="aps-field">
263
+ <input type="text" name="icons[<?php echo esc_attr($title); ?>][title]" value="<?php echo esc_attr($icon_detail['title']); ?>"/>
264
+ </div>
265
+ </div><!--aps-field-wrapper form-field-->
266
  </div>
267
+ <div class="aps-col-half">
268
+ <div class="aps-field-wrapper form-field">
269
+ <label><?php _e('Icon Width', 'accesspress-social-icons'); ?></label>
270
+ <div class="aps-field">
271
+ <input type="text" name="icons[<?php echo esc_attr($title); ?>][icon_width]" value="<?php echo esc_attr($icon_detail['icon_width']) ?>" class="aps_theme_icon_width"/>
272
+ </div>
273
+ <div class="aps-option-note">
274
+ <p><?php _e('Please enter the width for the icon in px.', 'accesspress-social-icons'); ?></p>
275
+ </div>
276
+ </div><!--aps-field-wrapper form-field-->
277
  </div>
278
+ <div class="aps-col-half">
279
+ <div class="aps-field-wrapper form-field">
280
+ <label><?php _e('Icon Height', 'accesspress-social-icons'); ?></label>
281
+ <div class="aps-field">
282
+ <input type="text" name="icons[<?php echo esc_attr($title); ?>][icon_height]" value="<?php echo esc_attr($icon_detail['icon_height']) ?>" class="aps_theme_icon_height"/>
283
+ </div>
284
+ <p><?php _e('Please enter the height for the icon in px.', 'accesspress-social-icons'); ?></p>
285
+ </div><!--aps-field-wrapper form-field-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  </div>
287
+ <div class="aps-col-full">
288
+ <div class="aps-field-wrapper form-field">
289
+ <label><?php _e('Icon Link', 'accesspress-social-icons'); ?></label>
290
+ <div class="aps-field">
291
+ <input type="text" name="icons[<?php echo esc_attr($title); ?>][link]" value="<?php echo esc_url_raw($icon_detail['link']) ?>"/>
292
+ </div>
293
+ </div><!--aps-field-wrapper form-field-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  </div>
295
+ <div class="aps-col-half">
296
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo $icon_detail['image']; ?>"/>
297
+ <div class="aps-field-wrapper form-field">
298
+ <label><?php _e('Tooltip Text', 'accesspress-social-icons'); ?></label>
299
+ <div class="aps-field">
300
+ <input type="text" name="icons[<?php echo esc_attr($title); ?>][tooltip_text]" value="<?php echo esc_attr($icon_detail['tooltip_text']) ?>"/>
301
+ </div>
302
+ </div><!--aps-field-wrapper form-field-->
 
 
 
 
303
  </div>
304
+ <div class="aps-col-half">
305
+ <div class="aps-field-wrapper form-field">
306
+ <label><?php _e('Icon Link Target', 'accesspress-social-icons'); ?></label>
307
+ <div class="aps-field">
308
+ <select class="aps-form-control" name="icons[<?php echo esc_attr($title); ?>][link_target]">
309
+ <option value="New Window">New Window</option>
310
+ <option value="Same Window">Same Window</option>
311
+ </select>
312
+ </div>
313
+ </div><!--aps-field-wrapper form-field-->
 
 
 
314
  </div>
315
  </div>
316
  </div>
317
+ <input type="hidden" name="icons[<?php echo $title; ?>][image_name]" value="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>" />
318
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo esc_attr($icon_detail['image']) ?>" class="set_image_reference" data-image-name="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>"/>
319
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_type]" value="<?php echo esc_attr($icon_detail['border_type']) ?>"/>
320
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_thickness]" value="<?php echo esc_attr($icon_detail['border_thickness']) ?>"/>
321
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_color]" value="<?php echo esc_attr($icon_detail['border_color']) ?>"/>
322
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow]" value="<?php echo esc_attr($icon_detail['shadow']) ?>"/>
323
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_x]" value="<?php echo esc_attr($icon_detail['shadow_offset_x']) ?>"/>
324
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_y]" value="<?php echo esc_attr($icon_detail['shadow_offset_y']) ?>"/>
325
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_blur]" value="<?php echo isset($icon_detail['shadow_blur'])?esc_attr($icon_detail['shadow_blur']):''; ?>"/>
326
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_color]" value="<?php echo esc_attr($icon_detail['shadow_color']) ?>"/>
327
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][padding]" value="<?php echo esc_attr($icon_detail['padding']) ?>"/>
328
+ <?php
329
+ $border_thickness = str_replace('px', '', $icon_detail['border_thickness']);
330
+ $border_thickness = ($border_thickness == '') ? '1' : $border_thickness;
331
+ $border_color = ($icon_detail['border_color'] == '') ? '#000' : $icon_detail['border_color'];
332
+ $border_type = $icon_detail['border_type'];
333
+ $shadow_type = $icon_detail['shadow'];
334
+ $offset_x = str_replace('px', '', $icon_detail['shadow_offset_x']);
335
+ $offset_x = ($offset_x == '') ? '0' : $offset_x;
336
+ $offset_y = str_replace('px', '', $icon_detail['shadow_offset_y']);
337
+ $offset_y = ($offset_y == '') ? '0' : $offset_y;
338
+ $blur = str_replace('px', '', isset($icon_detail['shadow_blur'])?$icon_detail['shadow_blur']:'');
339
+ $blur = ($blur == '') ? '0' : $blur;
340
+ $shadow_color = $icon_detail['shadow_color'];
341
+ if ($shadow_type != 'no') {
342
+ $shadow = '-moz-box-shadow:' . $offset_x . 'px ' . $offset_y . 'px ' . $blur . 'px ' . '0' . ' ' . $shadow_color . ';';
343
+ $shadow .= '-webkit-box-shadow:' . $offset_x . 'px ' . $offset_y . 'px ' . $blur . 'px ' . '0' . ' ' . $shadow_color . ';';
344
+ $shadow .= 'box-shadow:' . $offset_x . 'px ' . $offset_y . 'px ' . $blur . 'px ' . '0' . ' ' . $shadow_color . ';';
345
+ } else {
346
+ $shadow = '';
347
+ }
 
 
 
 
348
 
349
+ $border = ($icon_detail['border_type'] == 'none') ? '' : "border:{$border_thickness}px $border_type $border_color;";
350
+ ?>
351
+ <?php
352
+ $icon_height = str_replace('px', '', $icon_detail['icon_height']);
353
+ $icon_width = str_replace('px', '', $icon_detail['icon_width']);
354
+ $padding = str_replace('px', '', $icon_detail['padding']);
355
+ $padding = "padding:{$padding}px;";
356
+ $icon_style =".$icon_main_class img{height:{$icon_height}px;width:{$icon_width}px;{$border}{$shadow}{$padding}";
357
+ ?>
358
+ <style><?php echo $icon_style;?></style>
359
+ </li>
360
+ <?php
361
+ }
362
+ }
363
+ endif;
364
+ ?>
365
+ </ul>
366
+ </div>
367
+ <!--aps-icon-adder-->
368
+ <?php include('icon-adder.php') ?>
369
+ <!--aps-icon-adder-->
370
+ </div>
371
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
 
373
+ <div class="aps-field-wrapper form-field">
374
+ <div class="aps-error aps-main-error"></div>
375
+ <input type="submit" class="button button-primary" value="<?php _e('Save icon set', 'accesspress-social-icons'); ?>" name="aps_icon_set_submit" id="aps_icon_set_submit"/>
376
+ <input type="hidden" id="aps-icon-counter" value="<?php echo count($icon_details); ?>"/>
377
+ <input type="hidden" name="si_id" value="<?php echo $si_id; ?>"/>
378
+ <input type="hidden" name="current_page" value="<?php echo $this->curPageURL(); ?>"/>
379
+ <input type="hidden" name="icon_theme_id" id="icon_theme_id" value="<?php echo $icon_extra['icon_theme_id']; ?>"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  </div>
382
+ <?php wp_nonce_field('aps_edit_action', 'aps_edit_set_nonce'); ?>
383
+ </form>
384
  </div>
385
+ <div class="aps-pre-available-icons" style="display: none;">
386
+ </div>
387
+ <div class="aps-font-awesome-icons" style="display:none">
388
+ <?php include_once('font-awesome-icons.php'); ?>
389
+ </div>
390
+ </div>
391
+ </div>
392
+ </div>
393
  </div>
394
  <?php
395
  include_once('promobar.php');
396
  }else{
397
+ _e('No icon set found for this ID','accesspress-social-icons');
398
+ } ?>
inc/backend/how-to-use.php CHANGED
@@ -5,20 +5,22 @@
5
  <div class="aps-panel-body">
6
 
7
  <h2><?php _e('How to use', 'accesspress-social-icons'); ?></h2>
8
- <p>For full <strong>documentation</strong> on the plugin, please visit <a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/" target="_blank">https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/</a></p>
9
- <p>For displaying the icons in the frontend, you need to build the icon set first.You can build unlimited number of icons sets which will generate the shortcode for each icons set.And also the build icon sets will be available in the widget section too.</p>
10
- <p>For building icons sets, currently there are two methods.Either you build your own set or build the sets using pre available icon themes.</p>
 
 
11
  <h3>Building Own Icon Sets</h3>
12
- <p>For building own icons sets, you can add the icons individually in the sets by either choosing from pre available icons or by uploading your own icons.The advantage of building own icon set is that if there are some icons missing in the icons themes that you want then , you can build your own sets by selecting the available icons and also uploading the unavailable icons and adding that icon to your icon set.</p>
13
- <p>While building your own icon sets, you can choose various styling options such as width, height, border styling options, shadow styling options.Some fields are a bit technical, but you don't need to worry to use them because we've got the live preview of those styles so that it will be easier for you to understand and know how icons is going to be displayed in the frontend.</p>
14
  <h3>Building Icons Sets from Pre Available Themes</h3>
15
- <p>You can choose this method if you want to build the icon sets quickly. You just need to select the desired icons theme, then add necessary data for desired icons from the list such as icon title, height, width , link , tooltip text and link target.Though there will be 20 or more icons in the list but only those icons will show in the frontend in which you have placed the icon link. </p>
16
-
17
  <h3>Other Options</h3>
18
- <p>There are the options to set margin between each icons, animation for icons , set the icons display position as vertical or horizontal. If vertical then you can set number or columns and if horizontal then you can set number of rows to display the icons.</p>
19
- <p>You can also enable or disable the tooltip option for each icon.If you have enabled the tooltip then you can set the tooltip text and background color too as per your theme.</p>
20
- <p>You can also set the opacity of the non hovered icons i.e how much transparent when your icons is non hovered.</p>
21
-
22
  </div>
23
  </div>
24
  </div>
5
  <div class="aps-panel-body">
6
 
7
  <h2><?php _e('How to use', 'accesspress-social-icons'); ?></h2>
8
+ <p>For full <strong>documentation</strong> on the plugin, please visit <a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank">here</a></p>
9
+ <p><?php esc_html_e('For displaying the icons in the frontend, you need to build the icon set first.You can build unlimited number of icons sets which will generate the shortcode for each icons set.And also the build icon sets will be available in the widget section too.', 'accesspress-social-icons'); ?>
10
+ </p>
11
+ <p><?php esc_html_e('For building icons sets, currently there are two methods.Either you build your own set or build the sets using pre available icon themes.', 'accesspress-social-icons'); ?>
12
+ </p>
13
  <h3>Building Own Icon Sets</h3>
14
+ <p><?php esc_html_e('For building own icons sets, you can add the icons individually in the sets by either choosing from pre available icons or by uploading your own icons.The advantage of building own icon set is that if there are some icons missing in the icons themes that you want then , you can build your own sets by selecting the available icons and also uploading the unavailable icons and adding that icon to your icon set.', 'accesspress-social-icons'); ?></p>
15
+ <p><?php esc_html_e('While building your own icon sets, you can choose various styling options such as width, height, border styling options, shadow styling options.Some fields are a bit technical, but you donot need to worry to use them because we have got the live preview of those styles so that it will be easier for you to understand and know how icons is going to be displayed in the frontend.', 'accesspress-social-icons'); ?></p>
16
  <h3>Building Icons Sets from Pre Available Themes</h3>
17
+ <p><?php esc_html_e('You can choose this method if you want to build the icon sets quickly. You just need to select the desired icons theme, then add necessary data for desired icons from the list such as icon title, height, width , link , tooltip text and link target.Though there will be 20 or more icons in the list but only those icons will show in the frontend in which you have placed the icon link. ', 'accesspress-social-icons'); ?></p>
18
+
19
  <h3>Other Options</h3>
20
+ <p><?php esc_html_e('There are the options to set margin between each icons, animation for icons , set the icons display position as vertical or horizontal. If vertical then you can set number or columns and if horizontal then you can set number of rows to display the icons.', 'accesspress-social-icons'); ?></p>
21
+ <p><?php esc_html_e('You can also enable or disable the tooltip option for each icon.If you have enabled the tooltip then you can set the tooltip text and background color too as per your theme.', 'accesspress-social-icons'); ?></p>
22
+ <p><?php esc_html_e('You can also set the opacity of the non hovered icons i.e how much transparent when your icons is non hovered.', 'accesspress-social-icons'); ?></p>
23
+
24
  </div>
25
  </div>
26
  </div>
inc/backend/icon-adder.php CHANGED
@@ -10,7 +10,7 @@
10
  <div class="aps-error"></div>
11
  </div><!--aps-field-wrapper-->
12
  </div>
13
-
14
  <div class="aps-col-full">
15
  <div class="aps-image-icon">
16
  <div class="aps-field-wrapper form-field">
@@ -23,7 +23,7 @@
23
  </div>
24
  <div class="aps-error"></div>
25
  </div><!--aps-field-wrapper-->
26
-
27
  <div class="aps-row">
28
  <div class="aps-col-half">
29
  <div class="aps-field-wrapper form-field">
@@ -50,11 +50,11 @@
50
  <div class="aps-row">
51
  <div class="aps-col-full">
52
  <div class="aps-field-wrapper">
53
- <label><?php _e('Border Style', 'accesspress-social-icons'); ?></label>
54
  <div class="aps-field form-field">
55
  <select id="aps-border-type" class="aps-form-control">
56
  <option value="none">None</option>
57
- <option value="dotted">Dotted</option>
58
  <option value="dashed">Dashed</option>
59
  <option value="solid">Solid</option>
60
  <option value="double">Double</option>
@@ -69,7 +69,7 @@
69
  <div class="aps-border-refernce" style="display:none">
70
  <div class="aps-col-one-third">
71
  <div class="aps-field-wrapper form-field">
72
- <label><?php _e('Border Spacing', 'accesspress-social-icons'); ?></label>
73
  <div class="aps-field">
74
  <input type="text" id="aps-border-spacing" placeholder="<?php _e('eg. 2px', 'accesspress-social-icons'); ?>"/>
75
  </div>
@@ -77,7 +77,7 @@
77
  </div><!--aps-col-one-third-->
78
  <div class="aps-col-one-third">
79
  <div class="aps-field-wrapper form-field">
80
- <label><?php _e('Border Thickness', 'accesspress-social-icons'); ?></label>
81
  <div class="aps-field">
82
  <input type="text" id="aps-border-thickness" placeholder="<?php _e('eg. 2px', 'accesspress-social-icons'); ?>"/>
83
  </div>
@@ -85,7 +85,7 @@
85
  </div><!--aps-col-one-third-->
86
  <div class="aps-col-one-third">
87
  <div class="aps-field-wrapper form-field">
88
- <label><?php _e('Border Color', 'accesspress-social-icons'); ?></label>
89
  <div class="aps-field">
90
  <input type="text" id="aps-border-color"/>
91
  </div>
@@ -109,7 +109,7 @@
109
  <div class="aps-field-wrapper form-field">
110
  <label><?php _e('Offset X', 'accesspress-social-icons'); ?></label>
111
  <div class="aps-field">
112
- <input type="text" id="aps-shadow-offset-x" placeholder="eg. 1px"/>
113
  </div>
114
  </div>
115
  </div>
@@ -117,7 +117,7 @@
117
  <div class="aps-field-wrapper form-field">
118
  <label><?php _e('Offset Y', 'accesspress-social-icons'); ?></label>
119
  <div class="aps-field">
120
- <input type="text" id="aps-shadow-offset-y" placeholder="eg. 1px" />
121
  </div>
122
  </div>
123
  </div>
@@ -125,7 +125,7 @@
125
  <div class="aps-field-wrapper form-field">
126
  <label><?php _e('Blur', 'accesspress-social-icons'); ?></label>
127
  <div class="aps-field">
128
- <input type="text" id="aps-shadow-blur" placeholder="eg. 1px"/>
129
  </div>
130
  </div>
131
  </div>
@@ -166,7 +166,7 @@
166
  <select id="aps-icon-link-target" class="aps-form-control">
167
  <option value="New Window">New Window</option>
168
  <option value="Same Window">Same Window</option>
169
- </select>
170
  </div>
171
  </div><!--aps-field-wrapper-->
172
  </div>
@@ -180,4 +180,4 @@
180
  </div>
181
  </div>
182
  </div>
183
- </div>
10
  <div class="aps-error"></div>
11
  </div><!--aps-field-wrapper-->
12
  </div>
13
+
14
  <div class="aps-col-full">
15
  <div class="aps-image-icon">
16
  <div class="aps-field-wrapper form-field">
23
  </div>
24
  <div class="aps-error"></div>
25
  </div><!--aps-field-wrapper-->
26
+
27
  <div class="aps-row">
28
  <div class="aps-col-half">
29
  <div class="aps-field-wrapper form-field">
50
  <div class="aps-row">
51
  <div class="aps-col-full">
52
  <div class="aps-field-wrapper">
53
+ <label><?php _e('Border Style', 'accesspress-social-icons'); ?></label>
54
  <div class="aps-field form-field">
55
  <select id="aps-border-type" class="aps-form-control">
56
  <option value="none">None</option>
57
+ <option value="dotted">Dotted</option>
58
  <option value="dashed">Dashed</option>
59
  <option value="solid">Solid</option>
60
  <option value="double">Double</option>
69
  <div class="aps-border-refernce" style="display:none">
70
  <div class="aps-col-one-third">
71
  <div class="aps-field-wrapper form-field">
72
+ <label><?php _e('Border Spacing', 'accesspress-social-icons'); ?></label>
73
  <div class="aps-field">
74
  <input type="text" id="aps-border-spacing" placeholder="<?php _e('eg. 2px', 'accesspress-social-icons'); ?>"/>
75
  </div>
77
  </div><!--aps-col-one-third-->
78
  <div class="aps-col-one-third">
79
  <div class="aps-field-wrapper form-field">
80
+ <label><?php _e('Border Thickness', 'accesspress-social-icons'); ?></label>
81
  <div class="aps-field">
82
  <input type="text" id="aps-border-thickness" placeholder="<?php _e('eg. 2px', 'accesspress-social-icons'); ?>"/>
83
  </div>
85
  </div><!--aps-col-one-third-->
86
  <div class="aps-col-one-third">
87
  <div class="aps-field-wrapper form-field">
88
+ <label><?php _e('Border Color', 'accesspress-social-icons'); ?></label>
89
  <div class="aps-field">
90
  <input type="text" id="aps-border-color"/>
91
  </div>
109
  <div class="aps-field-wrapper form-field">
110
  <label><?php _e('Offset X', 'accesspress-social-icons'); ?></label>
111
  <div class="aps-field">
112
+ <input type="text" id="aps-shadow-offset-x" placeholder="eg. 1px"/>
113
  </div>
114
  </div>
115
  </div>
117
  <div class="aps-field-wrapper form-field">
118
  <label><?php _e('Offset Y', 'accesspress-social-icons'); ?></label>
119
  <div class="aps-field">
120
+ <input type="text" id="aps-shadow-offset-y" placeholder="eg. 1px" />
121
  </div>
122
  </div>
123
  </div>
125
  <div class="aps-field-wrapper form-field">
126
  <label><?php _e('Blur', 'accesspress-social-icons'); ?></label>
127
  <div class="aps-field">
128
+ <input type="text" id="aps-shadow-blur" placeholder="eg. 1px"/>
129
  </div>
130
  </div>
131
  </div>
166
  <select id="aps-icon-link-target" class="aps-form-control">
167
  <option value="New Window">New Window</option>
168
  <option value="Same Window">Same Window</option>
169
+ </select>
170
  </div>
171
  </div><!--aps-field-wrapper-->
172
  </div>
180
  </div>
181
  </div>
182
  </div>
183
+ </div>
inc/backend/panel-head.php CHANGED
@@ -24,10 +24,5 @@
24
  </div>
25
  </div>
26
  </div>
27
- <div class="aps-col-title">
28
- <div class="aps-title">
29
- <?php _e('AccessPress Social Icons','accesspress-social-icons');?>
30
- </div>
31
- </div>
32
  </div>
33
- </div>
24
  </div>
25
  </div>
26
  </div>
 
 
 
 
 
27
  </div>
28
+ </div>
inc/backend/promobar.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="aps-promobar">
2
  <div>
3
- <a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839?ref=AccessKeys" target="_blank" class="ap-upgrade-first"><img src="<?php echo APS_IMAGE_DIR.'/accesspress-social-icons-pro-upgrade.jpg';?>"></a>
4
  </div>
5
  <div class="aps-demo-links">
6
  <div class="aps-btn-group">
@@ -9,7 +9,7 @@
9
  </div>
10
  </div>
11
  <div>
12
- <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="ap-upgrade-first"><img src="<?php echo APS_IMAGE_DIR.'/accesspress-social-icons-pro.jpg';?>"></a>
13
  </div>
14
  <div class="aps-demo-links">
15
  <div class="aps-btn-group">
@@ -20,4 +20,4 @@
20
  <div class="aps-enquiry-block">
21
  <p>If you have any questions regarding pro version, please contact us from <a href="https://accesspressthemes.com/contact/" target="_blank">here</a></p>
22
  </div>
23
- </div>
1
  <div class="aps-promobar">
2
  <div>
3
+ <a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839?ref=AccessKeys" target="_blank" class="ap-upgrade-first"><img src="<?php echo APS_IMAGE_DIR.'/accesspress-social-icons-pro-upgrade.png';?>"></a>
4
  </div>
5
  <div class="aps-demo-links">
6
  <div class="aps-btn-group">
9
  </div>
10
  </div>
11
  <div>
12
+ <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="ap-upgrade-first"><img src="<?php echo APS_IMAGE_DIR.'/accesspress-social-icons-pro.png';?>"></a>
13
  </div>
14
  <div class="aps-demo-links">
15
  <div class="aps-btn-group">
20
  <div class="aps-enquiry-block">
21
  <p>If you have any questions regarding pro version, please contact us from <a href="https://accesspressthemes.com/contact/" target="_blank">here</a></p>
22
  </div>
23
+ </div>
inc/backend/theme-icon-set.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php defined('ABSPATH') or die("No script kiddies please!");?>
2
  <li class="aps-sortable-icons">
3
- <div class="aps-drag-icon"></div>
4
  <div class="aps-icon-head">
5
  <span class="aps-icon-name"><?php echo esc_attr($filename); ?></span>
6
  <span class="aps-icon-list-controls">
@@ -77,7 +77,7 @@
77
  <option value="Same Window">Same Window</option>
78
  </select>
79
  </div>
80
- </div><!--aps-field-wrapper-->
81
  </div>
82
  </div>
83
  </div>
@@ -92,5 +92,5 @@
92
  <input type="hidden" name="icons[<?php echo $filename; ?>][blur]" value="0"/>
93
  <input type="hidden" name="icons[<?php echo $filename; ?>][shadow_color]" value=""/>
94
  <input type="hidden" name="icons[<?php echo $filename; ?>][padding]" value="0"/>
95
-
96
- </li>
1
  <?php defined('ABSPATH') or die("No script kiddies please!");?>
2
  <li class="aps-sortable-icons">
3
+ <div class="aps-drag-icon"></div>
4
  <div class="aps-icon-head">
5
  <span class="aps-icon-name"><?php echo esc_attr($filename); ?></span>
6
  <span class="aps-icon-list-controls">
77
  <option value="Same Window">Same Window</option>
78
  </select>
79
  </div>
80
+ </div><!--aps-field-wrapper-->
81
  </div>
82
  </div>
83
  </div>
92
  <input type="hidden" name="icons[<?php echo $filename; ?>][blur]" value="0"/>
93
  <input type="hidden" name="icons[<?php echo $filename; ?>][shadow_color]" value=""/>
94
  <input type="hidden" name="icons[<?php echo $filename; ?>][padding]" value="0"/>
95
+
96
+ </li>
inc/backend/wp-resources.php CHANGED
@@ -8,24 +8,24 @@
8
  <h2><?php _e('More WordPress Resources', 'accesspress-social-icons'); ?></h2>
9
  <div>
10
  <p><strong>AccessPress Social Icons</strong> works best with every WordPress theme. It's even more remarkable when used with popular themes like VMagazine and AccessPress Parallax.</p>
11
-
12
  <p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
13
-
14
  <p><a href="https://wpall.club/">WPAll Club</a> - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.</p>
15
-
16
  <p> <a href="https://themeforest.net/user/accesskeys/portfolio">Premium WordPress Themes</a> - <strong>6 premium WordPress</strong> themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you. </p>
17
-
18
  <p> <a href="https://codecanyon.net/user/accesskeys/portfolio?Ref=AccessKeys">Premium WordPress Plugins</a> - <strong>45+ premium WordPress plugins</strong> of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace. </p>
19
-
20
  <p> <a href="https://accesspressthemes.com/">AccessPress Themes</a> - <strong>AccessPress Themes</strong> has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.</p>
21
-
22
  <p> <a href="https://8degreethemes.com/">8Degree Themes</a> - <strong>8Degree Themes</strong> offers 15+ free WordPress themes and 16+ premium WordPress themes carefully crafted with creativity.</p>
23
  </div>
24
  </div>
25
-
26
  </div>
27
  </div>
28
  </div>
29
  </div>
30
  <?php include_once('promobar.php'); ?>
31
- </div>
8
  <h2><?php _e('More WordPress Resources', 'accesspress-social-icons'); ?></h2>
9
  <div>
10
  <p><strong>AccessPress Social Icons</strong> works best with every WordPress theme. It's even more remarkable when used with popular themes like VMagazine and AccessPress Parallax.</p>
11
+
12
  <p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
13
+
14
  <p><a href="https://wpall.club/">WPAll Club</a> - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.</p>
15
+
16
  <p> <a href="https://themeforest.net/user/accesskeys/portfolio">Premium WordPress Themes</a> - <strong>6 premium WordPress</strong> themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you. </p>
17
+
18
  <p> <a href="https://codecanyon.net/user/accesskeys/portfolio?Ref=AccessKeys">Premium WordPress Plugins</a> - <strong>45+ premium WordPress plugins</strong> of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace. </p>
19
+
20
  <p> <a href="https://accesspressthemes.com/">AccessPress Themes</a> - <strong>AccessPress Themes</strong> has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.</p>
21
+
22
  <p> <a href="https://8degreethemes.com/">8Degree Themes</a> - <strong>8Degree Themes</strong> offers 15+ free WordPress themes and 16+ premium WordPress themes carefully crafted with creativity.</p>
23
  </div>
24
  </div>
25
+
26
  </div>
27
  </div>
28
  </div>
29
  </div>
30
  <?php include_once('promobar.php'); ?>
31
+ </div>
inc/frontend/icon-group-list.php CHANGED
@@ -20,8 +20,7 @@
20
 
21
 
22
  foreach ($icon_details as $title => $icon) {
23
-
24
-
25
  if ($icon['link'] != '') {
26
  $icon_style = '<style class="aps-icon-front-style">';
27
  $icon_counter++;
@@ -37,6 +36,7 @@
37
  }
38
  $link_target = ($icon['link_target'] == 'New Window') ? 'target="_blank"' : '';
39
  $tooltip_text = ($icon['tooltip_text'] == '') ? esc_attr($title) : esc_attr($icon['tooltip_text']);
 
40
  ?>
41
  <div class="aps-each-icon <?php echo $icon_main_class; ?>" style='margin:<?php echo str_replace('px', '', $icon_set->icon_margin); ?>px;' data-aps-tooltip='<?php echo $tooltip_text ?>' data-aps-tooltip-enabled="<?php echo $icon_set->icon_tooltip; ?>" data-aps-tooltip-bg="<?php echo $tooltip_bg = ($icon_set->tooltip_background == '') ? '#000' : $icon_set->tooltip_background; ?>" data-aps-tooltip-color="<?php echo ($icon_set->tooltip_text_color == '') ? '#fff' : $icon_set->tooltip_text_color; ?>">
42
  <a href="<?php echo $icon['link'] ?>" <?php echo $link_target; ?> class="<?php echo apply_filters('apsi_icon_class','aps-icon-link');?> animated <?php echo ($icon_set->icon_tooltip == 1) ? 'aps-tooltip' : ''; ?>" data-animation-class="<?php echo $icon_set->icon_animation; ?>">
@@ -76,9 +76,9 @@
76
  </a>
77
  <span class="aps-icon-tooltip aps-icon-tooltip-<?php echo $icon_extra['tooltip_position']; ?>" style="display: none;"></span>
78
  <?php
79
- $icon_style = apply_filters('apsi_icon_style',$icon_style);
80
  $icon_style .='</style>';
81
- echo $icon_style
82
  ?>
83
  </div>
84
  <?php if ($group_icon_counter == $icons_per_division) {
@@ -91,6 +91,7 @@
91
 
92
  <?php
93
  }//if icon has link check
 
94
  }//foreach close
95
  if ($icon_set->icon_display == 'horizontal') {
96
  if ($total_display_icons % $total_rows != 0) {
@@ -103,4 +104,4 @@
103
  }
104
  }
105
  ?>
106
- </div>
20
 
21
 
22
  foreach ($icon_details as $title => $icon) {
23
+ if($title != 'GooglePlus'){
 
24
  if ($icon['link'] != '') {
25
  $icon_style = '<style class="aps-icon-front-style">';
26
  $icon_counter++;
36
  }
37
  $link_target = ($icon['link_target'] == 'New Window') ? 'target="_blank"' : '';
38
  $tooltip_text = ($icon['tooltip_text'] == '') ? esc_attr($title) : esc_attr($icon['tooltip_text']);
39
+
40
  ?>
41
  <div class="aps-each-icon <?php echo $icon_main_class; ?>" style='margin:<?php echo str_replace('px', '', $icon_set->icon_margin); ?>px;' data-aps-tooltip='<?php echo $tooltip_text ?>' data-aps-tooltip-enabled="<?php echo $icon_set->icon_tooltip; ?>" data-aps-tooltip-bg="<?php echo $tooltip_bg = ($icon_set->tooltip_background == '') ? '#000' : $icon_set->tooltip_background; ?>" data-aps-tooltip-color="<?php echo ($icon_set->tooltip_text_color == '') ? '#fff' : $icon_set->tooltip_text_color; ?>">
42
  <a href="<?php echo $icon['link'] ?>" <?php echo $link_target; ?> class="<?php echo apply_filters('apsi_icon_class','aps-icon-link');?> animated <?php echo ($icon_set->icon_tooltip == 1) ? 'aps-tooltip' : ''; ?>" data-animation-class="<?php echo $icon_set->icon_animation; ?>">
76
  </a>
77
  <span class="aps-icon-tooltip aps-icon-tooltip-<?php echo $icon_extra['tooltip_position']; ?>" style="display: none;"></span>
78
  <?php
79
+ $icon_style = apply_filters('apsi_icon_style',$icon_style);
80
  $icon_style .='</style>';
81
+ echo $icon_style;
82
  ?>
83
  </div>
84
  <?php if ($group_icon_counter == $icons_per_division) {
91
 
92
  <?php
93
  }//if icon has link check
94
+ }
95
  }//foreach close
96
  if ($icon_set->icon_display == 'horizontal') {
97
  if ($total_display_icons % $total_rows != 0) {
104
  }
105
  }
106
  ?>
107
+ </div>
js/backend.js CHANGED
@@ -17,7 +17,7 @@
17
  tb_remove();
18
  }
19
 
20
- //Adding icon to list
21
  $('#aps-icon-add-trigger').click(function () {
22
  error_flag = 0;
23
  if ($('#aps-icon-title').val() == '')
@@ -120,7 +120,7 @@
120
  $('.aps-icon-adder input[type="text"]').each(function () {
121
  $(this).val('');
122
  });
123
-
124
  $('.aps-image-icon-preview').html('Icon Preview');
125
  reset_styles();
126
  }
@@ -159,7 +159,7 @@
159
 
160
  //sortable initialization
161
  $('.aps-icon-list').sortable({
162
- containment: "parent"
163
  });
164
 
165
  $('#aps_icon_set_submit').click(function () {
@@ -211,7 +211,7 @@
211
  type: 'post',
212
  data: 'action=aps_icon_list_action&_wpnonce=' + aps_script_variable.ajax_nonce,
213
  success: function (res)
214
- {
215
  var set_filter="<div class='aps-clear aps-filter-wrap'><span class='aps-filter-label'>Filter By</span>";
216
  set_filter += '<select id="aps-set-filter" class="aps-popup-filter"><option value="all">All</option>';
217
  for (i = 1; i <= 12; i++)
@@ -381,7 +381,7 @@
381
  if (check == 1)
382
  {
383
  $('#aps-icon-theme-loader').show();
384
-
385
  var url_only = (already_icons==21)?'yes':'no';
386
  prev_theme = clicked_theme;
387
  $('.aps-icon-list .aps-icon-note').remove();
@@ -404,7 +404,7 @@
404
  $('img[data-image-name="'+image_name+'"]').attr('src',image_array[image_name]);
405
  $('input[data-image-name="'+image_name+'"]').attr('value',image_array[image_name]);
406
  }
407
-
408
  }
409
  else
410
  {
@@ -413,15 +413,15 @@
413
  var total_icons = $('.aps-icon-list li').length;
414
  $('#aps-icon-counter').val(total_icons);
415
  $('.aps-color-picker').wpColorPicker();
416
-
417
  $('.aps-icon-list-wrapper p').hide();
418
  if (!$('.aps-icon-theme-expand').is(':visible'))
419
  {
420
  $('.aps-icon-theme-expand').show();
421
- }
422
  }
423
  $('#aps-icon-theme-loader').hide();
424
-
425
  }
426
  });
427
  }
@@ -561,7 +561,7 @@
561
 
562
  }
563
  });
564
-
565
  $('#aps-border-spacing').keyup(function(){
566
  var padding = $(this).val();
567
  $('.aps-image-icon-preview img').css({
@@ -668,11 +668,11 @@
668
  $(this).html(aps_script_variable.icon_expand);
669
  }
670
  });
671
-
672
  function reset_styles()
673
  {
674
  $('#aps-border-type option[value="none"]').attr('selected','selected');
675
  $('.aps-icon-adder .wp-color-result').css({'background-color':''});
676
  }
677
  });//document.ready close
678
- }(jQuery));
17
  tb_remove();
18
  }
19
 
20
+ //Adding icon to list
21
  $('#aps-icon-add-trigger').click(function () {
22
  error_flag = 0;
23
  if ($('#aps-icon-title').val() == '')
120
  $('.aps-icon-adder input[type="text"]').each(function () {
121
  $(this).val('');
122
  });
123
+
124
  $('.aps-image-icon-preview').html('Icon Preview');
125
  reset_styles();
126
  }
159
 
160
  //sortable initialization
161
  $('.aps-icon-list').sortable({
162
+ containment: "parent"
163
  });
164
 
165
  $('#aps_icon_set_submit').click(function () {
211
  type: 'post',
212
  data: 'action=aps_icon_list_action&_wpnonce=' + aps_script_variable.ajax_nonce,
213
  success: function (res)
214
+ {
215
  var set_filter="<div class='aps-clear aps-filter-wrap'><span class='aps-filter-label'>Filter By</span>";
216
  set_filter += '<select id="aps-set-filter" class="aps-popup-filter"><option value="all">All</option>';
217
  for (i = 1; i <= 12; i++)
381
  if (check == 1)
382
  {
383
  $('#aps-icon-theme-loader').show();
384
+
385
  var url_only = (already_icons==21)?'yes':'no';
386
  prev_theme = clicked_theme;
387
  $('.aps-icon-list .aps-icon-note').remove();
404
  $('img[data-image-name="'+image_name+'"]').attr('src',image_array[image_name]);
405
  $('input[data-image-name="'+image_name+'"]').attr('value',image_array[image_name]);
406
  }
407
+
408
  }
409
  else
410
  {
413
  var total_icons = $('.aps-icon-list li').length;
414
  $('#aps-icon-counter').val(total_icons);
415
  $('.aps-color-picker').wpColorPicker();
416
+
417
  $('.aps-icon-list-wrapper p').hide();
418
  if (!$('.aps-icon-theme-expand').is(':visible'))
419
  {
420
  $('.aps-icon-theme-expand').show();
421
+ }
422
  }
423
  $('#aps-icon-theme-loader').hide();
424
+
425
  }
426
  });
427
  }
561
 
562
  }
563
  });
564
+
565
  $('#aps-border-spacing').keyup(function(){
566
  var padding = $(this).val();
567
  $('.aps-image-icon-preview img').css({
668
  $(this).html(aps_script_variable.icon_expand);
669
  }
670
  });
671
+
672
  function reset_styles()
673
  {
674
  $('#aps-border-type option[value="none"]').attr('selected','selected');
675
  $('.aps-icon-adder .wp-color-result').css({'background-color':''});
676
  }
677
  });//document.ready close
678
+ }(jQuery));
js/frontend.js CHANGED
@@ -39,4 +39,4 @@
39
  $(this).width(widthArray.max());
40
  });
41
  });
42
- }(jQuery));
39
  $(this).width(widthArray.max());
40
  });
41
  });
42
+ }(jQuery));
readme.txt CHANGED
@@ -4,111 +4,101 @@ Tags: social icon, social icons, social media, social icon widget, social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
- Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Add social media icons on your site | select from pre-designed sets or upload your own | create multiple icon sets | Use it anywhere using shortcode.
12
 
13
  == Description ==
14
- [Homepage](https://accesspressthemes.com) | [Demo](http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons/) | [Documentation](https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/) | [Suppport](https://accesspressthemes.com/support) | [Premium Version](http://accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/)
15
 
16
- ### Link-up your social profiles right from your website, in an easy and fun way! ###
17
 
18
- Tested with WordPress 4.7
19
-
20
- <strong>AccessPress Social Icons</strong> - allows you to create various social icons and link your social profiles from your website. Its fun because - you can create, customize and build the beautiful icons for your social media profiles on your own.
21
 
22
  <strong>You can select icons from our 12 different beautifully designed sets, or upload our own icons set, customize them, define sizes, add several effects, add tooltip, set margins etc. Also you can define to appear the icons horizontally/vertically and no. of rows/columns!</strong>
23
 
24
- Once the icon set is defined/customized - you can place it anywhere you want using short codes. Put it in the header, footer, in a widget, along with the page content - almost anywhere.
25
 
26
- You can have more than one icon sets created and used on the site. A large icon sets on the header and a tiny one on the footer - for example.
27
 
28
  <strong><em>For more features like SVG icon sets, font awesome icon sets, amazing customization options, feature rich sidebar options - upgrade to PRO version.</em></strong>
29
 
30
  = Free Features: =
31
 
32
- * <strong>Beautifully designed 12 icon themes</strong>
33
- * <strong>Select from pre available icon sets or upload your own</strong>
34
  * <strong>Strong customization options</strong>
35
  - Define size, set height, width of the icons
36
  - Set margin / spacing between icons
37
  - Link up your social media profiles, set link targets
38
  - Enable and disable the tooltips
39
- - Choose display type (vertical or horizontal), define no. of rows/columns
40
- * <strong>Create multiple-instance of the icon sets and use them in multiple places</strong>
41
  * <strong>Easy integration</strong>
42
  - Get short code for each instance you design
43
  - Use the short code anywhere you like: header, footer, in a widget, in the content area
44
- * <strong>Get some styles!</strong>
45
- - Define styles like shadow, borders for icons
46
- - Define tooltips and style it with your own color, BG color.
47
  * <strong>Tool tips</strong>
48
- - Add some feel on your icons - add and customize the tooltip
49
  - Enable or disable tooltips
50
- * <strong>Make it interactive, define hover animation on icons.</strong>
51
  * <strong>Make your own layout</strong>
52
  - Vertical and horizontal display option
53
  - Select rows and columns
54
- * <strong>Real time live preview - check how it looks on your website before using it.</strong>
55
- * <strong>Order the icons - they way you like by using easy drag and drop feature.</strong>
56
  * <strong>Fully Responsive - compatible with mobile devices</strong>
57
  * <strong>User friendly and very interactive user interface</strong>
58
- - Anyone can use it, its as easy as drag and drop.
59
  * <strong>SEO friendly</strong>
60
  - Use your own image alt/title tags for hover-over text
61
  - Google will love it!
62
- * <strong>Upgrades available</strong>
63
- - For more features like SVG icon sets, Font Awesome icon sets, Amazing sidebar options - upgrade to Pro.
64
- * <strong>Support</strong>
65
- - Dedicated email, forum support
66
  * <strong>Free updates</strong>
67
- - Get free updates for lifetime.
68
 
69
  = Premium Features: =
70
-
71
  ★ Beautifully Designed more SVG and PNG icon sets
72
-
73
  ★ 105 Font Awesome Icons with designer and live preview
74
-
75
- ★ Social Sidebar with various configurable options (position, animations,
76
- margins etc) with live preview
77
-
78
- ★ Retina Ready SVG icons(width and height won't effect the icons quality)
79
-
80
  ★ Advanced Customization for both image and font icons
81
-
82
  ★ And many more...
83