From 3f5e836f39ef1c55cbc482ef29f1f8f337855922 Mon Sep 17 00:00:00 2001 From: Arthur Gareginyan Date: Fri, 8 Apr 2016 18:25:58 +0300 Subject: [PATCH] Plugin updated to version 2.0 --- inc/{ => images}/author.png | Bin inc/images/btn_donateCC_LG.gif | Bin 0 -> 3592 bytes .../social-media-icons/blogger.png | Bin .../social-media-icons/codepen.png | Bin inc/{ => images}/social-media-icons/email.png | Bin .../social-media-icons/facebook.png | Bin .../social-media-icons/github.png | Bin .../social-media-icons/google-plus.png | Bin .../social-media-icons/instagram.png | Bin .../social-media-icons/linkedin.png | Bin .../social-media-icons/livejournal.png | Bin .../social-media-icons/odnoklassniki.png | Bin .../social-media-icons/pinterest.png | Bin .../social-media-icons/rss-feed.png | Bin .../social-media-icons/tumblr.png | Bin .../social-media-icons/twitter.png | Bin .../social-media-icons/vkontakte.png | Bin .../social-media-icons/website.png | Bin .../social-media-icons/wordpress.png | Bin .../social-media-icons/youtube.png | Bin inc/{ => images}/thanks.png | Bin inc/settings_page.php | 66 ++++++++-------- inc/style-admin.css | 4 +- languages/smbtoolbar-ru_RU.mo | Bin 5297 -> 0 bytes .../social-media-buttons-toolbar-ru_RU.mo | Bin 0 -> 5263 bytes ... => social-media-buttons-toolbar-ru_RU.po} | 41 +++++----- ...r.pot => social-media-buttons-toolbar.pot} | 30 ++++---- readme.txt | 71 ++++++++---------- social-media-buttons-toolbar.php | 46 +++++++----- 29 files changed, 129 insertions(+), 129 deletions(-) rename inc/{ => images}/author.png (100%) create mode 100644 inc/images/btn_donateCC_LG.gif rename inc/{ => images}/social-media-icons/blogger.png (100%) rename inc/{ => images}/social-media-icons/codepen.png (100%) rename inc/{ => images}/social-media-icons/email.png (100%) rename inc/{ => images}/social-media-icons/facebook.png (100%) rename inc/{ => images}/social-media-icons/github.png (100%) rename inc/{ => images}/social-media-icons/google-plus.png (100%) rename inc/{ => images}/social-media-icons/instagram.png (100%) rename inc/{ => images}/social-media-icons/linkedin.png (100%) rename inc/{ => images}/social-media-icons/livejournal.png (100%) rename inc/{ => images}/social-media-icons/odnoklassniki.png (100%) rename inc/{ => images}/social-media-icons/pinterest.png (100%) rename inc/{ => images}/social-media-icons/rss-feed.png (100%) rename inc/{ => images}/social-media-icons/tumblr.png (100%) rename inc/{ => images}/social-media-icons/twitter.png (100%) rename inc/{ => images}/social-media-icons/vkontakte.png (100%) rename inc/{ => images}/social-media-icons/website.png (100%) rename inc/{ => images}/social-media-icons/wordpress.png (100%) rename inc/{ => images}/social-media-icons/youtube.png (100%) rename inc/{ => images}/thanks.png (100%) delete mode 100644 languages/smbtoolbar-ru_RU.mo create mode 100644 languages/social-media-buttons-toolbar-ru_RU.mo rename languages/{smbtoolbar-ru_RU.po => social-media-buttons-toolbar-ru_RU.po} (93%) rename languages/{smbtoolbar.pot => social-media-buttons-toolbar.pot} (92%) diff --git a/inc/author.png b/inc/images/author.png similarity index 100% rename from inc/author.png rename to inc/images/author.png diff --git a/inc/images/btn_donateCC_LG.gif b/inc/images/btn_donateCC_LG.gif new file mode 100644 index 0000000000000000000000000000000000000000..4700ced8c066bb1c4f057c4d4c6432d3c8c45c42 GIT binary patch literal 3592 zcmaJ>XFyX~7Jea>9z>)@X^5D{U9{+}8Wt8)+$kd-m45-|EuewJ*j6QE-_x2B} z|MaJ?fhXit^I_6YTa~uiXf?O035R1pR${Cgnp;}hJDOYDTZb0PYwMXsJ&%jhN9I-= zYqKpeYBy^7^B+`RB_BEG?ee&5f{@zmMU5@|+3s*;?cR*n{*4P&2^LS!?caJ8+nb4* zIAwUPZMME=L>&}a`ndWc*7nWwg1p;F+|`YvwuXsWkJfr#F68Osb9)yC%f^>Khf=(k z?uYb@FE1`G%=Z=q=C-cZr*AGVar3j^zvzm(9JDsvx!zLU+Sxrsz`rdkb4YqSn{K`H z#DkCHJPOAq&uqj->}s0!TChNDsIW7=)#pD-($1vm`8ky}hli41R^s&YLS+ zZGQl_bJ~!pB+yVxN7Gx!NC!01)zZ~Bz+f;Mpq`Gdj<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ox_ tdV9L8JvE@Dd@65lsK92Wte6h-`yuP~m1DQ+plWeD=1;w6@b8rAzXAF@K*0b2 literal 0 HcmV?d00001 diff --git a/inc/social-media-icons/blogger.png b/inc/images/social-media-icons/blogger.png similarity index 100% rename from inc/social-media-icons/blogger.png rename to inc/images/social-media-icons/blogger.png diff --git a/inc/social-media-icons/codepen.png b/inc/images/social-media-icons/codepen.png similarity index 100% rename from inc/social-media-icons/codepen.png rename to inc/images/social-media-icons/codepen.png diff --git a/inc/social-media-icons/email.png b/inc/images/social-media-icons/email.png similarity index 100% rename from inc/social-media-icons/email.png rename to inc/images/social-media-icons/email.png diff --git a/inc/social-media-icons/facebook.png b/inc/images/social-media-icons/facebook.png similarity index 100% rename from inc/social-media-icons/facebook.png rename to inc/images/social-media-icons/facebook.png diff --git a/inc/social-media-icons/github.png b/inc/images/social-media-icons/github.png similarity index 100% rename from inc/social-media-icons/github.png rename to inc/images/social-media-icons/github.png diff --git a/inc/social-media-icons/google-plus.png b/inc/images/social-media-icons/google-plus.png similarity index 100% rename from inc/social-media-icons/google-plus.png rename to inc/images/social-media-icons/google-plus.png diff --git a/inc/social-media-icons/instagram.png b/inc/images/social-media-icons/instagram.png similarity index 100% rename from inc/social-media-icons/instagram.png rename to inc/images/social-media-icons/instagram.png diff --git a/inc/social-media-icons/linkedin.png b/inc/images/social-media-icons/linkedin.png similarity index 100% rename from inc/social-media-icons/linkedin.png rename to inc/images/social-media-icons/linkedin.png diff --git a/inc/social-media-icons/livejournal.png b/inc/images/social-media-icons/livejournal.png similarity index 100% rename from inc/social-media-icons/livejournal.png rename to inc/images/social-media-icons/livejournal.png diff --git a/inc/social-media-icons/odnoklassniki.png b/inc/images/social-media-icons/odnoklassniki.png similarity index 100% rename from inc/social-media-icons/odnoklassniki.png rename to inc/images/social-media-icons/odnoklassniki.png diff --git a/inc/social-media-icons/pinterest.png b/inc/images/social-media-icons/pinterest.png similarity index 100% rename from inc/social-media-icons/pinterest.png rename to inc/images/social-media-icons/pinterest.png diff --git a/inc/social-media-icons/rss-feed.png b/inc/images/social-media-icons/rss-feed.png similarity index 100% rename from inc/social-media-icons/rss-feed.png rename to inc/images/social-media-icons/rss-feed.png diff --git a/inc/social-media-icons/tumblr.png b/inc/images/social-media-icons/tumblr.png similarity index 100% rename from inc/social-media-icons/tumblr.png rename to inc/images/social-media-icons/tumblr.png diff --git a/inc/social-media-icons/twitter.png b/inc/images/social-media-icons/twitter.png similarity index 100% rename from inc/social-media-icons/twitter.png rename to inc/images/social-media-icons/twitter.png diff --git a/inc/social-media-icons/vkontakte.png b/inc/images/social-media-icons/vkontakte.png similarity index 100% rename from inc/social-media-icons/vkontakte.png rename to inc/images/social-media-icons/vkontakte.png diff --git a/inc/social-media-icons/website.png b/inc/images/social-media-icons/website.png similarity index 100% rename from inc/social-media-icons/website.png rename to inc/images/social-media-icons/website.png diff --git a/inc/social-media-icons/wordpress.png b/inc/images/social-media-icons/wordpress.png similarity index 100% rename from inc/social-media-icons/wordpress.png rename to inc/images/social-media-icons/wordpress.png diff --git a/inc/social-media-icons/youtube.png b/inc/images/social-media-icons/youtube.png similarity index 100% rename from inc/social-media-icons/youtube.png rename to inc/images/social-media-icons/youtube.png diff --git a/inc/thanks.png b/inc/images/thanks.png similarity index 100% rename from inc/thanks.png rename to inc/images/thanks.png diff --git a/inc/settings_page.php b/inc/settings_page.php index bc31b64..5ccdcb8 100644 --- a/inc/settings_page.php +++ b/inc/settings_page.php @@ -10,7 +10,7 @@ /** * Render Settings Page * - * @since 1.4 + * @since 2.0 */ function smbtoolbar_render_submenu_page() { @@ -21,10 +21,10 @@ function smbtoolbar_render_submenu_page() { ?>

- +
- Arthur "Berserkr" Gareginyan', 'smbtoolbar' ); ?> + Arthur "Berserkr" Gareginyan', 'social-media-buttons-toolbar' ); ?>

