Version Description
- First stable release.
Download this release
Release Info
Developer | xradar |
Plugin | Simple Social Media Share Buttons – Social Sharing for Everyone |
Version | 1.0 |
Comparing to | |
See all releases |
Version 1.0
- lang/simplesocialbuttons-pl_PL.mo +0 -0
- lang/simplesocialbuttons-pl_PL.po +182 -0
- readme.txt +77 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.jpg +0 -0
- simple-social-buttons.php +222 -0
- ssb-admin.php +188 -0
- uninstall.php +23 -0
lang/simplesocialbuttons-pl_PL.mo
ADDED
Binary file
|
lang/simplesocialbuttons-pl_PL.po
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: simplesocialbuttons\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-09-20 09:50+0100\n"
|
6 |
+
"PO-Revision-Date: 2011-09-20 09:51+0100\n"
|
7 |
+
"Last-Translator: Paweł Rabinek <pawel@rabinek.pl>\n"
|
8 |
+
"Language-Team: Paweł Rabinek <pawel@rabinek.pl>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-Language: Polish\n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-SearchPath-0: ..\n"
|
17 |
+
|
18 |
+
#: ../simple-social-buttons.php:199
|
19 |
+
#: ../ssb-admin.php:11
|
20 |
+
msgid "Settings"
|
21 |
+
msgstr "Ustawienia"
|
22 |
+
|
23 |
+
#: ../ssb-admin.php:13
|
24 |
+
msgid "<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong> and <strong>Twitter share</strong>. The most flexible social buttons plugin ever."
|
25 |
+
msgstr "<strong>Simple Social Buttons</strong>, autor <strong>Paweł Rabinek</strong>. Wtyczka dodaje do wpisów przyciski: <strong>Google +1</strong>, <strong>Facebook Lubię to</strong> oraz <strong>Twitter</strong>. Najlepsza wtyczka z przyciskami social media dla Wordpress."
|
26 |
+
|
27 |
+
#: ../ssb-admin.php:90
|
28 |
+
msgid "Select buttons"
|
29 |
+
msgstr "Wybór przycisków"
|
30 |
+
|
31 |
+
#: ../ssb-admin.php:92
|
32 |
+
msgid "Select social media buttons:"
|
33 |
+
msgstr "Wybierz przyciski do wyświetlenia:"
|
34 |
+
|
35 |
+
#: ../ssb-admin.php:94
|
36 |
+
msgid "Google plus one (+1)"
|
37 |
+
msgstr "Google plus jeden (+1)"
|
38 |
+
|
39 |
+
#: ../ssb-admin.php:95
|
40 |
+
msgid "Facebook Like it"
|
41 |
+
msgstr "Facebook Lubię to"
|
42 |
+
|
43 |
+
#: ../ssb-admin.php:96
|
44 |
+
msgid "Twitter share"
|
45 |
+
msgstr "Wyślij na Twitter"
|
46 |
+
|
47 |
+
#: ../ssb-admin.php:101
|
48 |
+
msgid "Single posts - display settings"
|
49 |
+
msgstr "Pojedyńcze wpisy - ustawienia"
|
50 |
+
|
51 |
+
#: ../ssb-admin.php:103
|
52 |
+
msgid "Place buttons on single post:"
|
53 |
+
msgstr "Miejsce przycisków na podstronie wpisu:"
|
54 |
+
|
55 |
+
#: ../ssb-admin.php:104
|
56 |
+
#: ../ssb-admin.php:128
|
57 |
+
msgid "Before the content"
|
58 |
+
msgstr "Nad treścią wpisu"
|
59 |
+
|
60 |
+
#: ../ssb-admin.php:105
|
61 |
+
#: ../ssb-admin.php:129
|
62 |
+
msgid "After the content"
|
63 |
+
msgstr "Pod treścią wpisu"
|
64 |
+
|
65 |
+
#: ../ssb-admin.php:110
|
66 |
+
msgid "Single pages - display settings"
|
67 |
+
msgstr "Pojedyńcze strony - ustawienia"
|
68 |
+
|
69 |
+
#: ../ssb-admin.php:112
|
70 |
+
msgid "Place buttons on single pages:"
|
71 |
+
msgstr "Miejsce przycisków na stronach:"
|
72 |
+
|
73 |
+
#: ../ssb-admin.php:113
|
74 |
+
msgid "Before the page content"
|
75 |
+
msgstr "Nad treścią strony"
|
76 |
+
|
77 |
+
#: ../ssb-admin.php:114
|
78 |
+
msgid "After the page content"
|
79 |
+
msgstr "Pod treścią strony"
|
80 |
+
|
81 |
+
#: ../ssb-admin.php:119
|
82 |
+
msgid "Archives - display settings"
|
83 |
+
msgstr "Archiwa - ustawienia"
|
84 |
+
|
85 |
+
#: ../ssb-admin.php:121
|
86 |
+
msgid "Select additional places to display buttons:"
|
87 |
+
msgstr "Dodatkowe miejsca do wyświetlenia przycisków:"
|
88 |
+
|
89 |
+
#: ../ssb-admin.php:122
|
90 |
+
msgid "Show at frontpage"
|
91 |
+
msgstr "Pokazuj na stronie głównej"
|
92 |
+
|
93 |
+
#: ../ssb-admin.php:123
|
94 |
+
msgid "Show at category pages"
|
95 |
+
msgstr "Pokazuj na stroniach kategorii"
|
96 |
+
|
97 |
+
#: ../ssb-admin.php:124
|
98 |
+
msgid "Show at archive pages"
|
99 |
+
msgstr "Pokazuje w archiwum dat"
|
100 |
+
|
101 |
+
#: ../ssb-admin.php:125
|
102 |
+
msgid "Show at tag pages"
|
103 |
+
msgstr "Pokazuj na stronach tagów"
|
104 |
+
|
105 |
+
#: ../ssb-admin.php:127
|
106 |
+
msgid "Place buttons on archives:"
|
107 |
+
msgstr "Miejsce przycisków na stronach archiwum:"
|
108 |
+
|
109 |
+
#: ../ssb-admin.php:135
|
110 |
+
msgid "Save settings"
|
111 |
+
msgstr "Zapisz ustawienia"
|
112 |
+
|
113 |
+
#: ../ssb-admin.php:145
|
114 |
+
msgid "About this plugin:"
|
115 |
+
msgstr "Informacje o wtyczce:"
|
116 |
+
|
117 |
+
#: ../ssb-admin.php:147
|
118 |
+
msgid "Talk to <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> on twitter for bugs or feature requests."
|
119 |
+
msgstr "Napisz do mnie <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> na Twitterze, jeżeli znalazłeś błąd lub masz pomysł na ulepszenie wtyczki."
|
120 |
+
|
121 |
+
#: ../ssb-admin.php:148
|
122 |
+
msgid "Enjoy the plugin?"
|
123 |
+
msgstr "Podoba Ci się wtyczka?"
|
124 |
+
|
125 |
+
#: ../ssb-admin.php:149
|
126 |
+
msgid "<a href=\"http://twitter.com/?status=I'm using @rabinek's WordPress Simple Social Buttons plugin - check it out! http://blog.rabinek.pl/\" target=\"_blank\">Tweet about it</a> and consider donating."
|
127 |
+
msgstr "<a href=\"http://twitter.com/?status=Używam wtyczki do Wordpressa od @rabinek - WordPress Simple Social Buttons! http://blog.rabinek.pl/\" target=\"_blank\">Powiedz o niej na Twitterze</a> i rozważ wsparcie dla tej wtyczki (poniżej)."
|
128 |
+
|
129 |
+
#: ../ssb-admin.php:150
|
130 |
+
msgid "<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!"
|
131 |
+
msgstr "<strong>Wsparcie:</strong> Wiele pracy trzeba włożyć w napisanie takiej wtyczki. Jeżeli korzystasz z niej i podoba Ci się, postaw mi piwo klikając Donate."
|
132 |
+
|
133 |
+
#: ../ssb-admin.php:162
|
134 |
+
msgid "About the author:"
|
135 |
+
msgstr "Informacje o autorze:"
|
136 |
+
|
137 |
+
#: ../ssb-admin.php:164
|
138 |
+
msgid "Hi! My name is Paweł Rabinek (aka xradar). I'm interesed in SEO and social media, PHP and Wordpress developement."
|
139 |
+
msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar). Zawodowo zajmuje się SEO i mediami społecznościowymi. Programuję w PHP, często z wykorzystaniem Wordpressa."
|
140 |
+
|
141 |
+
#: ../ssb-admin.php:166
|
142 |
+
msgid "My blog about SEO"
|
143 |
+
msgstr "Mój blog o SEO"
|
144 |
+
|
145 |
+
#: ../ssb-admin.php:166
|
146 |
+
msgid "[Polish]"
|
147 |
+
msgstr " "
|
148 |
+
|
149 |
+
#: ../ssb-admin.php:167
|
150 |
+
msgid "Follow me on Twitter"
|
151 |
+
msgstr "Napisz do mnie na Twitter"
|
152 |
+
|
153 |
+
#: ../ssb-admin.php:168
|
154 |
+
msgid "Paweł Rabinek on Facebook"
|
155 |
+
msgstr "Paweł Rabinek na Facebook"
|
156 |
+
|
157 |
+
#: ../ssb-admin.php:169
|
158 |
+
msgid "Paweł Rabinek on Google Plus"
|
159 |
+
msgstr "Paweł Rabinek na Google Plus"
|
160 |
+
|
161 |
+
#: ../ssb-admin.php:170
|
162 |
+
msgid "LinkedIn profile"
|
163 |
+
msgstr "Profil na LinkedIn"
|
164 |
+
|
165 |
+
#: ../ssb-admin.php:176
|
166 |
+
msgid "Usefull links:"
|
167 |
+
msgstr "Przydatne linki:"
|
168 |
+
|
169 |
+
#: ../ssb-admin.php:179
|
170 |
+
msgid "Unlimited web hosting"
|
171 |
+
msgstr "Nielimitowany hosting stron"
|
172 |
+
|
173 |
+
#: ../ssb-admin.php:180
|
174 |
+
msgid "Best SEO software"
|
175 |
+
msgstr "Najlepsze oprogramowanie SEO"
|
176 |
+
|
177 |
+
#: ../ssb-admin.php:181
|
178 |
+
msgid "Wordpress templates"
|
179 |
+
msgstr "Szablony do Wordpress"
|
180 |
+
|
181 |
+
#~ msgid "Hi! My name is Paweł Rabinek (aka xradar)."
|
182 |
+
#~ msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar)."
|
readme.txt
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Plugin Name ===
|
2 |
+
Contributors: xradar
|
3 |
+
Donate link: http://blog.rabinek.pl/
|
4 |
+
Tags: facebook, google, twitter, plus one, like it, like, share
|
5 |
+
Requires at least: 2.8
|
6 |
+
Tested up to: 3.2.1
|
7 |
+
Stable tag: 1.0
|
8 |
+
|
9 |
+
Insert and customize social buttons: Facebook Like it, Google plus +1 and Twitter share. Share your content with friends.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
Simple Social Buttons adds to your posts social network buttons, such as: Facebook "Like it!", Google plus on "+1" and Twitter share. Plugin is fully customizable. You can decide where to put those buttons:
|
14 |
+
|
15 |
+
- Buttons above the post content
|
16 |
+
- Buttons under the post content
|
17 |
+
- Buttons above and under the post
|
18 |
+
|
19 |
+
That's not all. Simple Social Buttons can also add social media buttons to:
|
20 |
+
|
21 |
+
- Static Pages
|
22 |
+
- Front Page
|
23 |
+
- Posts Categories
|
24 |
+
- Date Archives
|
25 |
+
- Tags Archives
|
26 |
+
|
27 |
+
Let your visitors share your content with friends and let them promote your blog. Facebook, Google plus and Twitter are the most popular social networks nowadays. Don't miss the opportunity, and help publish your content and links to those social media networks.
|
28 |
+
|
29 |
+
Simple Social Buttons is currently in the following languages:
|
30 |
+
|
31 |
+
- English
|
32 |
+
- Polish (język polski)
|
33 |
+
|
34 |
+
Feel free if you want to create a translation of this plugin. Contact me via e-mail or Twitter, and I'll add your's translation to Simple Social Buttons.
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
== Installation ==
|
39 |
+
|
40 |
+
1. Download the latest version of Simple Social Buttons
|
41 |
+
2. Upload folder named simple-social-buttons to the /wp-content/plugins/ directory
|
42 |
+
3. Activate the plugin through the 'Plugins' menu in WordPress
|
43 |
+
4. (Optional) Customize the buttons in the Settings > Simple Social Buttons menu
|
44 |
+
|
45 |
+
That's it. Buttons will show on your blog posts.
|
46 |
+
|
47 |
+
|
48 |
+
== Frequently Asked Questions ==
|
49 |
+
|
50 |
+
= Is the plugin free? =
|
51 |
+
|
52 |
+
Yes, it's free. I hope you like it :) If so you can buy me a coffee by doing paypal donate.
|
53 |
+
|
54 |
+
= Is the plug will be developed? =
|
55 |
+
|
56 |
+
Yes. I've some plans about developing Simple Social Buttons. There will be more buttons, more customization, and more powerfull! Follow me on Twitter @rabinek and stay tuned.
|
57 |
+
|
58 |
+
= Why use this plugin? =
|
59 |
+
|
60 |
+
This plugin automatically adds the Facebook Like button, Google plus one +1 and Twitter share button for each post on your blog. This is the simples and effective way to promote your blog in social media networks.
|
61 |
+
|
62 |
+
= How about support? =
|
63 |
+
|
64 |
+
Follow me at Twitter @rabinek or send me a mention. I'll reply as soon as I get it.
|
65 |
+
|
66 |
+
== Screenshots ==
|
67 |
+
|
68 |
+
1. Simple Social Buttons - plugin options
|
69 |
+
2. Plugin example
|
70 |
+
3. Plugin on archive
|
71 |
+
|
72 |
+
|
73 |
+
== Changelog ==
|
74 |
+
|
75 |
+
= 1.0 =
|
76 |
+
* First stable release.
|
77 |
+
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.jpg
ADDED
Binary file
|
simple-social-buttons.php
ADDED
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Simple Social Buttons
|
4 |
+
Plugin URI: http://blog.rabinek.pl/
|
5 |
+
Description: Insert social buttons into posts and archives: Facebook "Like it", Google Plus One "+1" and Twitter share.
|
6 |
+
Author: Paweł Rabinek
|
7 |
+
Version: 1.0
|
8 |
+
Author URI: http://blog.rabinek.pl/simple-social-buttons/
|
9 |
+
*/
|
10 |
+
|
11 |
+
/* Copyright 2011, Paweł Rabinek (xradar) (email : pawel@rabinek.pl)
|
12 |
+
|
13 |
+
This program is free software; you can redistribute it and/or modify
|
14 |
+
it under the terms of the GNU General Public License, version 2, as
|
15 |
+
published by the Free Software Foundation.
|
16 |
+
|
17 |
+
This program is distributed in the hope that it will be useful,
|
18 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
+
GNU General Public License for more details.
|
21 |
+
|
22 |
+
You should have received a copy of the GNU General Public License
|
23 |
+
along with this program; if not, write to the Free Software
|
24 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
+
*/
|
26 |
+
|
27 |
+
function ssb_include_social_js() { ?>
|
28 |
+
|
29 |
+
<!-- Simple Social Buttons plugin -->
|
30 |
+
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
31 |
+
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
32 |
+
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
|
33 |
+
<!-- End of Simple Social Buttons -->
|
34 |
+
|
35 |
+
<?php }
|
36 |
+
|
37 |
+
|
38 |
+
add_action('wp_footer', 'ssb_include_social_js');
|
39 |
+
|
40 |
+
function ssb_include_css() { ?>
|
41 |
+
|
42 |
+
<!-- Simple Social Buttons style sheet -->
|
43 |
+
<style type="text/css">
|
44 |
+
div.simplesocialbuttons { height: 20px; margin: 10px auto 10px 0; text-align: center; clear: left; }
|
45 |
+
div.simplesocialbutton { float: left; text-align: center; }
|
46 |
+
</style>
|
47 |
+
<!-- End of Simple Social Buttons -->
|
48 |
+
|
49 |
+
<?php }
|
50 |
+
|
51 |
+
add_action('wp_head', 'ssb_include_css');
|
52 |
+
|
53 |
+
|
54 |
+
//insert the buttons after post contents
|
55 |
+
function ssb_insert_buttons($content) {
|
56 |
+
|
57 |
+
if(!ssb_where_to_insert()) {
|
58 |
+
return $content;
|
59 |
+
}
|
60 |
+
|
61 |
+
// get post permalink
|
62 |
+
$permalink = get_permalink();
|
63 |
+
$title = get_the_title();
|
64 |
+
|
65 |
+
// get settings from database
|
66 |
+
$ssb_googleplus = get_option('ssb_googleplus');
|
67 |
+
$ssb_fblike = get_option('ssb_fblike');
|
68 |
+
$ssb_twitter = get_option('ssb_twitter');
|
69 |
+
|
70 |
+
$ssb_beforepost = get_option('ssb_beforepost');
|
71 |
+
$ssb_afterpost = get_option('ssb_afterpost');
|
72 |
+
|
73 |
+
$ssb_beforepage = get_option('ssb_beforepage');
|
74 |
+
$ssb_afterpage = get_option('ssb_afterpage');
|
75 |
+
|
76 |
+
$ssb_beforearchive = get_option('ssb_beforearchive');
|
77 |
+
$ssb_afterarchive = get_option('ssb_afterarchive');
|
78 |
+
|
79 |
+
|
80 |
+
$ssb_buttonscode = '<div class="simplesocialbuttons">'."\n";
|
81 |
+
if($ssb_googleplus) {
|
82 |
+
$ssb_buttonscode .= '<div class="simplesocialbutton"><!-- Google Plus One--><g:plusone size="medium" count="true" href="'.$permalink.'"></g:plusone></div>'."\n";
|
83 |
+
}
|
84 |
+
if($ssb_fblike) {
|
85 |
+
$ssb_buttonscode .= '<div class="simplesocialbutton"><!-- Facebook like--><div id="fb-root"></div><fb:like href="'.$permalink.'" send="false" layout="button_count" width="100" show_faces="false" action="like" font=""></fb:like></div>'."\n";
|
86 |
+
}
|
87 |
+
if($ssb_twitter) {
|
88 |
+
$ssb_buttonscode .= '<div class="simplesocialbutton"><!-- Twitter--><a name="twitter_share" data-count="horizontal" href="http://twitter.com/share" data-text="'.$title.'" data-url="'.$permalink.'" class="twitter-share-button" rel="nofollow"></a></div>'."\n";
|
89 |
+
}
|
90 |
+
$ssb_buttonscode .= '</div>'."\n";
|
91 |
+
|
92 |
+
|
93 |
+
if(is_single()) {
|
94 |
+
if($ssb_beforepost) {
|
95 |
+
$content = $ssb_buttonscode.$content;
|
96 |
+
}
|
97 |
+
if($ssb_afterpost) {
|
98 |
+
$content = $content.$ssb_buttonscode;
|
99 |
+
}
|
100 |
+
}else if(is_page()) {
|
101 |
+
if($ssb_beforepage) {
|
102 |
+
$content = $ssb_buttonscode.$content;
|
103 |
+
}
|
104 |
+
if($ssb_afterpage) {
|
105 |
+
$content = $content.$ssb_buttonscode;
|
106 |
+
}
|
107 |
+
}else{
|
108 |
+
if($ssb_beforearchive) {
|
109 |
+
$content = $ssb_buttonscode.$content;
|
110 |
+
}
|
111 |
+
if($ssb_afterarchive) {
|
112 |
+
$content = $content.$ssb_buttonscode;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
+
return $content;
|
117 |
+
|
118 |
+
|
119 |
+
}
|
120 |
+
|
121 |
+
function ssb_where_to_insert()
|
122 |
+
{
|
123 |
+
|
124 |
+
// display on single post?
|
125 |
+
$ssb_beforepost = get_option('ssb_beforepost');
|
126 |
+
$ssb_afterpost = get_option('ssb_afterpost');
|
127 |
+
if(is_single() && ($ssb_beforepost || $ssb_afterpost))
|
128 |
+
{
|
129 |
+
return true;
|
130 |
+
}
|
131 |
+
|
132 |
+
// display on single page?
|
133 |
+
$ssb_beforepage = get_option('ssb_beforepage');
|
134 |
+
$ssb_afterpage = get_option('ssb_afterpage');
|
135 |
+
if(is_page() && ($ssb_beforepage || $ssb_afterpage))
|
136 |
+
{
|
137 |
+
return true;
|
138 |
+
}
|
139 |
+
|
140 |
+
// display on frontpage, categories, archives, tags?
|
141 |
+
$ssb_showfront = get_option('ssb_showfront');
|
142 |
+
$ssb_showcategory = get_option('ssb_showcategory');
|
143 |
+
$ssb_showarchive = get_option('ssb_showarchive');
|
144 |
+
$ssb_showtag = get_option('ssb_showtag');
|
145 |
+
|
146 |
+
if(is_front_page() && $ssb_showfront)
|
147 |
+
{
|
148 |
+
return true;
|
149 |
+
}
|
150 |
+
|
151 |
+
if(is_category() && $ssb_showcategory)
|
152 |
+
{
|
153 |
+
return true;
|
154 |
+
}
|
155 |
+
|
156 |
+
if(is_date() && $ssb_showarchive)
|
157 |
+
{
|
158 |
+
return true;
|
159 |
+
}
|
160 |
+
|
161 |
+
if(is_tag() && $ssb_showtag)
|
162 |
+
{
|
163 |
+
return true;
|
164 |
+
}
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
add_filter ('the_content', 'ssb_insert_buttons');
|
169 |
+
add_filter ('the_excerpt', 'ssb_insert_buttons');
|
170 |
+
|
171 |
+
function ssb_menu()
|
172 |
+
{
|
173 |
+
global $wpdb;
|
174 |
+
include 'ssb-admin.php';
|
175 |
+
}
|
176 |
+
|
177 |
+
function ssb_admin_actions()
|
178 |
+
{
|
179 |
+
add_options_page("Simple Social Buttons ", "Simple Social Buttons ", 1, "simple-social-buttons", "ssb_menu");
|
180 |
+
}
|
181 |
+
|
182 |
+
add_action('admin_menu', 'ssb_admin_actions');
|
183 |
+
|
184 |
+
|
185 |
+
|
186 |
+
add_filter('plugin_action_links', 'ssb_plugin_action_links', 10, 2);
|
187 |
+
|
188 |
+
function ssb_plugin_action_links($links, $file) {
|
189 |
+
static $this_plugin;
|
190 |
+
|
191 |
+
if (!$this_plugin) {
|
192 |
+
$this_plugin = plugin_basename(__FILE__);
|
193 |
+
}
|
194 |
+
|
195 |
+
if ($file == $this_plugin) {
|
196 |
+
// The "page" query string value must be equal to the slug
|
197 |
+
// of the Settings admin page we defined earlier, which in
|
198 |
+
// this case equals "myplugin-settings".
|
199 |
+
$settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=simple-social-buttons">'.__("Settings", "simplesocialbuttons").'</a>';
|
200 |
+
array_unshift($links, $settings_link);
|
201 |
+
}
|
202 |
+
|
203 |
+
return $links;
|
204 |
+
}
|
205 |
+
|
206 |
+
// install and default settings
|
207 |
+
function ssb_set_defaults()
|
208 |
+
{
|
209 |
+
add_option( "ssb_googleplus", "1", "", "yes" );
|
210 |
+
add_option( "ssb_fblike", "1", "", "yes" );
|
211 |
+
add_option( "ssb_twitter", "1", "", "yes" );
|
212 |
+
add_option( "ssb_beforepost", "1", "", "yes" );
|
213 |
+
}
|
214 |
+
register_activation_hook( __FILE__, 'ssb_set_defaults' );
|
215 |
+
|
216 |
+
function ssb_init()
|
217 |
+
{
|
218 |
+
load_plugin_textdomain( 'simplesocialbuttons', '', dirname(plugin_basename( __FILE__ ))."/lang" );
|
219 |
+
}
|
220 |
+
add_action( 'init', 'ssb_init' );
|
221 |
+
|
222 |
+
?>
|
ssb-admin.php
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="wrap">
|
2 |
+
|
3 |
+
<style type="text/css">
|
4 |
+
div.inside ul li {
|
5 |
+
line-height: 16px;
|
6 |
+
list-style-type: square;
|
7 |
+
margin-left: 15px;
|
8 |
+
}
|
9 |
+
</style>
|
10 |
+
|
11 |
+
<h2>Simple Social Buttons - <?php _e('Settings', 'simplesocialbuttons'); ?></h2>
|
12 |
+
|
13 |
+
<p><?php _e('<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong> and <strong>Twitter share</strong>. The most flexible social buttons plugin ever.', 'simplesocialbuttons'); ?></p>
|
14 |
+
|
15 |
+
<?php
|
16 |
+
|
17 |
+
if($_POST['hiddenconfirm'] == 'Y') {
|
18 |
+
|
19 |
+
// save settings
|
20 |
+
|
21 |
+
$ssb_googleplus = $_POST['ssb_googleplus'];
|
22 |
+
update_option('ssb_googleplus', $ssb_googleplus);
|
23 |
+
|
24 |
+
$ssb_fblike = $_POST['ssb_fblike'];
|
25 |
+
update_option('ssb_fblike', $ssb_fblike);
|
26 |
+
|
27 |
+
$ssb_twitter = $_POST['ssb_twitter'];
|
28 |
+
update_option('ssb_twitter', $ssb_twitter);
|
29 |
+
|
30 |
+
$ssb_beforepost = $_POST['ssb_beforepost'];
|
31 |
+
update_option('ssb_beforepost', $ssb_beforepost);
|
32 |
+
|
33 |
+
$ssb_afterpost = $_POST['ssb_afterpost'];
|
34 |
+
update_option('ssb_afterpost', $ssb_afterpost);
|
35 |
+
|
36 |
+
$ssb_beforepage = $_POST['ssb_beforepage'];
|
37 |
+
update_option('ssb_beforepage', $ssb_beforepage);
|
38 |
+
|
39 |
+
$ssb_afterpage = $_POST['ssb_afterpage'];
|
40 |
+
update_option('ssb_afterpage', $ssb_afterpage);
|
41 |
+
|
42 |
+
$ssb_showfront = $_POST['ssb_showfront'];
|
43 |
+
update_option('ssb_showfront', $ssb_showfront);
|
44 |
+
|
45 |
+
$ssb_showcategory = $_POST['ssb_showcategory'];
|
46 |
+
update_option('ssb_showcategory', $ssb_showcategory);
|
47 |
+
|
48 |
+
$ssb_showarchive = $_POST['ssb_showarchive'];
|
49 |
+
update_option('ssb_showarchive', $ssb_showarchive);
|
50 |
+
|
51 |
+
$ssb_showtag = $_POST['ssb_showtag'];
|
52 |
+
update_option('ssb_showtag', $ssb_showtag);
|
53 |
+
|
54 |
+
$ssb_beforearchive = $_POST['ssb_beforearchive'];
|
55 |
+
update_option('ssb_beforearchive', $ssb_beforearchive);
|
56 |
+
|
57 |
+
$ssb_afterarchive = $_POST['ssb_afterarchive'];
|
58 |
+
update_option('ssb_afterarchive', $ssb_afterarchive);
|
59 |
+
|
60 |
+
}else{
|
61 |
+
|
62 |
+
// get settings from database
|
63 |
+
$ssb_googleplus = get_option('ssb_googleplus');
|
64 |
+
$ssb_fblike = get_option('ssb_fblike');
|
65 |
+
$ssb_twitter = get_option('ssb_twitter');
|
66 |
+
|
67 |
+
$ssb_beforepost = get_option('ssb_beforepost');
|
68 |
+
$ssb_afterpost = get_option('ssb_afterpost');
|
69 |
+
|
70 |
+
$ssb_beforepage = get_option('ssb_beforepage');
|
71 |
+
$ssb_afterpage = get_option('ssb_afterpage');
|
72 |
+
|
73 |
+
$ssb_showfront = get_option('ssb_showfront');
|
74 |
+
$ssb_showcategory = get_option('ssb_showcategory');
|
75 |
+
$ssb_showarchive = get_option('ssb_showarchive');
|
76 |
+
$ssb_showtag = get_option('ssb_showtag');
|
77 |
+
|
78 |
+
$ssb_beforearchive = get_option('ssb_beforearchive');
|
79 |
+
$ssb_afterarchive = get_option('ssb_afterarchive');
|
80 |
+
}
|
81 |
+
|
82 |
+
?>
|
83 |
+
|
84 |
+
|
85 |
+
<div class="postbox-container" style="width:69%">
|
86 |
+
<div id="poststuff">
|
87 |
+
<form name="ssb_form" method="post" action="">
|
88 |
+
|
89 |
+
<div class="postbox">
|
90 |
+
<h3><?php _e('Select buttons', 'simplesocialbuttons'); ?></h3>
|
91 |
+
<div class="inside">
|
92 |
+
<h4><?php _e('Select social media buttons:', 'simplesocialbuttons'); ?></h4>
|
93 |
+
|
94 |
+
<p><input type="checkbox" name="ssb_googleplus" id="ssb_googleplus" value="1" <?php if(!empty($ssb_googleplus)) { ?>checked="checked"<?php } ?> /> <label for="ssb_googleplus"><?php _e('Google plus one (+1)', 'simplesocialbuttons'); ?></label></p>
|
95 |
+
<p><input type="checkbox" name="ssb_fblike" id="ssb_fblike" value="1" <?php if(!empty($ssb_fblike)) { ?>checked="checked"<?php } ?> /> <label for="ssb_fblike"><?php _e('Facebook Like it', 'simplesocialbuttons'); ?></label></p>
|
96 |
+
<p><input type="checkbox" name="ssb_twitter" id="ssb_twitter" value="1" <?php if(!empty($ssb_twitter)) { ?>checked="checked"<?php } ?> /> <label for="ssb_twitter"><?php _e('Twitter share', 'simplesocialbuttons'); ?></label></p>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
<div class="postbox">
|
101 |
+
<h3><?php _e('Single posts - display settings', 'simplesocialbuttons'); ?></h3>
|
102 |
+
<div class="inside">
|
103 |
+
<h4><?php _e('Place buttons on single post:', 'simplesocialbuttons'); ?></h4>
|
104 |
+
<p><input type="checkbox" name="ssb_beforepost" id="ssb_beforepost" value="1" <?php if(!empty($ssb_beforepost)) { ?>checked="checked"<?php } ?> /> <label for="ssb_beforepost"><?php _e('Before the content', 'simplesocialbuttons'); ?></label></p>
|
105 |
+
<p><input type="checkbox" name="ssb_afterpost" id="ssb_afterpost" value="1" <?php if(!empty($ssb_afterpost)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterpost"><?php _e('After the content', 'simplesocialbuttons'); ?></label></p>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
|
109 |
+
<div class="postbox">
|
110 |
+
<h3><?php _e('Single pages - display settings', 'simplesocialbuttons'); ?></h3>
|
111 |
+
<div class="inside">
|
112 |
+
<h4><?php _e('Place buttons on single pages:', 'simplesocialbuttons'); ?></h4>
|
113 |
+
<p><input type="checkbox" name="ssb_beforepage" id="ssb_beforepage" value="1" <?php if(!empty($ssb_beforepage)) { ?>checked="checked"<?php } ?> /> <label for="ssb_beforepage"><?php _e('Before the page content', 'simplesocialbuttons'); ?></label></p>
|
114 |
+
<p><input type="checkbox" name="ssb_afterpage" id="ssb_afterpage" value="1" <?php if(!empty($ssb_afterpage)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterpage"><?php _e('After the page content', 'simplesocialbuttons'); ?></label></p>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<div class="postbox">
|
119 |
+
<h3><?php _e('Archives - display settings', 'simplesocialbuttons'); ?></h3>
|
120 |
+
<div class="inside">
|
121 |
+
<h4><?php _e('Select additional places to display buttons:', 'simplesocialbuttons'); ?></h4>
|
122 |
+
<p><input type="checkbox" name="ssb_showfront" id="ssb_showfront" value="1" <?php if(!empty($ssb_showfront)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showfront"><?php _e('Show at frontpage', 'simplesocialbuttons'); ?></label></p>
|
123 |
+
<p><input type="checkbox" name="ssb_showcategory" id="ssb_showcategory" value="1" <?php if(!empty($ssb_showcategory)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showcategory"><?php _e('Show at category pages', 'simplesocialbuttons'); ?></label></p>
|
124 |
+
<p><input type="checkbox" name="ssb_showarchive" id="ssb_showarchive" value="1" <?php if(!empty($ssb_showarchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showarchive"><?php _e('Show at archive pages', 'simplesocialbuttons'); ?></label></p>
|
125 |
+
<p><input type="checkbox" name="ssb_showtag" id="ssb_showtag" value="1" <?php if(!empty($ssb_showtag)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showtag"><?php _e('Show at tag pages', 'simplesocialbuttons'); ?></label></p>
|
126 |
+
|
127 |
+
<h4><?php _e('Place buttons on archives:', 'simplesocialbuttons'); ?></h4>
|
128 |
+
<p><input type="checkbox" name="ssb_beforearchive" id="ssb_beforearchive" value="1" <?php if(!empty($ssb_beforearchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_beforearchive"><?php _e('Before the content', 'simplesocialbuttons'); ?></label></p>
|
129 |
+
<p><input type="checkbox" name="ssb_afterarchive" id="ssb_afterarchive" value="1" <?php if(!empty($ssb_afterarchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterarchive"><?php _e('After the content', 'simplesocialbuttons'); ?></label></p>
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
|
133 |
+
<div class="submit">
|
134 |
+
<input type="hidden" name="hiddenconfirm" value="Y" />
|
135 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save settings', 'simplesocialbuttons'); ?>" />
|
136 |
+
</div>
|
137 |
+
|
138 |
+
</form>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
|
142 |
+
<div class="postbox-container" style="width:29%">
|
143 |
+
<div id="poststuff">
|
144 |
+
<div class="postbox">
|
145 |
+
<h3><?php _e('About this plugin:', 'simplesocialbuttons'); ?></h3>
|
146 |
+
<div class="inside">
|
147 |
+
<p><?php _e('Talk to <a href="http://twitter.com/rabinek" target="_blank">@rabinek</a> on twitter for bugs or feature requests.', 'simplesocialbuttons'); ?></p>
|
148 |
+
<p><strong><?php _e('Enjoy the plugin?', 'simplesocialbuttons'); ?></strong><br />
|
149 |
+
<?php _e('<a href="http://twitter.com/?status=I\'m using @rabinek\'s WordPress Simple Social Buttons plugin - check it out! http://blog.rabinek.pl/" target="_blank">Tweet about it</a> and consider donating.', 'simplesocialbuttons'); ?></p>
|
150 |
+
<p><?php _e('<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!', 'simplesocialbuttons'); ?><br />
|
151 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
152 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
153 |
+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----">
|
154 |
+
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
155 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">
|
156 |
+
</form>
|
157 |
+
</p>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
|
161 |
+
<div class="postbox">
|
162 |
+
<h3><?php _e('About the author:', 'simplesocialbuttons'); ?></h3>
|
163 |
+
<div class="inside">
|
164 |
+
<p><?php _e('Hi! My name is Paweł Rabinek (aka xradar). I\'m interesed in SEO and social media, PHP and Wordpress developement.', 'simplesocialbuttons'); ?></p>
|
165 |
+
<ul>
|
166 |
+
<li><a href="http://blog.rabinek.pl/" target="_blank"><?php _e('My blog about SEO', 'simplesocialbuttons'); ?></a> <?php _e('[Polish]', 'simplesocialbuttons'); ?></li>
|
167 |
+
<li><?php _e('Follow me on Twitter', 'simplesocialbuttons'); ?> <a href="http://www.twitter.com/rabinek" target="_blank">@rabinek</a></li>
|
168 |
+
<li><a href="http://www.facebook.com/rabinek" target="_blank"><?php _e('Paweł Rabinek on Facebook', 'simplesocialbuttons'); ?></a></li>
|
169 |
+
<li><a href="http://plus.google.com/114311287272342088386/" target="_blank"><?php _e('Paweł Rabinek on Google Plus', 'simplesocialbuttons'); ?></a></li>
|
170 |
+
<li><a href="http://pl.linkedin.com/in/rabinek" target="_blank"><?php _e('LinkedIn profile', 'simplesocialbuttons'); ?></a></li>
|
171 |
+
</ul>
|
172 |
+
</div>
|
173 |
+
</div>
|
174 |
+
|
175 |
+
<div class="postbox">
|
176 |
+
<h3><?php _e('Usefull links:', 'simplesocialbuttons'); ?></h3>
|
177 |
+
<div class="inside">
|
178 |
+
<ul>
|
179 |
+
<li><a href="http://www.site5.com/in.php?id=53542" target="_blank"><?php _e('Unlimited web hosting', 'simplesocialbuttons'); ?></a></li>
|
180 |
+
<li><a href="http://www.webceo.com/cgi-bin/go/clickthru.cgi?id=xradar" target="_blank"><?php _e('Best SEO software', 'simplesocialbuttons'); ?></a></li>
|
181 |
+
<li><a href="http://themeforest.net?ref=xradar" target="_blank"><?php _e('Wordpress templates', 'simplesocialbuttons'); ?></a><li>
|
182 |
+
</ul>
|
183 |
+
</div>
|
184 |
+
</div>
|
185 |
+
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
</div>
|
uninstall.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) {
|
3 |
+
exit();
|
4 |
+
}
|
5 |
+
|
6 |
+
// clean up the databes before the uninstall plugin
|
7 |
+
|
8 |
+
delete_option('ssb_googleplus');
|
9 |
+
delete_option('ssb_fblike');
|
10 |
+
delete_option('ssb_twitter');
|
11 |
+
|
12 |
+
delete_option('ssb_beforepost');
|
13 |
+
delete_option('ssb_afterpost');
|
14 |
+
|
15 |
+
delete_option('ssb_showfront');
|
16 |
+
delete_option('ssb_showcategory');
|
17 |
+
delete_option('ssb_showarchive');
|
18 |
+
delete_option('ssb_showtag');
|
19 |
+
|
20 |
+
delete_option('ssb_beforearchive');
|
21 |
+
delete_option('ssb_afterarchive');
|
22 |
+
|
23 |
+
?>
|