Plugin Directory

Changeset 832533

Timestamp:
01/03/2014 10:19:53 PM (11 years ago)
Author:
pbaylies
Message:

Bugfix release; Opengraph fixes, hooks added for meta; tagged release.

Location:
all-in-one-seo-pack
Files:
1 added
4 deleted
3 edited
44 copied

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack/tags/2.1.2/aioseop_class.php

    r825760 r832533  
    967967                <?php
    968968                break;
    969             case "aioseop-hosting":
    970             ?><div class="aioseop_metabox_text">
    971                 <p><a href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=aioseo&page=http://www.hostgator.com/apps/wordpress-hosting.shtml" target="_blank"><img src="<?php echo AIOSEOP_PLUGIN_URL; ?>images/Hostgator--AN-9-8-2013-445x220.gif" alt="HostGator.com WordPress Hosting | Use Coupon WPPlugin | Only $3.47/Month"></p>
    972             </div>
    973             <?php
    974                 break;
    975969        }
    976970        echo "</div>";
     
    26082602        add_meta_box('aioseop-list', __( "Join Our Mailing List", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'normal', 'core');
    26092603        add_meta_box('aioseop-about', "About <span style='float:right;'>Version <b>" . AIOSEOP_VERSION . "</b></span>", array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
    2610 //      add_meta_box('aioseop-hosting', __( "Recommended WordPress Hosting", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
    26112604       
    26122605        add_action( 'aioseop_modules_add_menus', Array( $this, 'add_menu' ), 5 );
     
    27222715                    if ( typeof postboxes !== 'undefined' )
    27232716                        postboxes.add_postbox_toggles('<?php echo $this->pagehook; ?>');
    2724                     $('.meta-box-sortables').removeClass('meta-box-sortables');
     2717                    $('.meta-box-sortables').removeClass('meta-box-sortables');
    27252718                });
    27262719                //]]>
    27272720            </script>
    2728         <a href="http://open.ecwid.com/l8dt" target="_blank" style="margin-bottom: 15px;display: block;"><img src="<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>ecwid_banner.png"></a>
    27292721        <!-- Headway Themes-->
    27302722        <div class="aioseop_advert">
  • all-in-one-seo-pack/tags/2.1.2/aioseop_opengraph.php

    r825759 r832533  
    7979                "hometitle"             => __( "The Home Title is the Open Graph title for your home page.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    8080                "description"           => __( "The Home Description is the Open Graph description for your home page.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    81                 "generate_descriptions" => __( "Check this and your Open Graph descriptions will be auto-generated from your excerpt or content.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
     81                "generate_descriptions" => __( "Check this and your Open Graph descriptions will be auto-generated from your content.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    8282                "disable_jetpack"       => __( "Check this box to disable the Open Graph meta output by the Jetpack plugin.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    8383                "defimg"                => __( "This option lets you choose which image will be displayed by default for the Open Graph image. You may override this on individual posts.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
     
    279279            if ( !empty( $this->options[ 'aiosp_opengraph_disable_jetpack' ] ) )
    280280                remove_action( 'wp_head', 'jetpack_og_tags' );
    281 
    282             return $output . 'xmlns="http://www.w3.org/1999/xhtml"
    283                   xmlns:og="http://ogp.me/ns#"
    284                   xmlns:fb="http://www.facebook.com/2008/fbml"';
     281            foreach( Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) as $xmlns ) {
     282                if ( strpos( $output, $xmlns ) === false ) {
     283                    $output .= "\n\t$xmlns ";
     284                }
     285            }
     286            return $output;
    285287        }
    286288       
     
    473475           
    474476            foreach ( $meta as $t => $data )
    475                 foreach ( $data as $k => $v )
    476                     if ( !empty( $$k ) ) echo '<meta ' . $tags[$t]['name'] . '="' . $v . '" ' . $tags[$t]['value'] . '="' . $$k . '" />' . "\n";
     477                foreach ( $data as $k => $v ) {
     478                    if ( empty( $$k ) ) $$k = '';
     479                    $filtered_value = $$k;
     480                    $filtered_value = apply_filters( $this->prefix . 'meta', $filtered_value, $t, $k );
     481                    if ( !empty( $filtered_value ) ) echo '<meta ' . $tags[$t]['name'] . '="' . $v . '" ' . $tags[$t]['value'] . '="' . $filtered_value . '" />' . "\n";                   
     482                }
    477483        }
    478484       
  • all-in-one-seo-pack/tags/2.1.2/all_in_one_seo_pack.php

    r825760 r832533  
    44Plugin URI: http://semperfiwebdesign.com
    55Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">Upgrade to Pro Version</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperplugins.com/support/" >Support</a> |  <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
    6 Version: 2.1.1
     6Version: 2.1.
    77Author: Michael Torbert
    88Author URI: http://michaeltorbert.com
     
    1010
    1111/*
    12 Copyright (C) 2008-2013 Michael Torbert, semperfiwebdesign.com (michael AT semperfiwebdesign DOT com)
     12Copyright (C) 2008-201 Michael Torbert, semperfiwebdesign.com (michael AT semperfiwebdesign DOT com)
    1313Original code by uberdose of uberdose.com
    1414
     
    3131/**
    3232 * @package All-in-One-SEO-Pack
    33  * @version 2.1.1
     33 * @version 2.1.
    3434 */
    3535
    3636if ( ! defined( 'AIOSEOP_VERSION' ) )
    37     define( 'AIOSEOP_VERSION', '2.1.1' );
     37    define( 'AIOSEOP_VERSION', '2.1.' );
    3838
    3939if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
  • all-in-one-seo-pack/trunk/aioseop_class.php

    r825760 r832533  
    967967                <?php
    968968                break;
    969             case "aioseop-hosting":
    970             ?><div class="aioseop_metabox_text">
    971                 <p><a href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=aioseo&page=http://www.hostgator.com/apps/wordpress-hosting.shtml" target="_blank"><img src="<?php echo AIOSEOP_PLUGIN_URL; ?>images/Hostgator--AN-9-8-2013-445x220.gif" alt="HostGator.com WordPress Hosting | Use Coupon WPPlugin | Only $3.47/Month"></p>
    972             </div>
    973             <?php
    974                 break;
    975969        }
    976970        echo "</div>";
     
    26082602        add_meta_box('aioseop-list', __( "Join Our Mailing List", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'normal', 'core');
    26092603        add_meta_box('aioseop-about', "About <span style='float:right;'>Version <b>" . AIOSEOP_VERSION . "</b></span>", array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
    2610 //      add_meta_box('aioseop-hosting', __( "Recommended WordPress Hosting", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
    26112604       
    26122605        add_action( 'aioseop_modules_add_menus', Array( $this, 'add_menu' ), 5 );
     
    27222715                    if ( typeof postboxes !== 'undefined' )
    27232716                        postboxes.add_postbox_toggles('<?php echo $this->pagehook; ?>');
    2724                     $('.meta-box-sortables').removeClass('meta-box-sortables');
     2717                    $('.meta-box-sortables').removeClass('meta-box-sortables');
    27252718                });
    27262719                //]]>
    27272720            </script>
    2728         <a href="http://open.ecwid.com/l8dt" target="_blank" style="margin-bottom: 15px;display: block;"><img src="<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>ecwid_banner.png"></a>
    27292721        <!-- Headway Themes-->
    27302722        <div class="aioseop_advert">
  • all-in-one-seo-pack/trunk/aioseop_opengraph.php

    r805127 r832533  
    7979                "hometitle"             => __( "The Home Title is the Open Graph title for your home page.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    8080                "description"           => __( "The Home Description is the Open Graph description for your home page.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    81                 "generate_descriptions" => __( "Check this and your Open Graph descriptions will be auto-generated from your excerpt or content.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
     81                "generate_descriptions" => __( "Check this and your Open Graph descriptions will be auto-generated from your content.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    8282                "disable_jetpack"       => __( "Check this box to disable the Open Graph meta output by the Jetpack plugin.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
    8383                "defimg"                => __( "This option lets you choose which image will be displayed by default for the Open Graph image. You may override this on individual posts.<br /><a href='http://semperplugins.com/documentation/social-meta-module/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
     
    279279            if ( !empty( $this->options[ 'aiosp_opengraph_disable_jetpack' ] ) )
    280280                remove_action( 'wp_head', 'jetpack_og_tags' );
    281 
    282             return $output . 'xmlns="http://www.w3.org/1999/xhtml"
    283                   xmlns:og="http://ogp.me/ns#"
    284                   xmlns:fb="http://www.facebook.com/2008/fbml"';
     281            foreach( Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) as $xmlns ) {
     282                if ( strpos( $output, $xmlns ) === false ) {
     283                    $output .= "\n\t$xmlns ";
     284                }
     285            }
     286            return $output;
    285287        }
    286288       
     
    473475           
    474476            foreach ( $meta as $t => $data )
    475                 foreach ( $data as $k => $v )
    476                     if ( !empty( $$k ) ) echo '<meta ' . $tags[$t]['name'] . '="' . $v . '" ' . $tags[$t]['value'] . '="' . $$k . '" />' . "\n";
     477                foreach ( $data as $k => $v ) {
     478                    if ( empty( $$k ) ) $$k = '';
     479                    $filtered_value = $$k;
     480                    $filtered_value = apply_filters( $this->prefix . 'meta', $filtered_value, $t, $k );
     481                    if ( !empty( $filtered_value ) ) echo '<meta ' . $tags[$t]['name'] . '="' . $v . '" ' . $tags[$t]['value'] . '="' . $filtered_value . '" />' . "\n";                   
     482                }
    477483        }
    478484       
  • all-in-one-seo-pack/trunk/all_in_one_seo_pack.php

    r825760 r832533  
    44Plugin URI: http://semperfiwebdesign.com
    55Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">Upgrade to Pro Version</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperplugins.com/support/" >Support</a> |  <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
    6 Version: 2.1.1
     6Version: 2.1.
    77Author: Michael Torbert
    88Author URI: http://michaeltorbert.com
     
    1010
    1111/*
    12 Copyright (C) 2008-2013 Michael Torbert, semperfiwebdesign.com (michael AT semperfiwebdesign DOT com)
     12Copyright (C) 2008-201 Michael Torbert, semperfiwebdesign.com (michael AT semperfiwebdesign DOT com)
    1313Original code by uberdose of uberdose.com
    1414
     
    3131/**
    3232 * @package All-in-One-SEO-Pack
    33  * @version 2.1.1
     33 * @version 2.1.
    3434 */
    3535
    3636if ( ! defined( 'AIOSEOP_VERSION' ) )
    37     define( 'AIOSEOP_VERSION', '2.1.1' );
     37    define( 'AIOSEOP_VERSION', '2.1.' );
    3838
    3939if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
Note: See TracChangeset for help on using the changeset viewer.