Plugin Directory

Changeset 1706216


Ignore:
Timestamp:
08/01/2017 10:02:53 AM (9 years ago)
Author:
Rincewind
Message:
  • Updated code to be compatible with PHP 7.
Location:
wp-realtime-sitemap/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-realtime-sitemap/trunk/readme.txt

    r1574784 r1706216  
    44Tags: seo, navigation, site, map, sitemap, sitemaps, posts, pages, custom, post, types, wpmu, wpml, wordpress, multisite, multiuser, bilingual, i18n, l10n, language, multilanguage, multilingual, translation, qtranslate
    55Requires at least: 3.0
    6 Tested up to: 4.5.3
    7 Stable tag: 1.5.6
     6Tested up to: 4.8
     7Stable tag: 1.5.7
    88
    99A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format.
     
    1414
    1515This plugin doesn't create an XML file to be used with any search engine this is outside of what this plugin was designed to do.
     16
     17== Features ==
    1618
    17191. Order the output anyway you want in the plugin settings page.
     
    293113. Supports use of the WordPress shortcode for including the sitemap in pages and posts.
    303214. Supports menus created with the inbuilt WordPress Menu Editor.
    31 15. Works on WordPress Multisite (WPMU, WPML) blogs.
     3315. Works on WordPress Multisite (WPMU) and Multilingual (WPML) blogs.
    323416. Comes with an uninstaller, if you don't want it anymore just deactivate the plugin and delete it from within WordPress and it will delete all of its settings itself.
    3335
    3436I can't think of anything else that I personally would need this plugin to do for my own use, if anyone feels it doesn't meet their requirements, or has any suggestions as to how to make it better then please get in touch with me and I will see what I can do to accommodate your requests.
    3537
    36 WP Realtime Sitemap is available in:-
    37 
    38 * English by [Daniel Tweedy](http://www.daniel-tweedy.co.uk).
    39 * Brazilian Portuguese by Gervasio Antonio. **needs updating**
    40 * Czech by Libor Cerny. **needs updating**
    41 * Dutch by [Martien van de Griendt](http://www.vandegriendtwebsites.nl).
    42 * German by [Andreas Breitschopp](http://www.ab-weblog.com/de/).
    43 * Romanian translation by [Luke Tyler](http://www.enjoyprepaid.com).
    44 * Russian by [ssvictors](http://wordpress.org/support/profile/ssvictors) and [Igor Dubilej](http://www.itransition.com).
    45 * Spanish by Francois-Xavier Gonzalez. **needs updating**
    46 
    4738Please rate this plugin and/or make a [donation](http://goo.gl/mmUuGj "PayPal donation") if you find it useful, thank you.
    4839
     40== Translations ==
     41
     42WP Realtime Sitemap is available in various languages, some of which are only partially translated if you could help yourself and others by filling in some of the gaps to complete a translation I would personally be very grateful, you can see the translations here https://goo.gl/wwYdW8.
     43
     44I have included a wp-realtime-sitemap.po file in the translations folder if you would prefer to use a standalone program such as Poedit, if you did choose to do the translation this way please also submit the translations to the http://translate.wordpress.org website also.
     45
    4946== Installation ==
    5047
     
    5249
    53501. Download and extract the Plugin zip file.
    54 1. Upload the files to `/wp-content/plugins/wp-realtime-sitemap` directory.
    55 1. Activate the plugin through the 'Plugins' menu in WordPress.
    56 
    57 = Instruction for installing from within your own blog =
     512. Upload the files to `/wp-content/plugins/wp-realtime-sitemap` directory.
     523. Activate the plugin through the "Plugins" menu in WordPress.
     53
     54= Instructions for installing from within your own blog =
    5855
    59561. Login to the admin interface.
    60 1. Click Plugins in the left hand menu navigation.
    61 1. Click on "Add New" next to the Plugins header in the main content area.
    62 1. Enter "WP Realtime Sitemap" (without quotes) in the textbox and click the "Search Plugins" button.
    63 1. In the list of relevant plugins click the "Install" link for "WP Realtime Sitemap" on the right hand side of the page.
    64 1. Click the "Install Now" button on the popup page.
    65 1. Click "Activate Plugin" to finish installation.
     572. Click Plugins in the left hand menu navigation.
     583. Click on "Add New" next to the Plugins header in the main content area.
     594. Enter "WP Realtime Sitemap" (without quotes) in the textbox and click the "Search Plugins" button.
     605. In the list of relevant plugins click the "Install" link for "WP Realtime Sitemap" on the right hand side of the page.
     616. Click the "Install Now" button on the popup page.
     627. Click "Activate Plugin" to finish installation.
    6663
    6764= Display the sitemap on a page or post =
    6865
    69661. Click Pages in the left hand menu navigation.
    70 1. Click on "Add New" in the left hand menu navigation or click on "Add New" next to the Pages header in the main content area.
    71 1. Give your page a title I suggest Sitemap, and put `[wp-realtime-sitemap]` into the WYSIWYG box.
    72 1. Now save or update the page and click on the View page link at the top to see your new sitemap.
     672. Click on "Add New" in the left hand menu navigation or click on "Add New" next to the Pages header in the main content area.
     683. Give your page a title I suggest Sitemap, and put `[wp-realtime-sitemap]` into the WYSIWYG box.
     694. Now save or update the page and click on the View page link at the top to see your new sitemap.
    7370
    7471**Note**: If you already have a page for your sitemap then put the shortcode `[wp-realtime-sitemap]` in this pages WYSIWYG box instead of creating a new page.
     
    8885= I have some pages that I need but are to be hidden and not on the sitemap =
    8986
    90 My plugin only shows posts and pages that have the status as published, so if you wish to have a post of page be published but not to be shown, change its status to "privately published" and it will disappear off the sitemap, you can do this easily when editing a post/page with the Publish box on the left hand side, I have included a screenshot to show what to set this box to.  You can also exclude by ID now in the settings.
     87My plugin only shows posts and pages that have the status as published, so if you wish to have a post of page be published but not to be shown, change its status to "privately published" and it will disappear off the sitemap, you can do this easily when editing a post/page with the Publish box on the left hand side, I have included a screenshot to show what to set this box to.  You can also exclude by ID now in the settings.
    9188
    9289= I cant get the other short code options to work =
     
    9491These are now depreciated and should no longer be used, only the shortcode `[wp-realtime-sitemap]` should be in your sitemap page now, all other options are now decided by the admin interface for the plugin and this will always be the case moving forward.
    9592
    96 = Do I need to add the <!--wp-realtime-sitemap--> to a Post or a Page? =
     93= Do I need to add the `<!--wp-realtime-sitemap-->` to a Post or a Page? =
    9794
    9895This method is no longer supported, please use the shortcode `[wp-realtime-sitemap]` instead in a page or a post, please see the [Installation](http://goo.gl/bRO8F "Installation") tab for further help.
     
    105102
    1061031. Settings page in the admin area.
    107 1. Output as displayed on Twenty Ten theme.
    108 1. How to hide a post and/or page off the sitemap using the published privately option in WordPress.
     1042. Output as displayed on Twenty Ten theme.
     1053. How to hide a post and/or page off the sitemap using the published privately option in WordPress.
    109106
    110107== Examples ==
     
    134131Show tags: `[wp-realtime-sitemap show="tags"]`.
    135132
    136 == Translations ==
    137 
    138 If you're multi-lingual then you may want to consider donating a translation, WordPress is available in several different languages, see [http://codex.wordpress.org/WordPress_in_Your_Language](http://goo.gl/9TlYK "WordPress in Your Language") for more information.
    139 
    140 Currently translated into the following languages :-
    141 
    142 * Brazilian Portuguese by Gervasio Antonio. **needs updating**
    143 * Czech by Libor Cerny. **needs updating**
    144 * Dutch by [Martien van de Griendt](http://www.vandegriendtwebsites.nl).
    145 * German by [Andreas Breitschopp](http://www.ab-weblog.com/de/).
    146 * Romanian translation by [Luke Tyler](http://www.enjoyprepaid.com).
    147 * Russian by [ssvictors](http://wordpress.org/support/profile/ssvictors) and [Igor Dubilej](http://www.itransition.com).
    148 * Spanish by Francois-Xavier Gonzalez. **needs updating**
    149 
    150 All translators will have a link to their website placed on the plugin homepage on my site, and on the WordPress plugin homepage, in addition to being an individual supporter.
    151 
    152 Full details of producing a translation can be found in this [guide to translating WordPress plugins](http://goo.gl/Q5LhT "guide to translating WordPress plugins").
    153 
    154133== Changelog ==
     134
     135= 1.5.7 =
     136* Updated code to be compatible with PHP 7.
    155137
    156138= 1.5.6 =
    157139* Escaped some strings to address security issues.
    158 * Added "suppress_filters => false" to make the plugin WPML compatible.
     140* Added &quot;suppress_filters => false&quot; to make the plugin WPML compatible.
    159141* Fixed uninstall hook as was incorrectly used.
    160142
    161143= 1.5.5 =
    162 * Fixed reported issue of not being able to change "Header Settings".
     144* Fixed reported issue of not being able to change &quot;Header Settings&quot;.
    163145* Fixed broken donation link.
    164146* Removed themefuse buttons.
     
    172154
    173155= 1.5.3 =
    174 * Added "show_promote" to default options.
     156* Added &quot;show_promote&quot; to default options.
    175157* Added upgrade procedure as WordPress changed the way the activation hook works, no longer fires on upgrade only activation.
    176158* German translation by [Andreas Breitschopp](http://www.ab-weblog.com/de/).
     
    254236
    255237= 1.3 =
    256 * Hierarchical list of categories.
     238* Hierarchical list of pages and categories.
    257239* Change code for tags to use WordPress inbuilt functions instead.
    258240* Supports I18n for translation.
    259241
    260242= 1.2 =
    261 * Updated code, added settings, support and donate link.
     243* Updated code, added settings, support and donate links.
    262244* Fixed display bug.
    263245
     
    267249
    268250= 1.0 =
    269 * First version.
     251* Initial version.
    270252
    271253== Upgrade Notice ==
     
    281263
    282264= 1.1 =
    283 Before upgrading you MUST delete the old plugin from your WordPress installation, BEFORE installing the new version! I changed the name of some of the variables stored in the database.
     265This update now shows pages as a hierarchical list of pages, and gives the option of having categories and tags as an unordered list or tag cloud.
  • wp-realtime-sitemap/trunk/wp-realtime-sitemap.php

    r1451430 r1706216  
    55Plugin URI: http://goo.gl/ri9xU
    66Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
    7 Version: 1.5.6
     7Version: 1.5.7
    88Author: Daniel Tweedy
    99Author URI: http://goo.gl/jdOfL
     
    3333        var $plugin_base = '';
    3434
    35         function WPRealtimeSitemap() { //constructor
     35        function __construct() { //constructor
    3636            // Add Init
    3737            add_action('init', array(&$this, 'addInit'));
     
    547547                case 'show_promote':
    548548                    $values = array(
    549                         'Yes'       => __('Yes/On (Default)', 'wp-realtime-sitemap'),
    550                         'No'        => __('No/Off', 'wp-realtime-sitemap'),
     549                        'Yes'       => __('Yes/On', 'wp-realtime-sitemap'),
     550                        'No'        => __('No/Off (Default)', 'wp-realtime-sitemap'),
    551551                    );
    552552                    break;
     
    845845                    $infotext = '';
    846846                    break;
     847
     848                default:
     849                    $infotext = '';
    847850            }
    848851
     
    863866
    864867                foreach ($values as $key => $label) {
    865                     $output .= sprintf($optionFormat, $key, selected($$args['dbfield'], $key, false), $label);
     868                    $output .= sprintf($optionFormat, $key, selected(${$args['dbfield']}, $key, false), $label);
    866869                }
    867870
     
    879882
    880883            if (array_key_exists('dbfield', $args) && isset($infotext)) {
    881                 echo '<input name="plugin_wp_realtime_sitemap_settings[' . esc_attr( $args['dbfield'] ) . ']" size="30" type="text" value="' . esc_attr( $$args['dbfield'] ) . '" /><br />' . $infotext;
     884                echo '<input name="plugin_wp_realtime_sitemap_settings[' . esc_attr( $args['dbfield'] ) . ']" size="30" type="text" value="' . esc_attr( ${$args['dbfield']} ) . '" /><br />' . $infotext;
    882885            }
    883886        }
     
    17721775                if ($show == 'all') {
    17731776                    $custom_posts = implode('', $custom_posts);
    1774                     return $$all_options['first_order'] . $$all_options['second_order'] . $$all_options['third_order'] . $$all_options['fourth_order'] . $$all_options['fifth_order'] . $$all_options['sixth_order'] . $$all_options['seventh_order'] . $promote;
     1777                    return ${$all_options['first_order']} . ${$all_options['second_order']} . ${$all_options['third_order']} . ${$all_options['fourth_order']} . ${$all_options['fifth_order']} . ${$all_options['sixth_order']} . ${$all_options['seventh_order']} . $promote;
    17751778                }
    17761779            }
     
    18501853                'show_categories'       => 'Yes',
    18511854                'show_tags'         => 'No',
    1852                 'show_promote'          => 'Yes',
     1855                'show_promote'          => 'No',
    18531856
    18541857                'first_order'           => 'menu',
Note: See TracChangeset for help on using the changeset viewer.