Changeset 705822
- Timestamp:
- 04/30/2013 08:34:25 AM (13 years ago)
- Location:
- meta-ographr
- Files:
-
- 16 added
- 3 edited
-
tags/0.8.7 (added)
-
tags/0.8.7/inc (added)
-
tags/0.8.7/inc/jqplot.dateAxisRenderer.min.js (added)
-
tags/0.8.7/inc/jqplot.highlighter.min.js (added)
-
tags/0.8.7/inc/jquery.jqplot.min.css (added)
-
tags/0.8.7/inc/jquery.jqplot.min.js (added)
-
tags/0.8.7/inc/scripts.min.js (added)
-
tags/0.8.7/inc/style.min.css (added)
-
tags/0.8.7/meta-ographr_admin.php (added)
-
tags/0.8.7/meta-ographr_index.php (added)
-
tags/0.8.7/readme.txt (added)
-
tags/0.8.7/screenshot-1.png (added)
-
tags/0.8.7/screenshot-2.png (added)
-
tags/0.8.7/screenshot-3.png (added)
-
tags/0.8.7/screenshot-4.png (added)
-
tags/0.8.7/screenshot-5.png (added)
-
trunk/meta-ographr_admin.php (modified) (2 diffs)
-
trunk/meta-ographr_index.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
meta-ographr/trunk/meta-ographr_admin.php
r705436 r705822 1182 1182 </div> 1183 1183 1184 <?php if( OGRAPHR_DEVMODE == TRUE){ ?>1184 <?php if( (OGRAPHR_DEVMODE == TRUE) || (isset($options['always_devmode'])) ){ ?> 1185 1185 <!-- D E V E L O P E R --> 1186 1186 <div class="postbox advanced_opt"> … … 1208 1208 <td colspan="2"> 1209 1209 <label><input name="ographr_options[enable_beta]" type="checkbox" value="1" <?php if (isset($options['enable_beta'])) { checked('1', $options['enable_beta']); }; ?> /> Enable beta features </label> 1210 </td> 1211 </tr> 1212 1213 <tr valign="center"> 1214 <th align="left" scope="row"><label>User Agent:</label></th> 1215 <td colspan="2"> 1216 <label><input name="ographr_options[ua_testdrive]" type="checkbox" value="1" <?php if (isset($options['ua_testdrive'])) { checked('1', $options['ua_testdrive']); }; ?> /> Enable User Agent test </label> 1217 </td> 1218 </tr> 1219 1220 <tr valign="center"> 1221 <th align="left" scope="row"><label>Display:</label></th> 1222 <td colspan="2"> 1223 <label><input name="ographr_options[always_devmode]" type="checkbox" value="1" <?php if (isset($options['always_devmode'])) { checked('1', $options['always_devmode']); }; ?> /> Always show developer settings </label> 1210 1224 </td> 1211 1225 </tr> -
meta-ographr/trunk/meta-ographr_index.php
r705436 r705822 4 4 Plugin URI: http://ographr.whyeye.org 5 5 Description: This plugin scans posts for embedded video and music players and adds their thumbnails URL as an OpenGraph meta-tag. While at it, the plugin also adds OpenGraph tags for the title, description (excerpt) and permalink. Facebook and other social networks can use these to style shared or "liked" articles. 6 Version: 0.8. 66 Version: 0.8.7 7 7 Author: Jan T. Sott 8 8 Author URI: http://whyeye.org … … 29 29 30 30 // OGRAPHR OPTIONS 31 define("OGRAPHR_VERSION", "0.8. 6");32 // enables developer settings on Wordpress interface 31 define("OGRAPHR_VERSION", "0.8.7"); 32 // enables developer settings on Wordpress interface, can be overwritten from plug-in settings once activated 33 33 define("OGRAPHR_DEVMODE", FALSE); 34 34 // replace default description with user agent in use … … 136 136 "exec_mode" => "1", 137 137 "data_expiry" => "-1", 138 "advanced_opt" => "0",138 "advanced_opt" => NULL, 139 139 "website_title" => "%postname%", 140 "website_thumbnail" => "",140 "website_thumbnail" => NULL, 141 141 "enable_plugin_on_front" => "1", 142 "enable_triggers_on_front" => "0",143 "website_description" => "",144 "not_always" => "0",145 "add_adminbar" => "0",146 "add_metabox" => "0",147 "add_graph" => "0",142 "enable_triggers_on_front" => NULL, 143 "website_description" => NULL, 144 "not_always" => NULL, 145 "add_adminbar" => NULL, 146 "add_metabox" => NULL, 147 "add_graph" => NULL, 148 148 "add_prefix" => "1", 149 "fill_curves" => "0",150 "smooth_curves" => "0",149 "fill_curves" => NULL, 150 "smooth_curves" => NULL, 151 151 "add_comment" => "1", 152 152 "add_title" => "1", … … 156 156 "enable_etracks" => "1", 157 157 "enable_bambuser" => "1", 158 "enable_bandcamp" => "0",158 "enable_bandcamp" => NULL, 159 159 "enable_bliptv" => "1", 160 160 "enable_dailymotion" => "1", … … 165 165 "enable_livestream" => "1", 166 166 "enable_mixcloud" => "1", 167 "enable_myvideo" => "0",167 "enable_myvideo" => NULL, 168 168 "enable_official" => "1", 169 169 "enable_rdio" => "1", 170 "enable_socialcam" => "0",170 "enable_socialcam" => NULL, 171 171 "enable_soundcloud" => "1", 172 172 "enable_ustream" => "1", 173 "enable_viddler" => "0",173 "enable_viddler" => NULL, 174 174 "enable_vimeo" => "1", 175 175 "enable_youtube" => "1", … … 179 179 "enable_nvbplayer" => "1", 180 180 "add_attached_image" => "1", 181 "add_post_thumbnail" => "0",181 "add_post_thumbnail" => NULL, 182 182 "link_type" => "permalink", 183 "add_twitter_meta" => "0",184 "add_google_meta" => "0",185 "add_link_rel" => "0",183 "add_twitter_meta" => NULL, 184 "add_google_meta" => NULL, 185 "add_link_rel" => NULL, 186 186 "filter_smilies" => "1", 187 "filter_themes" => "0",187 "filter_themes" => NULL, 188 188 "filter_gravatar" => "1", 189 "allow_admin_tag" => "0",189 "allow_admin_tag" => NULL, 190 190 "restrict_age" => "_none", 191 "restrict_country" => "0",192 "restrict_content" => "0",193 "facebook_ua" => "0",194 "gplus_ua" => "0",195 "linkedin_ua" => "0",196 "twitter_ua" => "0",197 "limit_opengraph" => "0",198 "disable_jetpack" => "0",191 "restrict_country" => NULL, 192 "restrict_content" => NULL, 193 "facebook_ua" => NULL, 194 "gplus_ua" => NULL, 195 "linkedin_ua" => NULL, 196 "twitter_ua" => NULL, 197 "limit_opengraph" => NULL, 198 "disable_jetpack" => NULL, 199 199 "fb_site_name" => "%sitename%", 200 200 "fb_type" => "_none", 201 "add_author" => "0",202 "add_section" => "0",203 "add_tags" => "0",204 "add_pubtime" => "0",205 "add_modtime" => "0",206 "add_embeds" => "0",201 "add_author" => NULL, 202 "add_section" => NULL, 203 "add_tags" => NULL, 204 "add_pubtime" => NULL, 205 "add_modtime" => NULL, 206 "add_embeds" => NULL, 207 207 "app_universal" => "1", 208 "app_iphone_name" => "",209 "app_iphone_id" => "",210 "app_iphone_url" => "",211 "app_ipad_name" => "",212 "app_ipad_id" => "",213 "app_ipad_url" => "",214 "app_android_name" => "",215 "app_android_id" => "",216 "app_android_url" => "",208 "app_iphone_name" => NULL, 209 "app_iphone_id" => NULL, 210 "app_iphone_url" => NULL, 211 "app_ipad_name" => NULL, 212 "app_ipad_id" => NULL, 213 "app_ipad_url" => NULL, 214 "app_android_name" => NULL, 215 "app_android_id" => NULL, 216 "app_android_url" => NULL, 217 217 "debug_level" => "0", 218 "enable_beta" => "", 218 "enable_beta" => NULL, 219 "ua_testdrive" => NULL, 220 "always_devmode" => NULL, 219 221 ); 220 222 … … 1053 1055 1054 1056 unset($thumbnails); // saving tiny amounts of RAM 1057 1058 // write user agent to description 1059 if (isset($options['ua_testdrive'])) { 1060 $opengraph_meta['og:description'] = $user_agent; 1061 if (isset($options['add_google_meta'])) 1062 $google_meta['description'] = $user_agent; 1063 if (isset($options['add_twitter_meta'])) 1064 $twitter_meta['twitter:description'] = $user_agent; 1065 } 1055 1066 1056 1067 // Print Open Graph tags … … 1764 1775 } 1765 1776 } 1766 if (version_compare($options['last_update'], "0.8.2", '<')) { 1767 if (!isset($options['enable_beta'])) { 1768 $options['enable_beta'] = 0; 1769 } 1770 } 1777 1771 1778 if (version_compare($options['last_update'], "0.8.6", '<')) { 1772 1779 $published = wp_count_posts(); … … 1830 1837 } 1831 1838 1832 } 1833 1834 // Beta 1835 if ( ($options['debug_level'] == 0) && (isset($options['enable_beta'])) && (current_user_can('manage_options')) ) { 1839 } else if( (isset($options['enable_beta'])) && ($options['enable_beta'] != 0) && (current_user_can('manage_options')) ) { 1840 print_r($options['enable_beta']); 1836 1841 echo '<div class="updated"> 1837 1842 <p>OGraphr is currently running with beta features enabled.'; -
meta-ographr/trunk/readme.txt
r705436 r705822 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5.1 7 Stable tag: 0.8. 67 Stable tag: 0.8.7 8 8 License: GPLv2 9 9 … … 104 104 == Changelog == 105 105 106 = 0.8.7 = 107 * added option to always display developer settings 108 * added option for user agent testing 109 * fixed bug displaying beta warning 110 106 111 = 0.8.6 = 107 112 * support for embedding on Twitter is now public
Note: See TracChangeset
for help on using the changeset viewer.