Plugin Directory

Changeset 705822


Ignore:
Timestamp:
04/30/2013 08:34:25 AM (13 years ago)
Author:
yathosho
Message:

new release

Location:
meta-ographr
Files:
16 added
3 edited

Legend:

Unmodified
Added
Removed
  • meta-ographr/trunk/meta-ographr_admin.php

    r705436 r705822  
    11821182                        </div>
    11831183
    1184                         <?php if(OGRAPHR_DEVMODE == TRUE) { ?>
     1184                        <?php if( (OGRAPHR_DEVMODE == TRUE) || (isset($options['always_devmode'])) ){ ?>
    11851185                        <!-- D E V E L O P E R -->
    11861186                        <div class="postbox advanced_opt">
     
    12081208                                            <td colspan="2">
    12091209                                                <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>&nbsp;
     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>&nbsp;
     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>&nbsp;
    12101224                                            </td>
    12111225                                        </tr>
  • meta-ographr/trunk/meta-ographr_index.php

    r705436 r705822  
    44Plugin URI: http://ographr.whyeye.org
    55Description: 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.6
     6Version: 0.8.7
    77Author: Jan T. Sott
    88Author URI: http://whyeye.org
     
    2929
    3030// 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
    3333    define("OGRAPHR_DEVMODE", FALSE);
    3434    // replace default description with user agent in use
     
    136136                            "exec_mode" => "1",
    137137                            "data_expiry" => "-1",
    138                             "advanced_opt" => "0",
     138                            "advanced_opt" => NULL,
    139139                            "website_title" => "%postname%",
    140                             "website_thumbnail" => "",
     140                            "website_thumbnail" => NULL,
    141141                            "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,
    148148                            "add_prefix" => "1",
    149                             "fill_curves" => "0",
    150                             "smooth_curves" => "0",
     149                            "fill_curves" => NULL,
     150                            "smooth_curves" => NULL,
    151151                            "add_comment" => "1",
    152152                            "add_title" => "1",
     
    156156                            "enable_etracks" => "1",
    157157                            "enable_bambuser" => "1",
    158                             "enable_bandcamp" => "0",
     158                            "enable_bandcamp" => NULL,
    159159                            "enable_bliptv" => "1",
    160160                            "enable_dailymotion" => "1",
     
    165165                            "enable_livestream" => "1",
    166166                            "enable_mixcloud" => "1",
    167                             "enable_myvideo" => "0",
     167                            "enable_myvideo" => NULL,
    168168                            "enable_official" => "1",
    169169                            "enable_rdio" => "1",
    170                             "enable_socialcam" => "0",
     170                            "enable_socialcam" => NULL,
    171171                            "enable_soundcloud" => "1",
    172172                            "enable_ustream" => "1",
    173                             "enable_viddler" => "0",
     173                            "enable_viddler" => NULL,
    174174                            "enable_vimeo" => "1",
    175175                            "enable_youtube" => "1",
     
    179179                            "enable_nvbplayer" => "1",
    180180                            "add_attached_image" => "1",
    181                             "add_post_thumbnail" => "0",
     181                            "add_post_thumbnail" => NULL,
    182182                            "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,
    186186                            "filter_smilies" => "1",
    187                             "filter_themes" => "0",
     187                            "filter_themes" => NULL,
    188188                            "filter_gravatar" => "1",
    189                             "allow_admin_tag" => "0",
     189                            "allow_admin_tag" => NULL,
    190190                            "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,
    199199                            "fb_site_name" => "%sitename%",
    200200                            "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,
    207207                            "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,
    217217                            "debug_level" => "0",
    218                             "enable_beta" => "",
     218                            "enable_beta" => NULL,
     219                            "ua_testdrive" => NULL,
     220                            "always_devmode" => NULL,
    219221            );
    220222       
     
    10531055
    10541056                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                }
    10551066               
    10561067                // Print Open Graph tags
     
    17641775                }
    17651776            }
    1766             if (version_compare($options['last_update'], "0.8.2", '<')) {
    1767                 if (!isset($options['enable_beta'])) {
    1768                     $options['enable_beta'] = 0;
    1769                 }
    1770             }
     1777           
    17711778            if (version_compare($options['last_update'], "0.8.6", '<')) {
    17721779                $published = wp_count_posts();
     
    18301837            }
    18311838               
    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']);
    18361841            echo '<div class="updated">
    18371842                <p>OGraphr is currently running with beta features enabled.';
  • meta-ographr/trunk/readme.txt

    r705436 r705822  
    55Requires at least: 3.0
    66Tested up to: 3.5.1
    7 Stable tag: 0.8.6
     7Stable tag: 0.8.7
    88License: GPLv2
    99
     
    104104== Changelog ==
    105105
     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
    106111= 0.8.6 =
    107112* support for embedding on Twitter is now public
Note: See TracChangeset for help on using the changeset viewer.