{"id":1590,"date":"2005-08-28T20:00:09","date_gmt":"2005-08-28T20:00:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/travelog\/"},"modified":"2006-06-15T11:44:16","modified_gmt":"2006-06-15T11:44:16","slug":"travelog","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/travelog\/","author":26261,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"","header_author":"","header_description":"","assets_banners_color":"","last_updated":"2006-06-15 11:44:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1890,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["other_notes","description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["v1.0","v1.1","v2.0","v2.5"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-1590","plugin","type-plugin","status-closed","hentry","plugin_committers-swift"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/travelog.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=other_notes-->\n<h3>Version 1.0<\/h3>\n <p>Initial public release<\/p>\n   <h4>Function Reference<\/h4>\n <p>The Travelog plugin provides several functions for interacting with your Travelog. There are three sets of functions provided; General Functions, Advanced Functions and Internal Functions:<\/p>\n <h3>General Functions<\/h3>\n <p>These functions allow for basic retrieval and output of location information for posts<\/p>\n <p>travelog_summary_info() Outputs a string with location information about the post. It shows the location name (which is linked to a GoogleMap of the location) as well as the coordinates of the location in degree-minute-second format. This is meant to be used on your index.php page right below the post title. If there is no location associated with the post, nothing is displayed.<\/p>\n <p>the_latitude() Outputs the latitude of the location associated with the post in decimal degree format.<\/p>\n <p>the_latitudeDMS() Outputs the latitude of the location associated with the post in degree-minute-second format (dd? mm' ss\").<\/p>\n <p>the_longitude() Outputs the longitude of the location associated with the post in decimal degree format.<\/p>\n <p>the_longitudeDMS() Outputs the longitude of the location associated with the post in degree-minute-second format (dd? mm' ss\").<\/p>\n <p>the_location_name() Outputs the name of the location associated with the post.<\/p>\n <p>the_location_description() Outputs the description of the location associated with the post.<\/p>\n <p>get_latitude() Returns the value of the latitude for the location associated with the post in decimal degree format, with north latitudes being positive and south latitudes being negative. This can be used if you want to display the latitude in some other format, check to make sure there is a latitude for the post or output different latitudes differently.<\/p>\n <p>get_longitude() Returns the value of the longitude for the location associated with the post in decimal degree format, with east longitudes being positive and west longitudes being negative. This can be used if you want to display the longitudes in some other format, check to make sure there is a longitudes for the post or output different longitudes differently.<\/p>\n <p>get_location_name() Returns the name of the location associated with the post.<\/p>\n <p>get_location_description() Returns the description of the location associated with the post.<\/p>\n <p>map_location_url($map, $location_id) Returns the URL for a map of the location whose ID is passed as $location_id. $map lets you choose which mapping service to use. Acceptable values for $map are:  * 'GoogleMaps'  * 'MapQuest'  * 'AcmeMap'  * 'GeoURL'  * 'GeoCache'  * 'SideBit'  * 'DegreeConfluence'  * 'TopoZone'  * 'FindU'  * 'MapTech'<\/p>\n <p>distance_between($id1, $id2, $unit) Calculates the distance between the two locations whose ids are passed as $id1 and $id2 (using their latitudes &amp; longitudes), and returns the value as a number in terms of the units specified in the $unit parameter. For kilometers use 'k', for miles use 'm' and for nautical miles use 'n'.<\/p>\n <h3>Advanced Functions<\/h3>\n <p>These functions control the inner workings of the Travelog plugin, and provide advanced access to the information contained in your Travelog. You should have at least moderate experience working with PHP if you want to use these functions.<\/p>\n <p>NOTE: All the advanced functions are contained in the static class 'Travelog'. To call them in your templates, you must add 'Travelog::' in front of their names (eg. to call get_categories(), you would use  **<\/p>\n <p>add_location($location) Adds a location to your Travelog based on information passed in the $location parameter. $location must be an object with variables for each of the Travelog database fields.<\/p>\n <p>get_locations($category, $limit, $order) Returns an array of objects, one object for each location in your travelog, and each object has a set of variables containing the all information about that location.<\/p>\n <p>get_location($id) Returns a location object with all the information for the location whose id is passed as the id parameter.<\/p>\n <p>get_post_location() Returns a location object with all the information for the location associated with the post. If no location is associated with the post and a default location is set, the location object will contain information about the default location.<\/p>\n <p>get_categories() Returns an numerically-indexed array of all of the Travelog category names<\/p>\n <p>coordinate_DMS($value, $coordinate) Returns a HTML string showing the value of the coordinate passed as $value in the degrees-minutes-seconds format. $coordinate must be either 'latitude' or 'longitude' to tell the function which direction (N\/S or E\/W) to append on the end.<\/p>\n <h3>Internal Functions<\/h3>\n <p>These functions control the inner workings of the Travelog plugin, and should not be used in your templates. If you want to make changes to how the Travelog plugin works, this is where it should be done, but only if you have an advanced understanding of PHP, as making any changes could destroy your Travelog. The functions are just listed briefly here to let you know generally what they do.<\/p>\n <p>inline_locations($content) Used to process travelog tags that appear within posts<\/p>\n <p>update_post($post_id) Does the processing of associating a location with a post<\/p>\n <p>add_menus() Displays the Travelog links in the Options and Manage sub-menus in the WordPress Site Admin<\/p>\n <p>install_db() Create the travelog database table and initializes the Travelog's WordPress options<\/p>\n <p>edit_form_advanced() Controls what is shown on the Edit Post Page<\/p>\n <p>show_adminheader() CSS and HTML to create the submenu on the Manage page<\/p>\n <p>manage_locations() Handles the addition, updating and removal of locations and categories<\/p>\n <p>manage_options() Handles the updating of Travelog's options<\/p>\n <p>googlemaps_javahook() Outputs a javascript link in the page headers to allow [http:\/\/maps.google.com\/ GoogleMaps] to be embedded.<\/p>\n <p>coordinate_metatags() Outputs some standard meta tags with location information<\/p>\n\n<!--section=description-->\n<h4>Installation<\/h4>\n <ol>\n<li>Upload the 'travelog' folder from this archive to your \/wp-content\/plugins\/ folder on your webserver.<\/li>\n<li>Active the \"Travelog\" plugin in WordPress's Site Admin Plugins page.<\/li>\n<li>Modify your WordPress theme so that location information is displayed for posts in summary view. The easiest way to do this is to use the standard Travelog output function, travelog_summary_info(). This is done by adding the following code to your index.php file, right after the post title section. For the default theme, you would change:<\/li>\n<\/ol>\n &lt;a href=&quot;\" rel=\"bookmark\" title=\"Permanent Link to \"&gt; <\/a>\n <p> &lt;!-- by  --&gt;<\/p>\n <p>to be:<\/p>\n &lt;a href=&quot;\" rel=\"bookmark\" title=\"Permanent Link to \"&gt; <\/a>\n <p><br \/>\n &lt;!-- by  --&gt;<\/p>\n <p>Make similar modifications to archive.php and search.php. Alternatively, You can create your own customized location information output using the Travelog's PHP functions, which are listed and described below.  4. Modify your WordPress theme so that location information is displayed for posts in detail view. The easiest way to do this is to use the standard Travelog output function, travelog_single_info(). This is done by adding the following code to your single.php file, right after the post date information. For the default theme, you would change:<\/p>\n <p>on  at \nand is filed under .<\/p>\n <p>to be:<\/p>\n <p>on  at \n and is filed under .<\/p>\n <p>Again, you can create your own custom output using Travelog's PHP functions listed and described below.  5. Review the Travelog options by clicking on Travelog on the Options page sub-menu of WordPress's Site Admin.  6. Start adding locations to your Travelog by clicking on Travelog on the Manage page sub-menu of WordPress's Site Admin<\/p>\n <h4>Components<\/h4>\n <ul>\n<li>Travelog Options: This page let's you control some basic setting about how your Travelog works. You can access this page by clicking on Travelog in the sub-menu on the Options page of WordPress's Site Admin.<\/li>\n<li>Travelog Locations Manager: This page shows summary information for the locations in your Travelog. You can access this page by clicking on Travelog in the sub-menu on the Manage page of WordPress's Site Admin.<\/li>\n<li>Travelog Location Editor: This page lets you update\/change any of the information associated with a location, and optionally shows an embedded map of the location. To access this page, click the 'Edit' link next to the location you want to edit in the Travelog Location Manager.<\/li>\n<li>Travelog Categories Manager: This page lets you add\/edit\/remove Travelog categories to help keep your Travelog organized. To access this page, go to the Travelog Location Manager, and click on the 'Categories' tab just below the main menus.<\/li>\n<li>Travelog's 'Edit Post' Component: This form is attached to the 'Edit Post' page and allows you to select which location to associate with the post you're editing, or optionally create a new location to associate with that post. To access this, follow normal post editing procedure, either go to the Site Admin's Manage page and click on the post to edit, or click the edit link that appears below the post on your blog while you are logged in as an administrator.<\/li>\n<\/ul>\n <h4>Usage &amp; License<\/h4>\n <p>The Travelog plugin is licensed under the GPL (the same license that WordPress uses), and to sum it up, you can freely use, distribute and modify this plugin however you desire. If you do use it on your site, I'd appreciate you [http:\/\/www.sublimity.ca\/2005\/09\/01\/travelog\/#coments leaving a comment on my site] telling me what you think about it, but it's more to satisfy my curiousity about what ends up happening to this little project of mine than anything else, so it's not a big deal.<\/p>\n <p>If you find any bugs (I'm sure there are some in here), or have ideas about things you'd like to see in future releases of this plugin, [http:\/\/www.sublimity.ca\/2005\/09\/01\/travelog\/#coments  please let me know] (especially if you'd like to help implement them). I'll do my best to implement suggestions, but I can't make any rock-solid promises as there is more to life than coding...<\/p>\n <h4>Change Log<\/h4>","raw_excerpt":"--------\n\n= Installation =\n\n 1. Upload the &#039;travelog&#039; folder from this archive to your \/wp-content\/plugins\/ folder on your webserver.\n 2. Ac","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1590"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/swift"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1590"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1590"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1590"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1590"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1590"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}