/**
* Get Menu Items From Location
*
* @param $location : location slug given as key in register_nav_menus
*/
function getMenuItemsFromLocation($location) {
$theme_locations = get_nav_menu_locations();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen ip:port; | |
server_name domain.name; | |
root root_folder; | |
index index.php index.html index.htm; | |
location / { | |
location = / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name domain.com; | |
autoindex off; | |
index index.php index.html; | |
root /srv/www/domain.com/public; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Table structure for table `country_t` | |
-- | |
CREATE TABLE IF NOT EXISTS `country_t` ( | |
`country_id` int(5) NOT NULL AUTO_INCREMENT, | |
`iso2` char(2) DEFAULT NULL, | |
`short_name` varchar(80) NOT NULL DEFAULT '', | |
`long_name` varchar(80) NOT NULL DEFAULT '', | |
`iso3` char(3) DEFAULT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id="state_id"></select> | |
<select id="lga"></select> | |
stateList(); | |
function stateList(){ | |
$.ajax({ | |
type:'GET', | |
url:"http://locationsng-api.herokuapp.com/api/v1/states", | |
success:function(data) { |
NewerOlder