Changeset 1706216
- Timestamp:
- 08/01/2017 10:02:53 AM (9 years ago)
- Location:
- wp-realtime-sitemap/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (12 diffs)
-
wp-realtime-sitemap.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-realtime-sitemap/trunk/readme.txt
r1574784 r1706216 4 4 Tags: seo, navigation, site, map, sitemap, sitemaps, posts, pages, custom, post, types, wpmu, wpml, wordpress, multisite, multiuser, bilingual, i18n, l10n, language, multilanguage, multilingual, translation, qtranslate 5 5 Requires at least: 3.0 6 Tested up to: 4. 5.37 Stable tag: 1.5. 66 Tested up to: 4.8 7 Stable tag: 1.5.7 8 8 9 9 A 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. … … 14 14 15 15 This 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 == 16 18 17 19 1. Order the output anyway you want in the plugin settings page. … … 29 31 13. Supports use of the WordPress shortcode for including the sitemap in pages and posts. 30 32 14. Supports menus created with the inbuilt WordPress Menu Editor. 31 15. Works on WordPress Multisite (WPMU ,WPML) blogs.33 15. Works on WordPress Multisite (WPMU) and Multilingual (WPML) blogs. 32 34 16. 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. 33 35 34 36 I 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. 35 37 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 47 38 Please rate this plugin and/or make a [donation](http://goo.gl/mmUuGj "PayPal donation") if you find it useful, thank you. 48 39 40 == Translations == 41 42 WP 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 44 I 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 49 46 == Installation == 50 47 … … 52 49 53 50 1. 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 =51 2. Upload the files to `/wp-content/plugins/wp-realtime-sitemap` directory. 52 3. Activate the plugin through the "Plugins" menu in WordPress. 53 54 = Instructions for installing from within your own blog = 58 55 59 56 1. 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.57 2. Click Plugins in the left hand menu navigation. 58 3. Click on "Add New" next to the Plugins header in the main content area. 59 4. Enter "WP Realtime Sitemap" (without quotes) in the textbox and click the "Search Plugins" button. 60 5. In the list of relevant plugins click the "Install" link for "WP Realtime Sitemap" on the right hand side of the page. 61 6. Click the "Install Now" button on the popup page. 62 7. Click "Activate Plugin" to finish installation. 66 63 67 64 = Display the sitemap on a page or post = 68 65 69 66 1. 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.67 2. 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. 68 3. Give your page a title I suggest Sitemap, and put `[wp-realtime-sitemap]` into the WYSIWYG box. 69 4. Now save or update the page and click on the View page link at the top to see your new sitemap. 73 70 74 71 **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. … … 88 85 = I have some pages that I need but are to be hidden and not on the sitemap = 89 86 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.87 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. 91 88 92 89 = I cant get the other short code options to work = … … 94 91 These 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. 95 92 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? = 97 94 98 95 This 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. … … 105 102 106 103 1. 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.104 2. Output as displayed on Twenty Ten theme. 105 3. How to hide a post and/or page off the sitemap using the published privately option in WordPress. 109 106 110 107 == Examples == … … 134 131 Show tags: `[wp-realtime-sitemap show="tags"]`. 135 132 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 154 133 == Changelog == 134 135 = 1.5.7 = 136 * Updated code to be compatible with PHP 7. 155 137 156 138 = 1.5.6 = 157 139 * Escaped some strings to address security issues. 158 * Added "suppress_filters => false"to make the plugin WPML compatible.140 * Added "suppress_filters => false" to make the plugin WPML compatible. 159 141 * Fixed uninstall hook as was incorrectly used. 160 142 161 143 = 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 "Header Settings". 163 145 * Fixed broken donation link. 164 146 * Removed themefuse buttons. … … 172 154 173 155 = 1.5.3 = 174 * Added "show_promote"to default options.156 * Added "show_promote" to default options. 175 157 * Added upgrade procedure as WordPress changed the way the activation hook works, no longer fires on upgrade only activation. 176 158 * German translation by [Andreas Breitschopp](http://www.ab-weblog.com/de/). … … 254 236 255 237 = 1.3 = 256 * Hierarchical list of categories.238 * Hierarchical list of pages and categories. 257 239 * Change code for tags to use WordPress inbuilt functions instead. 258 240 * Supports I18n for translation. 259 241 260 242 = 1.2 = 261 * Updated code, added settings, support and donate link .243 * Updated code, added settings, support and donate links. 262 244 * Fixed display bug. 263 245 … … 267 249 268 250 = 1.0 = 269 * Firstversion.251 * Initial version. 270 252 271 253 == Upgrade Notice == … … 281 263 282 264 = 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.265 This 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 5 5 Plugin URI: http://goo.gl/ri9xU 6 6 Description: 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. 67 Version: 1.5.7 8 8 Author: Daniel Tweedy 9 9 Author URI: http://goo.gl/jdOfL … … 33 33 var $plugin_base = ''; 34 34 35 function WPRealtimeSitemap() { //constructor35 function __construct() { //constructor 36 36 // Add Init 37 37 add_action('init', array(&$this, 'addInit')); … … 547 547 case 'show_promote': 548 548 $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'), 551 551 ); 552 552 break; … … 845 845 $infotext = ''; 846 846 break; 847 848 default: 849 $infotext = ''; 847 850 } 848 851 … … 863 866 864 867 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); 866 869 } 867 870 … … 879 882 880 883 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; 882 885 } 883 886 } … … 1772 1775 if ($show == 'all') { 1773 1776 $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; 1775 1778 } 1776 1779 } … … 1850 1853 'show_categories' => 'Yes', 1851 1854 'show_tags' => 'No', 1852 'show_promote' => ' Yes',1855 'show_promote' => 'No', 1853 1856 1854 1857 'first_order' => 'menu',
Note: See TracChangeset
for help on using the changeset viewer.