Social Media Share Buttons - Version 0.0.3

Version Description

Download this release

Release Info

Developer joaoromao
Plugin Icon 128x128 Social Media Share Buttons
Version 0.0.3
Comparing to
See all releases

Code changes from version 0.0.2 to 0.0.3

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: getsocial, sharing buttons, share button, social buttons, social sharing, ecommerce, social analytics, addthis, sharethis, woocommerce, e-commerce, AddThis, addtoany, admin, bookmark, bookmarking, bookmarks, button, Facebook, Facebook share, facebook like, google, google plus, google plus one, Like, linkedin, lockerz, pin, pin it, pinit, pinterest, plugin, plus 1, plus one, Post, posts, Reddit, save, seo, sexybookmarks, share, shareaholic, sharedaddy, sharethis, sharing, sidebar, sociable, social, social bookmarking, social bookmarks, statistics, stats, stumbleupon, tumblr, tweet, twitter, social media, social share, widget
5
  Requires at least: 3.0
6
  Tested up to: 4.0
7
- Stable tag: 0.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: getsocial, sharing buttons, share button, social buttons, social sharing, ecommerce, social analytics, addthis, sharethis, woocommerce, e-commerce, AddThis, addtoany, admin, bookmark, bookmarking, bookmarks, button, Facebook, Facebook share, facebook like, google, google plus, google plus one, Like, linkedin, lockerz, pin, pin it, pinit, pinterest, plugin, plus 1, plus one, Post, posts, Reddit, save, seo, sexybookmarks, share, shareaholic, sharedaddy, sharethis, sharing, sidebar, sociable, social, social bookmarking, social bookmarks, statistics, stats, stumbleupon, tumblr, tweet, twitter, social media, social share, widget
5
  Requires at least: 3.0
6
  Tested up to: 4.0
7
+ Stable tag: 0.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
tmpl/custom-expressions.php CHANGED
@@ -11,7 +11,7 @@
11
  <?php settings_fields( 'getsocial-gs-custom-expressions' ); ?>
12
  <?php do_settings_sections( 'getsocial-gs-custom-expressions' ); ?>
13
 
14
- <? if($has_custom_social_actions): ?>
15
  <div class="bar-active">
16
  <a href="http://getsocial.io?source=wordpress" target="_blank" class="gsbutton" >New Custom Expression</a>
17
 
@@ -38,4 +38,4 @@
38
 
39
  <div class="cl"></div>
40
  </div>
41
- <? endif; ?>
11
  <?php settings_fields( 'getsocial-gs-custom-expressions' ); ?>
12
  <?php do_settings_sections( 'getsocial-gs-custom-expressions' ); ?>
13
 
14
+ <?php if($has_custom_social_actions): ?>
15
  <div class="bar-active">
16
  <a href="http://getsocial.io?source=wordpress" target="_blank" class="gsbutton" >New Custom Expression</a>
17
 
38
 
39
  <div class="cl"></div>
40
  </div>
41
+ <?php endif; ?>
tmpl/{groups.php → sharing-bar.php} RENAMED
@@ -21,15 +21,16 @@
21
 
22
  <br/>
23
  <?php
24
- $social = [
25
- 'fb' => ['facebook', 'facebook'],
26
- 'tw' => ['twitter', 'twitter'],
27
- 'pn' => ['pinterest', 'pinterest'],
28
- 'gp' => ['google', 'google-plus']
29
- ];
30
 
31
- foreach($social as $key => $value):
32
 
 
33
  $name = $value[0];
34
  $icon = $value[1];
35
  $option_value_exists = !get_option('gs-group-network-'.$key);
@@ -44,9 +45,9 @@
44
  rel="<?php echo $key ?>"
45
  <?php echo ($option_value == 'Y' || !$option_value_exists ? 'checked' : '') ?>/>
46
 
47
- <label for="gs-group-network-<?php echo $key ?>" class="no-padding"><? echo $name ?></label>
48
 
49
- <? endforeach; ?>
50
  </div>
51
  </div>
52
  </div>
@@ -56,19 +57,19 @@
56
  <label class="form-title" for="gs-buttons-position">Choose Template</label>
57
 
58
  <?php
59
- $templates = [
60
  'Square Rounded' => 'gs-template1',
61
  'Rounded' => 'gs-template2',
62
  'Special' => 'gs-template3',
63
  'Basic Grey' => 'gs-template4',
64
  'Basic Black' => 'gs-template5'
65
- ]
66
  ?>
67
 
68
  <select id="group_template" name="gs-group-template">
69
- <? foreach($templates as $name => $value): ?>
70
  <option value="<?= $value ?>" <?= get_option('gs-group-template') == $value ? 'selected' : '' ?>><?= $name ?></option>
71
- <? endforeach; ?>
72
  </select>
73
  </div>
74
  </div>
@@ -78,16 +79,16 @@
78
  <label class="form-title" for="gs-buttons-position">Choose Size</label>
