Changeset 1371472
- Timestamp:
- 03/15/2016 11:14:21 AM (10 years ago)
- Location:
- location-specific-menu-items-by-country
- Files:
-
- 15 added
- 2 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/CSMI.php (added)
-
tags/1.0.3/assets (added)
-
tags/1.0.3/assets/resources (added)
-
tags/1.0.3/assets/resources/chosen-sprite.png (added)
-
tags/1.0.3/assets/resources/[email protected] (added)
-
tags/1.0.3/assets/resources/chosen.jquery.min.js (added)
-
tags/1.0.3/assets/resources/chosen.min.css (added)
-
tags/1.0.3/assets/resources/spinner.gif (added)
-
tags/1.0.3/geoip.inc (added)
-
tags/1.0.3/includes (added)
-
tags/1.0.3/includes/countries.php (added)
-
tags/1.0.3/includes/walker-nav-menu-edit.php (added)
-
tags/1.0.3/index.php (added)
-
tags/1.0.3/readme.txt (added)
-
trunk/CSMI.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
location-specific-menu-items-by-country/trunk/CSMI.php
r1371466 r1371472 5 5 Description: Control the visibility of individual menu items based on a user's country. 6 6 Author: Ryan Stutzman 7 Version: 1.0. 27 Version: 1.0.3 8 8 Author URI: http://stutzman.asia/ 9 9 */ … … 183 183 $vals = get_post_meta( $item_id, 'locations', true ); 184 184 require_once( dirname( __FILE__ ) . '/includes/countries.php' ); 185 foreach($countries as $key => $value) { // Loop through countries185 foreach($countries as $key => $value) { 186 186 ?> 187 187 <option value="<?php echo $key;?>" -
location-specific-menu-items-by-country/trunk/readme.txt
r1368837 r1371472 6 6 Requires at least: 3.1 7 7 Tested up to: 4.4.2 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 = 1.0.2 = 48 48 * Changed plugin name from `Location Specific Menu Items by Country` to `Country Specific Menu Items`. I was originally planning to add different types of locations (city, state, continent, etc.) to this plugin and then remove the `by Country`, but have decided instead to just create a completely new plugin for each type of location. 49 50 = 1.0.3 = 51 * Cleaned up and simplified code by created seperate file for countries array and looping through it in the countries select box.
Note: See TracChangeset
for help on using the changeset viewer.