@@ -35,38 +35,38 @@ function smbtoolbar_render_submenu_page() {
-

+

-

+

-

+

@@ -84,9 +84,9 @@ function smbtoolbar_render_submenu_page() {
-

+

-

+

- +
-

+

@@ -243,39 +243,39 @@ function smbtoolbar_render_submenu_page() { '50' );?>
- +
-

+

-


+


-

+

-

-

A) For display the toolbar below content on every Posts or/and Pages, just check the checkbox "Show on Posts" or/and "Show on Pages" in the section "Display options", then click "Save Changes". It\'s that simple!', 'smbtoolbar' ) ?>

-

B) For add the toolbar inside a post from WP Post/Page Editor use the following shortcode:', 'smbtoolbar' ) ?>

+

+

A) For display the toolbar below content on every Posts or/and Pages, just check the checkbox "Show on Posts" or/and "Show on Pages" in the section "Display options", then click "Save Changes". It\'s that simple!', 'social-media-buttons-toolbar' ) ?>

+

B) For add the toolbar inside a post from WP Post/Page Editor use the following shortcode:', 'social-media-buttons-toolbar' ) ?>

-

C) For add the toolbar to the widget area (in sidebar, footer etc.) use the "Text" widget and add inside it the following shortcode:', 'smbtoolbar' ) ?>

