Changeset 653469
- Timestamp:
- 01/16/2013 08:58:35 AM (13 years ago)
- Location:
- privacy-friendly-facebook/trunk
- Files:
-
- 3 edited
-
index.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
templates/form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
privacy-friendly-facebook/trunk/index.php
r652469 r653469 52 52 , 'show_stream' => $instance['show_stream'] 53 53 , 'show_header' => $instance['show_header'] 54 , 'disable_priv' => 'false'54 , 'disable_priv' => $instance['disable_priv'] 55 55 ); 56 56 … … 66 66 $instance = $old_instance; 67 67 $instance['title'] = strip_tags($new_instance['title']); 68 if (strip_tags($new_instance['disable_priv']) != 'true'){ 69 $instance['disable_priv'] = 'false'; 70 } 71 else { 72 $instance['disable_priv'] = 'true'; 73 } 68 74 $instance['page_url'] = strip_tags($new_instance['page_url']); 69 75 $instance['placeholder'] = $new_instance['placeholder']; … … 97 103 $default = array( 98 104 'title' => 'Privacy Friendly FB Widget' 105 , 'disable_priv' => 'false' 99 106 , 'page_url' => 'https://www.facebook.com/pages/JonathanMH/159526834122370' 100 107 , 'type' => 'like-box' -
privacy-friendly-facebook/trunk/readme.txt
r652491 r653469 5 5 Requires at least: 2.8 6 6 Tested up to: 3.5 7 Stable tag: 0.1 7 Stable tag: 0.11 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 * enable/disable: facepile, stream of posts 33 33 * define colours 34 * disable click to load 34 35 35 36 I plan to increase the functionality with: … … 69 70 == Changelog == 70 71 72 = 0.11 = 73 2013-1-16 74 75 added option to override lazy load 76 71 77 = 0.1 = 72 78 2013-1-14 -
privacy-friendly-facebook/trunk/templates/form.php
r652469 r653469 17 17 .esc_attr( $instance['title'] ) 18 18 .'" /></p>'; 19 20 /* DISABLE PRIV */ 21 $field_disable_priv_id = $this->get_field_id('disable_priv'); 22 $field_disable_priv = $this->get_field_name('disable_priv'); 23 24 if ($instance['disable_priv'] == 'true'){ 25 $checked = 'checked="checked"'; 26 } 27 else { 28 $checked = ''; 29 } 30 31 echo "\r\n" 32 .'<p><input type="checkbox" id="' 33 .$field_disable_priv_id 34 .'" name="' 35 .$field_disable_priv 36 .'" value="true"' 37 .$checked 38 .'/> <label for="' 39 .$field_disable_priv_id 40 .'">' 41 .__('Disable Privacy Protection and load directly') 42 .' </label></p>'; 19 43 20 44
Note: See TracChangeset
for help on using the changeset viewer.