33 * Plugin Name: Shariff for Wordpress
44 * Plugin URI: http://www.heise.de/newsticker/meldung/c-t-entwickelt-datenschutzfreundliche-Social-Media-Buttons-weiter-2466687.html
55 * Description: Shariff enables website users to share their favorite content without compromising their privacy.
6- * Version: 1.0.6
6+ * Version: 1.0.7
77 * Author: Heise Zeitschriften Verlag / Yannik Ehlert
88 * Author URI: http://www.heise.de
99 * Text Domain: shariff
@@ -97,7 +97,7 @@ function shariffsharing($content) {
9797 }
9898 }
9999 if (!((strpos ($ content ,'hideshariff ' ) !== false ) && (strpos ($ content ,'/hideshariff ' ) == false )) && !(get_post_meta ($ post ->ID , 'shariff_enabled ' , true ))) {
100- $ content2 .= '<div class="shariff" data-backend-url=" ' .plugins_url ( 'backend/index.php ' , __FILE__ ).'" data-ttl=" ' .get_option ('shariff_ttl ' ,"60 " ).'" data-service=" ' .$ serv .'" data-services= \'' .$ services .'\' data-image=" ' .$ image .'" data-url=" ' .get_permalink ().'" data-lang=" ' .__ ('en ' , 'shariff ' ).'" data-theme=" ' .get_option ('shariff_color ' ,"colored " ).'" data-orientation=" ' .get_option ('shariff_orientation ' ,"horizontal " ).'"></div> ' ;
100+ $ content2 .= '<div class="shariff" data-backend-url=" ' .plugins_url ( 'backend/index.php ' , __FILE__ ).'" data-temp=" ' . get_option ( ' shariff_temp ' , " /tmp " ). ' " data- ttl=" ' .get_option ('shariff_ttl ' ,"60 " ).'" data-service=" ' .$ serv .'" data-services= \'' .$ services .'\' data-image=" ' .$ image .'" data-url=" ' .get_permalink ().'" data-lang=" ' .__ ('en ' , 'shariff ' ).'" data-theme=" ' .get_option ('shariff_color ' ,"colored " ).'" data-orientation=" ' .get_option ('shariff_orientation ' ,"horizontal " ).'"></div> ' ;
101101 }
102102 if (get_option ('shariff_beforeafter ' ,'before ' ) != 'after ' ) {
103103 $ content2 .= $ content ;
@@ -129,6 +129,7 @@ function init_settings() {
129129 add_settings_field ('shariff_orientation ' ,__ ('Orientation ' ,"shariff " ),'setting_orientation_callback ' ,'shariff ' ,'shariff_other ' );
130130 add_settings_field ('shariff_beforeafter ' ,__ ('Button location ' ,"shariff " ),'setting_before_callback ' ,'shariff ' ,'shariff_other ' );
131131 add_settings_field ('shariff_ttl ' ,'TTL ' ,'setting_ttl_callback ' ,'shariff ' ,'shariff_other ' );
132+ add_settings_field ('shariff_temp ' ,__ ('Temp directory ' ,"shariff " ),'setting_temp_callback ' ,'shariff ' ,'shariff_other ' );
132133 register_setting ('shariff ' ,'shariff_gplus ' );
133134 register_setting ('shariff ' ,'shariff_fb ' );
134135 register_setting ('shariff ' ,'shariff_twitter ' );
@@ -143,6 +144,7 @@ function init_settings() {
143144 register_setting ('shariff ' ,'shariff_orientation ' );
144145 register_setting ('shariff ' ,'shariff_beforeafter ' );
145146 register_setting ('shariff ' ,'shariff_ttl ' );
147+ register_setting ('shariff ' ,'shariff_temp ' );
146148}
147149function setting_before_callback () {
148150 echo '<select name="shariff_beforeafter">
@@ -200,6 +202,9 @@ function setting_orientation_callback() {
200202function setting_ttl_callback () {
201203 echo '<input type="number" name="shariff_ttl" value=" ' .get_option ("shariff_ttl " ,"60 " ).'"> ' ;
202204}
205+ function setting_temp_callback () {
206+ echo '<input type="text" name="shariff_temp" value=" ' .get_option ("shariff_temp " ,"/tmp " ).'"> ' ;
207+ }
203208function setting_color_callback () {
204209 echo '<select name="shariff_color">
205210 <option value="color" ' ;
0 commit comments