+

C) For add the toolbar to the widget area (in sidebar, footer etc.) use the "Text" widget and add inside it the following shortcode:', 'social-media-buttons-toolbar' ) ?>

-

D) For add the toolbar directly to a theme files, just add one of the following code (both variants do the same) to needed place (where you want to display the toolbar) in your theme files:', 'smbtoolbar' ) ?>

+

D) For add the toolbar directly to a theme files, just add one of the following code (both variants do the same) to needed place (where you want to display the toolbar) in your theme files:', 'social-media-buttons-toolbar' ) ?>

'); ?>

'); ?>

-
+ +
- - - + + diff --git a/inc/style-admin.css b/inc/style-admin.css index 77e41b6..404a04e 100644 --- a/inc/style-admin.css +++ b/inc/style-admin.css @@ -64,11 +64,11 @@ td.help-text { text-align: center; } -#donate { +#help { text-align: center; } -#help { +#donate { text-align: center; } diff --git a/languages/smbtoolbar-ru_RU.mo b/languages/smbtoolbar-ru_RU.mo deleted file mode 100644 index 33e36d07154bca996466d46586670c586781e7ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5297 zcmbW5+ix6q700Kv+)T@*l#76eUo5qWTkmG=L?x`_pyt*D5@8XiEdpeXcYpRyygRd+ znT>7K2RkNBO5B<>RD#feD*8ypCaL4QD^*Cm@G$evMdT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`FR9^94y zwq03^@adPtcu(Udz4Ys%(~&}(DlQS}DZ*}ho!Ki^&NC_PjXIL3R;ocmIgK N;QF@Thvv_${{Uwg+@Jse diff --git a/languages/social-media-buttons-toolbar-ru_RU.mo b/languages/social-media-buttons-toolbar-ru_RU.mo new file mode 100644 index 0000000000000000000000000000000000000000..4012a9977fd085da36e4d4a2b452e99cb916c386 GIT binary patch literal 5263 zcmbW4+ix6q6~`x~Tw?A8+KP+##ZsD>dN;dH1kpN9)!Z7Zi7<^r;Q?9W-JiV^@6N1d zW@8)m!H!9j5);!#l_)eofd^htowSbcj^Hntc}Ga(9f?OIUih5fZ+5*-ofa5*edc#N zm+$$W^V|K~6OX^?@I1}u>wNyoXFs2}_wbLW@R;L#99cwu5&0eDCy|55&m+Hw`~=cP zUPD%qTgZPR&m!ObnB(k4{tGGN#~yba{+t*2H-Q{NofeI(Ba&CmBEWW&A;6-aKE*q}Z1DptUiyAd|S_O^RGvmN_W9^)FBd<2C+)72oRjs1B8^$UQg4(DXs!1=d zswgOXZcWv7#dFoD)us;mL9C)GW_nfNqoC&b6P#1i0p=TFFy_^C)FU&lKdrD_)+!jY z%P$9EWhm59q$c%fF7jfXcTW4U4(;;Ah_}I0YAgtqcFTC6!^*bc4H_3zCGZc#YSQ&3R@FqIc!__4!B|j3x#y3!ulMzQ!cu4Cm2;Bp|^)%^oeuPpkiT=U8kN_AgwFKczO>iXk4>NaK@6*9mkF9I=r z+0&DG=S-+|&GpOLIjeD_SJkJL@7A?qQ*tD)@A`xRdnQy`(P&cXWZR;-7y*VO;hIn*k`tOz1(S+(s*;txDee!mba1Rm?;xv&`Bcs&DMECKm61q?5kmfKEc6W5VV~5=1uqU`g3&;&t za^GhU9j~Oa%$+xlEX$u7wymyf=)1$Ylc9E{Ip$75N-d1H{Efa8`f^UV_Z^Uv+Mle`P193 z7W0L!lL6rR=$LNcOsuEkL$p!P@23a4gdGoD96pmfy1h?qjp;CV+Ajwch*45UN4>af zsMdrOxidjnk4nm??ioe{hx?@k@H%kN-(M^Y3>4Kf&nS5<>>DT+)pM$#*v|O)KwoR= z*uW8aH75$kiUsw`EA|L`3O$@Da;C4Rzv~CN7c{NNMm`h(d8~^0qxmDO*kSI38|j7{ zS4%3N-=2MW=&W`t8ocbilQZ{DE@Kou#@tN#Mzyhh<^p$4S<_ktm6EcswC%j8rzg2^ zqH|uv;>bw z^J;gQ*S6XbKL{Guraxr|hpnBF5iSJU=~Ud_(-E0=!*X>9lyU`d+HK+VRJqoy=!$Ik zR{m1dJuE0}-o(8v zOo&ZEM1rv=1iUS^{Vj&+rQ}Wyj~A0wHZJC!c~Up&{oAV8Lz{@64zJoOC{~k~hUGLCx4VNw{hp%R*gY{R2T-tBV4DvXqna zg04a=i>Y-hKF9E=+#H00pC9) z5r#Q{Wizv3(7-5^v}W5p1-l0`Zzt~%`&FT#v1#BXC__}RF_Q}qW^V7uhoprSAplyz zCjFU2nOyHg31->+Cr5a34f|_&A_Xsgy_U{99W-FKz+?{CfM)TiBP8Rz z=|!Tx#hb+x+K7FNt1T+a9D-Uler~kVFNBipqs4Bghe-L)qJa9zi2VqgOL+Xcl=K`m zab38B7o5Z6d##eN=Fvw|m|wEUS|X_x2|oRT7$0ifq?dkO zayn9IQ^h4BJw@1UuQPka%6TTGy-`OJmE36phg_K?X8TSuB_!9A={7B9|6frbG#M5! zAG#K#KX;^(Hq7O|D-t-J@dLizCLv5%p78ZUxHpF)xtMJoQvw}dCU&{GJI#K?jq*QS uA|y$8)%xAU$&dKuM8vJ%PHeWno|rq{aYr!U`V}R+lUs0o$M-|?d+I+tU&g}# literal 0 HcmV?d00001 diff --git a/languages/smbtoolbar-ru_RU.po b/languages/social-media-buttons-toolbar-ru_RU.po similarity index 93% rename from languages/smbtoolbar-ru_RU.po rename to languages/social-media-buttons-toolbar-ru_RU.po index 93770cb..d02b4fd 100644 --- a/languages/smbtoolbar-ru_RU.po +++ b/languages/social-media-buttons-toolbar-ru_RU.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Social Media Buttons Toolbar\n" -"POT-Creation-Date: 2016-03-28 01:02+0300\n" -"PO-Revision-Date: 2016-03-28 01:02+0300\n" +"POT-Creation-Date: 2016-04-08 18:22+0300\n" +"PO-Revision-Date: 2016-04-08 18:23+0300\n" "Last-Translator: \n" "Language-Team: \n" "Language: ru\n" @@ -22,7 +22,7 @@ msgstr "" "X-Poedit-SearchPathExcluded-0: *.js\n" #. Plugin Name of the plugin/theme -#: inc/settings_page.php:24 social-media-buttons-toolbar.php:73 +#: inc/settings_page.php:24 social-media-buttons-toolbar.php:82 msgid "Social Media Buttons Toolbar" msgstr "" @@ -47,10 +47,20 @@ msgstr "" "место на вашем веб-сайте." #: inc/settings_page.php:45 +msgid "Help" +msgstr "Помощь" + +#: inc/settings_page.php:47 +msgid "If you want more options then tell me and I will be happy to add it." +msgstr "" +"Если вы хотите больше опций, то скажите мне об этом и я буду счастлив " +"добавить их." + +#: inc/settings_page.php:53 msgid "Donate" msgstr "Пожертвование" -#: inc/settings_page.php:48 +#: inc/settings_page.php:56 msgid "" "If you like this plugin and find it useful, help me to make this plugin even " "better and keep it up-to-date." @@ -58,20 +68,10 @@ msgstr "" "Если вам нравится этот плагин и вы находите его полезным, то помогите мне " "сделать этот плагин ещё лучше и держать его современным." -#: inc/settings_page.php:52 +#: inc/settings_page.php:60 msgid "Thanks for your support!" msgstr "Спасибо за вашу поддержку!" -#: inc/settings_page.php:57 -msgid "Help" -msgstr "Помощь" - -#: inc/settings_page.php:59 -msgid "If you want more options then tell me and I will be happy to add it." -msgstr "" -"Если вы хотите больше опций, то скажите мне об этом и я буду счастлив " -"добавить их." - #: inc/settings_page.php:65 msgid "Freelance" msgstr "Фриланс" @@ -162,11 +162,11 @@ msgid "" "to display the toolbar) in your theme files:" msgstr "" -#: social-media-buttons-toolbar.php:60 +#: social-media-buttons-toolbar.php:70 msgid "Settings" msgstr "Настройки" -#: social-media-buttons-toolbar.php:73 +#: social-media-buttons-toolbar.php:82 msgid "Social Buttons" msgstr "Социальные кнопки" @@ -183,13 +183,16 @@ msgstr "" "только ссылки на ваши профили) в любое место вашего WordPress веб-сайта." #. Author of the plugin/theme -msgid "Arthur \"Berserkr\" Gareginyan" -msgstr "Артур “Берсеркр” Гарегинян" +msgid "Arthur Gareginyan" +msgstr "Артур Гарегинян" #. Author URI of the plugin/theme msgid "http://www.arthurgareginyan.com" msgstr "" +#~ msgid "Arthur \"Berserkr\" Gareginyan" +#~ msgstr "Артур “Берсеркр” Гарегинян" + #~ msgid "" #~ "This plugin allows you to easily add the social media buttons toolbar to " #~ "any place of your web-site." diff --git a/languages/smbtoolbar.pot b/languages/social-media-buttons-toolbar.pot similarity index 92% rename from languages/smbtoolbar.pot rename to languages/social-media-buttons-toolbar.pot index c92c8c3..34fc0fd 100644 --- a/languages/smbtoolbar.pot +++ b/languages/social-media-buttons-toolbar.pot @@ -3,7 +3,7 @@ msgid "" msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Project-Id-Version: Social Media Buttons Toolbar\n" -"POT-Creation-Date: 2016-03-28 01:02+0300\n" +"POT-Creation-Date: 2016-04-08 18:22+0300\n" "PO-Revision-Date: 2015-12-17 02:16+0300\n" "Last-Translator: \n" "Language-Team: \n" @@ -21,7 +21,7 @@ msgstr "" "X-Poedit-SearchPathExcluded-0: *.js\n" #. Plugin Name of the plugin/theme -#: inc/settings_page.php:24 social-media-buttons-toolbar.php:73 +#: inc/settings_page.php:24 social-media-buttons-toolbar.php:82 msgid "Social Media Buttons Toolbar" msgstr "" @@ -42,27 +42,27 @@ msgid "" msgstr "" #: inc/settings_page.php:45 +msgid "Help" +msgstr "" + +#: inc/settings_page.php:47 +msgid "If you want more options then tell me and I will be happy to add it." +msgstr "" + +#: inc/settings_page.php:53 msgid "Donate" msgstr "" -#: inc/settings_page.php:48 +#: inc/settings_page.php:56 msgid "" "If you like this plugin and find it useful, help me to make this plugin even " "better and keep it up-to-date." msgstr "" -#: inc/settings_page.php:52 +#: inc/settings_page.php:60 msgid "Thanks for your support!" msgstr "" -#: inc/settings_page.php:57 -msgid "Help" -msgstr "" - -#: inc/settings_page.php:59 -msgid "If you want more options then tell me and I will be happy to add it." -msgstr "" - #: inc/settings_page.php:65 msgid "Freelance" msgstr "" @@ -143,11 +143,11 @@ msgid "" "to display the toolbar) in your theme files:" msgstr "" -#: social-media-buttons-toolbar.php:60 +#: social-media-buttons-toolbar.php:70 msgid "Settings" msgstr "" -#: social-media-buttons-toolbar.php:73 +#: social-media-buttons-toolbar.php:82 msgid "Social Buttons" msgstr "" @@ -162,7 +162,7 @@ msgid "" msgstr "" #. Author of the plugin/theme -msgid "Arthur \"Berserkr\" Gareginyan" +msgid "Arthur Gareginyan" msgstr "" #. Author URI of the plugin/theme diff --git a/readme.txt b/readme.txt index 197e08e..f3c7d67 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS Requires at least: 3.9 Tested up to: 4.4 -Stable tag: 1.4 +Stable tag: 1.5 License: GPL3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -65,13 +65,13 @@ D) For add the toolbar directly to a theme files, just add one of the following `` -**Got more ideas? Tell me!** - -If you have any suggestions to make this plugin better, don't hesitate to contact me. - -**Please Vote and Enjoy** - -Your votes really make a difference! Thanks. +>**Contribution** +> +>Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to: +> +>* Please [donate](http://www.arthurgareginyan.com/donate.html) to support ongoing development. Your contribution would be greatly appreciated. +>* Please take the time to [rate and review](https://wordpress.org/support/view/plugin-reviews/social-media-buttons-toolbar?rate=5#postform) this plugin. +>* Please [share with me](mailto:arthurgareginyan@gmail.com) if you have any ideas or suggestions to make this plugin better. == Installation == @@ -123,7 +123,7 @@ A. Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareg = Q. Where to share any ideas or suggestions to make the plugin better? = A. Please send me email [arthurgareginyan@gmail.com](mailto:arthurgareginyan@gmail.com). -= Q. I love this plugin! Can I help somehow? = += Q. I love this plugin! Can I help somehow? = A. Yes, any financial contributions are welcome! Just visit my website and click on the donate link, and thank you! [My website](http://www.arthurgareginyan.com/donate.html) @@ -148,23 +148,25 @@ Commercial licensing (e.g. for projects that can’t use an open-source license) Icon set [Social Buttons 2](https://www.iconfinder.com/iconsets/social-buttons-2) by Ivlichev Victor Petrovich and licensed under the [Creative Commons (Attribution 3.0 Unported)](http://creativecommons.org/licenses/by/3.0/). -**Support** - -* Did you enjoy this plugin? Please [donate to support ongoing development](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS). Your contribution would be greatly appreciated. -* Do you have any ideas or suggestions to make the plugin better? I can’t wait to hear them! Please share! [arthurgareginyan@gmail.com](mailto:arthurgareginyan@gmail.com) - -**Please Vote and Enjoy** - -* Your votes really make a difference! Thanks. - **Links** * [Developer Website](http://www.arthurgareginyan.com) * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar) == Changelog == -= 1.5 = -* Fixed: "Notice: Undefined index: new_tab in .../social-media-buttons-toolbar.php on line 240". += 2.0 = +* Some changes in design of settings page. +* Constants variables added. +* Text domain changed to "social-media-buttons-toolbar". +* Added compatibility with the translate.wordpress.org. +* All images are moved to the directory "images". +* Image "btn_donateCC_LG.gif" is now located in the "images" directory. +* Plugin URI changed to GitHub repository. +* Added my personal ad about freelance. +* .pot file updated. +* Russian translation updated. += 1.5 = +* Fixed: "Notice: Undefined index: new_tab in .../social-media-buttons-toolbar.php on line 240". = 1.4 = * Added 6 new buttons (LiveJournal, Pinterest, Tumblr, VKontakte, Odnoklassniki, Personal website). * Fixed: "Use of undefined constant media". @@ -198,24 +200,11 @@ Icon set [Social Buttons 2](https://www.iconfinder.com/iconsets/social-buttons-2 == Upgrade Notice == -= 1.5= -* Fixed: "Notice: Undefined index: new_tab in .../social-media-buttons-toolbar.php on line 240". -= 1.4 = -* Added 6 new buttons (LiveJournal, Pinterest, Tumblr, VKontakte, Odnoklassniki, Personal website). -* Fixed: "Use of undefined constant media". -* Plugin URI changed to GitHub repository. -* Some changes in design of settings page. -* Added my personal ad about freelance. -* .pot file updated. -* Russian translation updated. -= 1.3 = -* Some changes in design of settings page. -* On settings page added section "Using" with the using details. (Thanks Hubert O'Brien) -= 1.2 = -* Fixed the compatibility issue with some themes. The issue was caused by not a unique class names in the html tags. -* The default caption now is empty. The text "Follow me on social media:" is removed. -* Removed extra settings update message. -* The thanks.png image replaced. -= 1.1 = -* Authors URI changed. -* Icons updated. += 2.0 = +Please update to new release! += 1.0 = +Please update to first stable release! += 0.3 = +Prerelease. += 0.2 = +Please update to beta version. diff --git a/social-media-buttons-toolbar.php b/social-media-buttons-toolbar.php index a259bd7..ef39169 100644 --- a/social-media-buttons-toolbar.php +++ b/social-media-buttons-toolbar.php @@ -3,14 +3,14 @@ * Plugin Name: Social Media Buttons Toolbar * Plugin URI: https://github.com/ArthurGareginyan/social-media-buttons-toolbar * Description: Easily add the smart toolbar with social media buttons (not share, only link to your profiles) to any place of your WordPress web-site. - * Author: Arthur "Berserkr" Gareginyan + * Author: Arthur Gareginyan * Author URI: http://www.arthurgareginyan.com - * Version: 1.5 + * Version: 2.0 * License: GPL3 - * Text Domain: smbtoolbar + * Text Domain: social-media-buttons-toolbar * Domain Path: /languages/ * - * Copyright 2015-2016 Arthur "Berserkr" Gareginyan (email : arthurgareginyan@gmail.com) + * Copyright 2015-2016 Arthur Gareginyan (email : arthurgareginyan@gmail.com) * * This file is part of "Social Media Buttons Toolbar". * @@ -36,13 +36,23 @@ */ defined('ABSPATH') or die("Restricted access!"); +/** + * Plugin constants + * + * @since 2.0 + */ +defined('SMEDIABT_DIR') or define('SMEDIABT_DIR', dirname(plugin_basename(__FILE__))); +defined('SMEDIABT_BASE') or define('SMEDIABT_BASE', plugin_basename(__FILE__)); +defined('SMEDIABT_URL') or define('SMEDIABT_URL', plugin_dir_url(__FILE__)); +defined('SMEDIABT_PATH') or define('SMEDIABT_PATH', plugin_dir_path(__FILE__)); + /** * Register text domain * - * @since 0.1 + * @since 2.0 */ function smbtoolbar_textdomain() { - load_plugin_textdomain( 'smbtoolbar', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); + load_plugin_textdomain( 'social-media-buttons-toolbar', false, SMEDIABT_DIR . '/languages/' ); } add_action( 'init', 'smbtoolbar_textdomain' ); @@ -52,39 +62,38 @@ function smbtoolbar_textdomain() { * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit ) * and inserts a link to the Social Media Buttons Toolbar admin page * - * @since 0.1 + * @since 2.0 * @param array $links Array of links generated by WP in Plugin Admin page. * @return array Array of links to be output on Plugin Admin page. */ function smbtoolbar_settings_link( $links ) { - $settings_page = '' . __( 'Settings', 'smbtoolbar' ) . ''; + $settings_page = '' . __( 'Settings', 'social-media-buttons-toolbar' ) . ''; array_unshift( $links, $settings_page ); return $links; } -$plugin = plugin_basename( __FILE__ ); -add_filter( "plugin_action_links_$plugin", 'smbtoolbar_settings_link' ); +add_filter( "plugin_action_links_".SMEDIABT_BASE, 'smbtoolbar_settings_link' ); /** * Register "Social Media Buttons Toolbar" submenu in "Settings" Admin Menu * - * @since 0.1 + * @since 2.0 */ function smbtoolbar_register_submenu_page() { - add_options_page( __( 'Social Media Buttons Toolbar', 'smbtoolbar' ), __( 'Social Buttons', 'smbtoolbar' ), 'manage_options', basename( __FILE__ ), 'smbtoolbar_render_submenu_page' ); + add_options_page( __( 'Social Media Buttons Toolbar', 'social-media-buttons-toolbar' ), __( 'Social Buttons', 'social-media-buttons-toolbar' ), 'manage_options', basename( __FILE__ ), 'smbtoolbar_render_submenu_page' ); } add_action( 'admin_menu', 'smbtoolbar_register_submenu_page' ); /** * Attach Settings Page * - * @since 0.1 + * @since 2.0 */ -require_once( plugin_dir_path( __FILE__ ) . 'inc/settings_page.php' ); +require_once( SMEDIABT_PATH . 'inc/settings_page.php' ); /** * Enqueue style sheet for setting's page * - * @since 0.1 + * @since 2.0 */ function smbtoolbar_enqueue_scripts($hook) { @@ -93,7 +102,7 @@ function smbtoolbar_enqueue_scripts($hook) { return; } - wp_enqueue_style('styles', plugin_dir_url(__FILE__) . 'inc/style-admin.css'); + wp_enqueue_style('styles', SMEDIABT_URL . 'inc/style-admin.css'); } add_action('admin_enqueue_scripts', 'smbtoolbar_enqueue_scripts'); @@ -216,7 +225,7 @@ function smbtoolbar_setting($name, $label, $help=null, $field=null, $placeholder /** * Generate the buttons toolbar * - * @since 1.5 + * @since 2.0 */ function smbtoolbar_tollbar() { @@ -262,7 +271,7 @@ function smbtoolbar_tollbar() { } if ($key == "content") { if (!empty($value)) { - $icon = plugins_url( "inc/social-media-icons/$slag.png", __FILE__ ); + $icon = plugins_url( "inc/images/social-media-icons/$slag.png", __FILE__ ); $metatags_arr[] = '
  • ' . $label . ' @@ -357,5 +366,4 @@ function smbtoolbar_uninstall() { } register_uninstall_hook( __FILE__, 'smbtoolbar_uninstall' ); -/* That's all folks! */ ?> \ No newline at end of file