79
 
80
  <?php
81
- $sizes = [
82
  'Small' => 'gs-small',
83
  'Medium' => 'gs-medium',
84
  'Large' => 'gs-large'
85
- ]
86
  ?>
87
  <select id="group_size" name="gs-group-size">
88
- <? foreach($sizes as $name => $value): ?>
89
- <option value="<?= $value ?>" <?= get_option('gs-group-size') == $value || (!get_option('gs-group-size') && $value == 'gs-large') ? 'selected' : '' ?> ><?= $name ?></option>
90
- <? endforeach; ?>
91
  </select>
92
  </div>
93
  </div>
21
 
22
  <br/>
23
  <?php
24
+ $social = array(
25
+ 'fb' => array('facebook', 'facebook'),
26
+ 'tw' => array('twitter', 'twitter'),
27
+ 'pn' => array('pinterest', 'pinterest'),
28
+ 'gp' => array('google', 'google-plus')
29
+ ); ?>
30
 
31
+ <?php foreach($social as $key => $value): ?>
32
 
33
+ <?php
34
  $name = $value[0];
35
  $icon = $value[1];
36
  $option_value_exists = !get_option('gs-group-network-'.$key);
45
  rel="<?php echo $key ?>"
46
  <?php echo ($option_value == 'Y' || !$option_value_exists ? 'checked' : '') ?>/>
47
 
48
+ <label for="gs-group-network-<?php echo $key ?>" class="no-padding"><?php echo $name ?></label>
49
 
50
+ <?php endforeach; ?>
51
  </div>
52
  </div>
53
  </div>
57
  <label class="form-title" for="gs-buttons-position">Choose Template</label>
58
 
59
  <?php
60
+ $templates = array(
61
  'Square Rounded' => 'gs-template1',
62
  'Rounded' => 'gs-template2',
63
  'Special' => 'gs-template3',
64
  'Basic Grey' => 'gs-template4',
65
  'Basic Black' => 'gs-template5'
66
+ )
67
  ?>
68
 
69
  <select id="group_template" name="gs-group-template">
70
+ <?php foreach($templates as $name => $value): ?>
71
  <option value="<?= $value ?>" <?= get_option('gs-group-template') == $value ? 'selected' : '' ?>><?= $name ?></option>
72
+ <?php endforeach; ?>
73
  </select>
74
  </div>
75
  </div>
79
  <label class="form-title" for="gs-buttons-position">Choose Size</label>
80
 
81
  <?php
82
+ $sizes = array(
83
  'Small' => 'gs-small',
84
  'Medium' => 'gs-medium',
85
  'Large' => 'gs-large'
86
+ )
87
  ?>
88
  <select id="group_size" name="gs-group-size">
89
+ <?php foreach($sizes as $name => $value): ?>
90
+ <option value="<?php echo $value ?>" <?php echo get_option('gs-group-size') == $value || (!get_option('gs-group-size') && $value == 'gs-large') ? 'selected' : '' ?> ><?php echo $name ?></option>
91
+ <?php endforeach; ?>
92
  </select>
93
  </div>
94
  </div>
tmpl/tabs.php CHANGED
@@ -1,6 +1,6 @@
1
  <h2 class="nav-tab-wrapper">
2
  <a href="admin.php?page=<? echo slug_path('init.php') ?>" class="nav-tab <?php echo !isset($_GET['tab']) ? 'nav-tab-active' : '' ?>">GetSocial Settings</a>
3
- <a href="admin.php?page=<? echo slug_path('init.php&tab=groups') ?>" class="nav-tab <?php echo $_GET['tab'] == 'groups' ? 'nav-tab-active' : '' ?>">Sharing Bar</a>
4
  <a href="admin.php?page=<? echo slug_path('init.php&tab=custom-expressions') ?>" class="nav-tab <?php echo $_GET['tab'] == 'custom-expressions' ? 'nav-tab-active' : '' ?>">Custom Actions</a>
5
  <a href="mailto:support@getsocial.io" class="nav-tab help">Can we help you?</a>
6
  </h2>
1
  <h2 class="nav-tab-wrapper">
2
  <a href="admin.php?page=<? echo slug_path('init.php') ?>" class="nav-tab <?php echo !isset($_GET['tab']) ? 'nav-tab-active' : '' ?>">GetSocial Settings</a>
3
+ <a href="admin.php?page=<? echo slug_path('init.php&tab=sharing-bar') ?>" class="nav-tab <?php echo $_GET['tab'] == 'sharing-bar' ? 'nav-tab-active' : '' ?>">Sharing Bar</a>
4
  <a href="admin.php?page=<? echo slug_path('init.php&tab=custom-expressions') ?>" class="nav-tab <?php echo $_GET['tab'] == 'custom-expressions' ? 'nav-tab-active' : '' ?>">Custom Actions</a>
5
  <a href="mailto:support@getsocial.io" class="nav-tab help">Can we help you?</a>
6
  </h2>