Version Description
- Fix: Google plus widget does not work for pages.
- Fix: Admin UI tweaks to ease the customization of options.
Download this release
Release Info
Developer | vaakash |
Plugin | WP Socializer |
Version | 3.3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3.3 to 3.3.4
- admin/admin.php +5 -2
- admin/css/style.css +33 -19
- admin/js/script.js +40 -42
- readme.txt +6 -2
- services/google_plus.php +3 -1
- services/social_buttons.php +8 -12
- wpsr.php +2 -2
admin/admin.php
CHANGED
@@ -77,7 +77,7 @@ class WPSR_Admin{
|
|
77 |
|
78 |
echo '<div class="wrap">';
|
79 |
self::admin_tabs();
|
80 |
-
echo '<div id="content">';
|
81 |
call_user_func( self::$tabs[ $current_tab ][ 'page_callback' ] );
|
82 |
echo '</div>';
|
83 |
echo '</div>';
|
@@ -578,6 +578,10 @@ class WPSR_Admin{
|
|
578 |
echo '</div>';
|
579 |
echo '<input type="hidden" class="veditor_content" name="' . $name . '" />';
|
580 |
|
|
|
|
|
|
|
|
|
581 |
if( $preview ){
|
582 |
echo '<div class="veditor_preview">';
|
583 |
echo '<button class="button vedit_preview_btn" data-action="' . $preview . '" title="' . __( 'Click to show preview for the above template', 'wpsr' ) . '" data-refresh="' . __( 'Refresh preview', 'wpsr' ) . '"><i class="fa fa-eye"></i> ' . __( 'Show preview', 'wpsr' ) . '</button>';
|
@@ -589,7 +593,6 @@ class WPSR_Admin{
|
|
589 |
|
590 |
if( $multiple_rows ){
|
591 |
echo '<div class="vedit_menu">
|
592 |
-
<a class="vedit_add_row" title="' . __( 'Add a new row', 'wpsr' ) . '"><span class="dashicons dashicons-plus"></span></a>
|
593 |
<a class="vedit_delete_row" title="' . __( 'Delete row', 'wpsr' ) . '"><span class="dashicons dashicons-no-alt"></span></a>
|
594 |
</div>';
|
595 |
}
|
77 |
|
78 |
echo '<div class="wrap">';
|
79 |
self::admin_tabs();
|
80 |
+
echo '<div id="content">';
|
81 |
call_user_func( self::$tabs[ $current_tab ][ 'page_callback' ] );
|
82 |
echo '</div>';
|
83 |
echo '</div>';
|
578 |
echo '</div>';
|
579 |
echo '<input type="hidden" class="veditor_content" name="' . $name . '" />';
|
580 |
|
581 |
+
if( $multiple_rows ){
|
582 |
+
echo '<button class="button vedit_add_row"><span class="dashicons dashicons-plus"></span> Add a new row</button>';
|
583 |
+
}
|
584 |
+
|
585 |
if( $preview ){
|
586 |
echo '<div class="veditor_preview">';
|
587 |
echo '<button class="button vedit_preview_btn" data-action="' . $preview . '" title="' . __( 'Click to show preview for the above template', 'wpsr' ) . '" data-refresh="' . __( 'Refresh preview', 'wpsr' ) . '"><i class="fa fa-eye"></i> ' . __( 'Show preview', 'wpsr' ) . '</button>';
|
593 |
|
594 |
if( $multiple_rows ){
|
595 |
echo '<div class="vedit_menu">
|
|
|
596 |
<a class="vedit_delete_row" title="' . __( 'Delete row', 'wpsr' ) . '"><span class="dashicons dashicons-no-alt"></span></a>
|
597 |
</div>';
|
598 |
}
|
admin/css/style.css
CHANGED
@@ -39,11 +39,12 @@ h1.wpsr_title a .fa{
|
|
39 |
margin-right: 5px;
|
40 |
}
|
41 |
.postbox h3 {
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
47 |
}
|
48 |
.postbox h3:after{
|
49 |
content: '-';
|
@@ -78,11 +79,13 @@ h1.wpsr_title a .fa{
|
|
78 |
.nav-tab{
|
79 |
position: relative;
|
80 |
border: 0px solid #dfdfdf;
|
81 |
-
border-radius:
|
82 |
margin-left: 0;
|
83 |
margin-right: 10px;
|
84 |
box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.5);
|
85 |
background: #f9f9f9;
|
|
|
|
|
86 |
}
|
87 |
.nav-tab .page_tip {
|
88 |
position: absolute;
|
@@ -357,6 +360,10 @@ h1.wpsr_title a .fa{
|
|
357 |
.vedit_wrap{
|
358 |
margin: 0;
|
359 |
}
|
|
|
|
|
|
|
|
|
360 |
|
361 |
.toolbar_wrap{
|
362 |
background: #F5F5F5;
|
@@ -642,13 +649,20 @@ h1.wpsr_title a .fa{
|
|
642 |
padding: 0.3em 0.5em;
|
643 |
border-radius: 5px;
|
644 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
.btn_shortcode{
|
646 |
background: url('../images/icons/shortcode.png') no-repeat 7px;
|
647 |
padding-left: 28px;
|
648 |
position: absolute;
|
649 |
bottom: 0;
|
650 |
left: 0;
|
651 |
-
opacity: 0.3;
|
652 |
}
|
653 |
.btn_shortcode:disabled{
|
654 |
color: #333;
|
@@ -756,8 +770,11 @@ h1.wpsr_title a .fa{
|
|
756 |
.list_btn_placeholder{
|
757 |
background: red;
|
758 |
}
|
|
|
|
|
|
|
759 |
|
760 |
-
.item_popup {
|
761 |
position: fixed;
|
762 |
top: 10%;
|
763 |
bottom: 10%;
|
@@ -814,17 +831,7 @@ h1.wpsr_title a .fa{
|
|
814 |
content: 'Close';
|
815 |
right: 15px;
|
816 |
}
|
817 |
-
|
818 |
-
border: 1px solid #ccc;
|
819 |
-
padding: 10px;
|
820 |
-
margin-top: -24px;
|
821 |
-
background: #fff;
|
822 |
-
display: none;
|
823 |
-
overflow: auto;
|
824 |
-
}
|
825 |
-
.scr_templates_wrap{
|
826 |
-
height: 500px;
|
827 |
-
}
|
828 |
.scr_tmpl_wrap{
|
829 |
float: left;
|
830 |
padding: 15px;
|
@@ -1251,6 +1258,9 @@ select[name="ft_status"]{
|
|
1251 |
padding: 0.7em;
|
1252 |
background: #F5F5F5;
|
1253 |
cursor: pointer;
|
|
|
|
|
|
|
1254 |
}
|
1255 |
.collapse_head:after{
|
1256 |
font-family: Dashicons;
|
@@ -1259,6 +1269,10 @@ select[name="ft_status"]{
|
|
1259 |
}
|
1260 |
.collapse_head+.form-table{
|
1261 |
display: none;
|
|
|
|
|
|
|
|
|
1262 |
}
|
1263 |
|
1264 |
.page_footer p {
|
39 |
margin-right: 5px;
|
40 |
}
|
41 |
.postbox h3 {
|
42 |
+
font-size: 13px;
|
43 |
+
text-transform: uppercase;
|
44 |
+
padding: 8px 12px;
|
45 |
+
margin: 0;
|
46 |
+
line-height: 1.4;
|
47 |
+
cursor: pointer !important;
|
48 |
}
|
49 |
.postbox h3:after{
|
50 |
content: '-';
|
79 |
.nav-tab{
|
80 |
position: relative;
|
81 |
border: 0px solid #dfdfdf;
|
82 |
+
border-radius: 3px;
|
83 |
margin-left: 0;
|
84 |
margin-right: 10px;
|
85 |
box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.5);
|
86 |
background: #f9f9f9;
|
87 |
+
font-size: 13px;
|
88 |
+
text-transform: uppercase;
|
89 |
}
|
90 |
.nav-tab .page_tip {
|
91 |
position: absolute;
|
360 |
.vedit_wrap{
|
361 |
margin: 0;
|
362 |
}
|
363 |
+
.vedit_add_row{
|
364 |
+
margin-top: 15px !important;
|
365 |
+
float: right;
|
366 |
+
}
|
367 |
|
368 |
.toolbar_wrap{
|
369 |
background: #F5F5F5;
|
649 |
padding: 0.3em 0.5em;
|
650 |
border-radius: 5px;
|
651 |
}
|
652 |
+
.btn_settings_form h4 {
|
653 |
+
text-transform: uppercase;
|
654 |
+
}
|
655 |
+
.btn_settings_form h3 {
|
656 |
+
text-transform: uppercase;
|
657 |
+
font-size: 14px;
|
658 |
+
margin: 20px 0
|
659 |
+
}
|
660 |
.btn_shortcode{
|
661 |
background: url('../images/icons/shortcode.png') no-repeat 7px;
|
662 |
padding-left: 28px;
|
663 |
position: absolute;
|
664 |
bottom: 0;
|
665 |
left: 0;
|
|
|
666 |
}
|
667 |
.btn_shortcode:disabled{
|
668 |
color: #333;
|
770 |
.list_btn_placeholder{
|
771 |
background: red;
|
772 |
}
|
773 |
+
.item_settings {
|
774 |
+
opacity: 1 !important;
|
775 |
+
}
|
776 |
|
777 |
+
.item_popup, .scr_templates_wrap{
|
778 |
position: fixed;
|
779 |
top: 10%;
|
780 |
bottom: 10%;
|
831 |
content: 'Close';
|
832 |
right: 15px;
|
833 |
}
|
834 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
835 |
.scr_tmpl_wrap{
|
836 |
float: left;
|
837 |
padding: 15px;
|
1258 |
padding: 0.7em;
|
1259 |
background: #F5F5F5;
|
1260 |
cursor: pointer;
|
1261 |
+
margin: 0 0 5px 0;
|
1262 |
+
text-transform: uppercase;
|
1263 |
+
font-size: 11px;
|
1264 |
}
|
1265 |
.collapse_head:after{
|
1266 |
font-family: Dashicons;
|
1269 |
}
|
1270 |
.collapse_head+.form-table{
|
1271 |
display: none;
|
1272 |
+
margin-left: 10px;
|
1273 |
+
}
|
1274 |
+
.collapse_head:first-child+.form-table{
|
1275 |
+
display: block;
|
1276 |
}
|
1277 |
|
1278 |
.page_footer p {
|
admin/js/script.js
CHANGED
@@ -369,7 +369,7 @@ jQuery(document).ready(function(){
|
|
369 |
});
|
370 |
}
|
371 |
|
372 |
-
var
|
373 |
var tmpl = scr_templates[ id ];
|
374 |
var features = tmpl[1];
|
375 |
var text = tmpl[2];
|
@@ -395,12 +395,7 @@ jQuery(document).ready(function(){
|
|
395 |
|
396 |
text = ( text == 'no' ) ? 'in' : text;
|
397 |
$( '[data-scr-settings="text-styles"]' ).val( text );
|
398 |
-
|
399 |
-
$tmpl_open_btn = $( '.scr_templates_btn' );
|
400 |
-
$tmpl_open_btn.trigger( 'click' );
|
401 |
-
$tmpl_open_btn.find( 'small' ).remove();
|
402 |
-
$tmpl_open_btn.append( '<small>Template applied, you can edit it below</small>' );
|
403 |
-
$tmpl_open_btn.find( 'small' ).delay( 6000 ).fadeOut();
|
404 |
}
|
405 |
|
406 |
var changelog_show = function( version ){
|
@@ -637,8 +632,9 @@ jQuery(document).ready(function(){
|
|
637 |
$( '.wpsr_tooltip_cnt form' ).submit();
|
638 |
});
|
639 |
|
640 |
-
$( document ).on( 'click', '.vedit_add_row', function(){
|
641 |
-
|
|
|
642 |
});
|
643 |
|
644 |
$(document).on( 'click', '.vedit_delete_row', function(e){
|
@@ -838,6 +834,40 @@ jQuery(document).ready(function(){
|
|
838 |
}
|
839 |
});
|
840 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
841 |
$( document ).on( 'keyup', '.list_search', function( e ){
|
842 |
$list = $( $( this ).data( 'list' ) );
|
843 |
if( $list.length > 0 ){
|
@@ -885,40 +915,8 @@ jQuery(document).ready(function(){
|
|
885 |
$(this).toggleClass( 'scr_btn_close' );
|
886 |
});
|
887 |
|
888 |
-
$( document ).on( 'click', '.scr_templates_btn', function(){
|
889 |
-
$btn = $(this);
|
890 |
-
|
891 |
-
var init_socializer = function(){
|
892 |
-
if( typeof $btn.data( 'scr_init' ) === 'undefined' ){
|
893 |
-
$tmpl_wrap = $( '.scr_templates' ).empty();
|
894 |
-
$.each( scr_templates, function( idx, tmpl ){
|
895 |
-
$tmpl_wrap.append( '<li class="scr_tmpl_wrap" data-tmpl-id="' + idx + '"><div class="scr_tmpl" data-sites="facebook,twitter,rss,googleplus,print" data-features="' + tmpl[1] + '" data-text="' + tmpl[2] + '" ></div><small>' + tmpl[0] + '</small></li>' );
|
896 |
-
});
|
897 |
-
|
898 |
-
if( window.socializer ){
|
899 |
-
socializer( '.scr_templates .scr_tmpl' );
|
900 |
-
$btn.data( 'scr_init', true );
|
901 |
-
}
|
902 |
-
}
|
903 |
-
}
|
904 |
-
|
905 |
-
if( !window.scr_loaded ){
|
906 |
-
wpsr_load_css( 'socializer_css', wpsr.ext_res[ 'socializer-css' ] );
|
907 |
-
$.getScript( wpsr.ext_res[ 'socializer-js' ] ).done(function(){
|
908 |
-
init_socializer();
|
909 |
-
});
|
910 |
-
$.get( wpsr.ext_res[ 'socializer-api' ] ).done(function( data ){
|
911 |
-
window.scr_api = data;
|
912 |
-
});
|
913 |
-
window.scr_loaded = true;
|
914 |
-
}
|
915 |
-
|
916 |
-
init_socializer();
|
917 |
-
|
918 |
-
});
|
919 |
-
|
920 |
$( document ).on( 'click', '.scr_tmpl_wrap', function(){
|
921 |
-
|
922 |
});
|
923 |
|
924 |
$( document ).on( 'click', '.btn_shortcode', function(){
|
369 |
});
|
370 |
}
|
371 |
|
372 |
+
var set_scr_template = function( id ){
|
373 |
var tmpl = scr_templates[ id ];
|
374 |
var features = tmpl[1];
|
375 |
var text = tmpl[2];
|
395 |
|
396 |
text = ( text == 'no' ) ? 'in' : text;
|
397 |
$( '[data-scr-settings="text-styles"]' ).val( text );
|
398 |
+
$('.item_popup_close').trigger('click');
|
|
|
|
|
|
|
|
|
|
|
399 |
}
|
400 |
|
401 |
var changelog_show = function( version ){
|
632 |
$( '.wpsr_tooltip_cnt form' ).submit();
|
633 |
});
|
634 |
|
635 |
+
$( document ).on( 'click', '.vedit_add_row', function(e){
|
636 |
+
e.preventDefault();
|
637 |
+
$('<ul></ul>').sortable( vedit_sortable_btns ).appendTo( $(this).closest( '.vedit_wrap' ).find( '.veditor' ) );
|
638 |
});
|
639 |
|
640 |
$(document).on( 'click', '.vedit_delete_row', function(e){
|
834 |
}
|
835 |
});
|
836 |
|
837 |
+
$( document ).on( 'click', '.scr_open_template', function(e){
|
838 |
+
e.preventDefault();
|
839 |
+
$btn = $(this);
|
840 |
+
|
841 |
+
var init_socializer = function(){
|
842 |
+
if( typeof $btn.data( 'scr_init' ) === 'undefined' ){
|
843 |
+
$tmpl_wrap = $( '.scr_templates' ).empty();
|
844 |
+
$.each( scr_templates, function( idx, tmpl ){
|
845 |
+
$tmpl_wrap.append( '<li class="scr_tmpl_wrap" data-tmpl-id="' + idx + '"><div class="scr_tmpl" data-sites="facebook,twitter,rss,googleplus,print" data-features="' + tmpl[1] + '" data-text="' + tmpl[2] + '" ></div><small>' + tmpl[0] + '</small></li>' );
|
846 |
+
});
|
847 |
+
|
848 |
+
if( window.socializer ){
|
849 |
+
socializer( '.scr_templates .scr_tmpl' );
|
850 |
+
$btn.data( 'scr_init', true );
|
851 |
+
}
|
852 |
+
}
|
853 |
+
}
|
854 |
+
|
855 |
+
if( !window.scr_loaded ){
|
856 |
+
wpsr_load_css( 'socializer_css', wpsr.ext_res[ 'socializer-css' ] );
|
857 |
+
$.getScript( wpsr.ext_res[ 'socializer-js' ] ).done(function(){
|
858 |
+
init_socializer();
|
859 |
+
});
|
860 |
+
$.get( wpsr.ext_res[ 'socializer-api' ] ).done(function( data ){
|
861 |
+
window.scr_api = data;
|
862 |
+
});
|
863 |
+
window.scr_loaded = true;
|
864 |
+
}
|
865 |
+
|
866 |
+
init_socializer();
|
867 |
+
|
868 |
+
$('.scr_templates_wrap').show();
|
869 |
+
});
|
870 |
+
|
871 |
$( document ).on( 'keyup', '.list_search', function( e ){
|
872 |
$list = $( $( this ).data( 'list' ) );
|
873 |
if( $list.length > 0 ){
|
915 |
$(this).toggleClass( 'scr_btn_close' );
|
916 |
});
|
917 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
918 |
$( document ).on( 'click', '.scr_tmpl_wrap', function(){
|
919 |
+
set_scr_template( $(this).data( 'tmpl-id' ) );
|
920 |
});
|
921 |
|
922 |
$( document ).on( 'click', '.btn_shortcode', function(){
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: vaakash
|
|
3 |
Donate link: https://goo.gl/qMF3iE
|
4 |
Tags: social media, share buttons, sharing, share, social, facebook, twitter, sharebar, bookmark, widgets, counter, sidebar, post, posts, page, promotion, marketing, plugin, follow buttons, floating share buttons, profile buttons, mobile, mobile sharebar, profile icons, share bar, social bar, share counter, excerpt, shortcode, google, linkedin, pinterest, pocket, reddit, sharethis, stumbleupon, favorites, addthis, whatsapp, tweet, vkontakte, popup, socializer, messenger, wp socializer
|
5 |
Requires at least: 4.6
|
6 |
-
Tested up to: 4.9
|
7 |
-
Stable tag: 3.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -229,6 +229,10 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
|
|
229 |
|
230 |
== Changelog ==
|
231 |
|
|
|
|
|
|
|
|
|
232 |
= 3.3.3 =
|
233 |
* New: Twitch profile icon in social buttons.
|
234 |
* New: Updated YouTube icon in social buttons.
|
3 |
Donate link: https://goo.gl/qMF3iE
|
4 |
Tags: social media, share buttons, sharing, share, social, facebook, twitter, sharebar, bookmark, widgets, counter, sidebar, post, posts, page, promotion, marketing, plugin, follow buttons, floating share buttons, profile buttons, mobile, mobile sharebar, profile icons, share bar, social bar, share counter, excerpt, shortcode, google, linkedin, pinterest, pocket, reddit, sharethis, stumbleupon, favorites, addthis, whatsapp, tweet, vkontakte, popup, socializer, messenger, wp socializer
|
5 |
Requires at least: 4.6
|
6 |
+
Tested up to: 4.9.1
|
7 |
+
Stable tag: 3.3.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
229 |
|
230 |
== Changelog ==
|
231 |
|
232 |
+
= 3.3.4 =
|
233 |
+
* Fix: Google plus widget does not work for pages.
|
234 |
+
* Fix: Admin UI tweaks to ease the customization of options.
|
235 |
+
|
236 |
= 3.3.3 =
|
237 |
* New: Twitch profile icon in social buttons.
|
238 |
* New: Updated YouTube icon in social buttons.
|
services/google_plus.php
CHANGED
@@ -165,6 +165,7 @@ class wpsr_widget_googleplus{
|
|
165 |
'gp_widget_theme' => 'light',
|
166 |
'gp_widget_cover_photo' => 'true',
|
167 |
'gp_widget_tag_line' => 'true',
|
|
|
168 |
);
|
169 |
|
170 |
}
|
@@ -173,7 +174,7 @@ class wpsr_widget_googleplus{
|
|
173 |
|
174 |
$instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
|
175 |
|
176 |
-
echo '<div class="g-
|
177 |
|
178 |
WPSR_Includes::add_active_includes( array( 'google_plus_main_js' ) );
|
179 |
|
@@ -191,6 +192,7 @@ class wpsr_widget_googleplus{
|
|
191 |
|
192 |
echo '<h4>' . __( 'Google Plus widget settings', 'wpsr' ) . '</h4>';
|
193 |
$fields->text( 'gp_widget_url', 'Enter a Google+ profile or page URL', array( 'placeholder' => 'Ex: https://plus.google.com/u/0/101375276491818686057' ) );
|
|
|
194 |
$fields->number( 'gp_widget_width', 'Widget width ( in pixels )' );
|
195 |
$fields->select( 'gp_widget_theme', 'Widget theme', array( 'light' => 'Light', 'dark' => 'Dark' ), array( 'class' => 'smallfat' ) );
|
196 |
$fields->select( 'gp_widget_layout', 'Widget layout', array( 'potrait' => 'Potrait', 'landscape' => 'Landscape' ), array( 'class' => 'smallfat' ) );
|
165 |
'gp_widget_theme' => 'light',
|
166 |
'gp_widget_cover_photo' => 'true',
|
167 |
'gp_widget_tag_line' => 'true',
|
168 |
+
'gp_widget_type' => 'person'
|
169 |
);
|
170 |
|
171 |
}
|
174 |
|
175 |
$instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
|
176 |
|
177 |
+
echo '<div class="g-' . $instance[ 'gp_widget_type' ] . '" data-width="' . $instance[ 'gp_widget_width' ] . '" data-href="' . $instance[ 'gp_widget_url' ] . '" data-theme="' . $instance[ 'gp_widget_theme' ] . '" data-layout="' . $instance[ 'gp_widget_layout' ] . '" data-showtagline="' . $instance[ 'gp_widget_tag_line' ] . '" data-showcoverphoto="' . $instance[ 'gp_widget_cover_photo' ] . '" data-rel="publisher"></div>';
|
178 |
|
179 |
WPSR_Includes::add_active_includes( array( 'google_plus_main_js' ) );
|
180 |
|
192 |
|
193 |
echo '<h4>' . __( 'Google Plus widget settings', 'wpsr' ) . '</h4>';
|
194 |
$fields->text( 'gp_widget_url', 'Enter a Google+ profile or page URL', array( 'placeholder' => 'Ex: https://plus.google.com/u/0/101375276491818686057' ) );
|
195 |
+
$fields->select( 'gp_widget_type', 'Widget type', array( 'person' => 'Person', 'page' => 'Page' ), array( 'class' => 'smallfat' ) );
|
196 |
$fields->number( 'gp_widget_width', 'Widget width ( in pixels )' );
|
197 |
$fields->select( 'gp_widget_theme', 'Widget theme', array( 'light' => 'Light', 'dark' => 'Dark' ), array( 'class' => 'smallfat' ) );
|
198 |
$fields->select( 'gp_widget_layout', 'Widget layout', array( 'potrait' => 'Potrait', 'landscape' => 'Landscape' ), array( 'class' => 'smallfat' ) );
|
services/social_buttons.php
CHANGED
@@ -220,7 +220,7 @@ class wpsr_service_social_buttons{
|
|
220 |
|
221 |
?>
|
222 |
|
223 |
-
<
|
224 |
<button class="mini_section_select"><span class="dashicons dashicons-plus"></span> <?php _e( 'Click to open the list of buttons', 'wpsr' ); ?><span class="dashicons dashicons-arrow-down fright"></span></button>
|
225 |
|
226 |
<div class="mini_section">
|
@@ -293,8 +293,6 @@ if( jQuery ){
|
|
293 |
}
|
294 |
</script>
|
295 |
|
296 |
-
<p style="font-size: 18px;"><i class="fa fa-cog fa-spin"></i> <?php echo __( '<b>Note: </b> Click the settings icon to <u>add text</u>, <u>share count</u>, <u>custom icon</u> and URL to the button.', 'wpsr' ); ?></p>
|
297 |
-
|
298 |
<!--
|
299 |
<textarea cols="130">
|
300 |
<?php
|
@@ -309,11 +307,14 @@ echo json_encode( $a );
|
|
309 |
</textarea>
|
310 |
-->
|
311 |
|
312 |
-
<
|
313 |
<?php
|
314 |
|
315 |
$section1 = array(
|
316 |
-
|
|
|
|
|
|
|
317 |
'name' => 'o[sr-sizes]',
|
318 |
'value' => $values['sr-sizes'],
|
319 |
'list' => array(
|
@@ -532,14 +533,9 @@ echo json_encode( $a );
|
|
532 |
|
533 |
);
|
534 |
|
535 |
-
echo '<
|
536 |
-
echo '<div class="scr_swrap scr_templates_wrap">';
|
537 |
-
echo '<ul class="scr_templates">';
|
538 |
-
echo '</ul>';
|
539 |
-
echo '</div>';
|
540 |
|
541 |
-
echo '<
|
542 |
-
echo '<div class="scr_swrap scr_msettings">';
|
543 |
echo '<h4 class="collapse_head">' . __( 'Size, shape and hover effects', 'wpsr' ) . '</h4>';
|
544 |
WPSR_Admin::build_table( $section1, '', '', true);
|
545 |
|
220 |
|
221 |
?>
|
222 |
|
223 |
+
<h3><?php _e( 'Select social buttons', 'wpsr' ); ?></h3>
|
224 |
<button class="mini_section_select"><span class="dashicons dashicons-plus"></span> <?php _e( 'Click to open the list of buttons', 'wpsr' ); ?><span class="dashicons dashicons-arrow-down fright"></span></button>
|
225 |
|
226 |
<div class="mini_section">
|
293 |
}
|
294 |
</script>
|
295 |
|
|
|
|
|
296 |
<!--
|
297 |
<textarea cols="130">
|
298 |
<?php
|
307 |
</textarea>
|
308 |
-->
|
309 |
|
310 |
+
<h3>Settings</h3>
|
311 |
<?php
|
312 |
|
313 |
$section1 = array(
|
314 |
+
|
315 |
+
array( __( 'Design of the buttons', 'wpsr' ), '<button class="button button-primary scr_open_template">Select a design template for the buttons</button>'),
|
316 |
+
|
317 |
+
array(__( 'Icon size', 'wpsr' ), WPSR_Admin::field( 'select', array(
|
318 |
'name' => 'o[sr-sizes]',
|
319 |
'value' => $values['sr-sizes'],
|
320 |
'list' => array(
|
533 |
|
534 |
);
|
535 |
|
536 |
+
echo '<div class="scr_templates_wrap"><i class="fa fa-times item_popup_close" title="Close"></i><ul class="scr_templates"></ul></div>';
|
|
|
|
|
|
|
|
|
537 |
|
538 |
+
echo '<div class="scr_swrap">';
|
|
|
539 |
echo '<h4 class="collapse_head">' . __( 'Size, shape and hover effects', 'wpsr' ) . '</h4>';
|
540 |
WPSR_Admin::build_table( $section1, '', '', true);
|
541 |
|
wpsr.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: WP Socializer
|
4 |
* Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
|
5 |
* Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: Aakash Chakravarthy
|
8 |
* Author URI: https://www.aakashweb.com
|
9 |
* Text Domain: wpsr
|
10 |
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
-
define( 'WPSR_VERSION', '3.3.
|
14 |
define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
15 |
define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
3 |
* Plugin Name: WP Socializer
|
4 |
* Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
|
5 |
* Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
|
6 |
+
* Version: 3.3.4
|
7 |
* Author: Aakash Chakravarthy
|
8 |
* Author URI: https://www.aakashweb.com
|
9 |
* Text Domain: wpsr
|
10 |
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define( 'WPSR_VERSION', '3.3.4' );
|
14 |
define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
15 |
define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|