-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrigida a listagem das lojas do centro da cidade principal
- Loading branch information
Showing
8 changed files
with
40 additions
and
32 deletions.
There are no files selected for viewing
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
Empty file.
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<?php | ||
|
||
/* | ||
* Plugin Name: Lojas | ||
* Description: O plugin Lojas facilita o cadastro de suas lojas físicas em seu Blog/Site | ||
* Author: Redsuns Design e Tecnologia Web | ||
* Author URI: http://www.redsuns.com.br | ||
* Date: 2012-09-27 | ||
* Version: 1.1 | ||
*/ | ||
|
||
|
||
function menuLojas() | ||
{ | ||
add_menu_page('Lojas', 'Lojas', 7, 'lojas/lojas.php','','../wp-content/plugins/lojas/sources/images/Lojas.png'); | ||
add_submenu_page('lojas/lojas.php', 'Nova loja','Nova loja', 7, 'lojas/nova-loja.php'); | ||
} | ||
|
||
// adding menu | ||
add_action('admin_menu', 'menuLojas'); | ||
|
||
include_once 'sources/schemas/default-schema-for-lojas.php'; | ||
|
||
$url = get_bloginfo('url'); | ||
$themePath = str_replace($url,'..',get_bloginfo('template_url')); | ||
|
||
if(!file_exists($themePath.'/page-lojas.php')) | ||
{ | ||
@copy('../wp-content/plugins/lojas/theme-pages/page-lojas.php',$themePath.'/page-lojas.php'); | ||
} | ||
|
||
<?php | ||
|
||
/* | ||
* Plugin Name: Lojas | ||
* Description: O plugin Lojas facilita o cadastro de suas lojas físicas em seu Blog/Site | ||
* Author: Redsuns Design e Tecnologia Web | ||
* Author URI: http://www.redsuns.com.br | ||
* Date: 2012-09-27 | ||
* Version: 1.1 | ||
*/ | ||
|
||
|
||
function menuLojas() | ||
{ | ||
add_menu_page('Lojas', 'Lojas', 7, 'lojas/lojas.php','','../wp-content/plugins/lojas/sources/images/Lojas.png'); | ||
add_submenu_page('lojas/lojas.php', 'Nova loja','Nova loja', 7, 'lojas/nova-loja.php'); | ||
} | ||
|
||
// adding menu | ||
add_action('admin_menu', 'menuLojas'); | ||
|
||
include_once 'sources/schemas/default-schema-for-lojas.php'; | ||
|
||
$url = get_bloginfo('url'); | ||
$themePath = str_replace($url,'..',get_bloginfo('template_url')); | ||
|
||
if(!file_exists($themePath.'/page-lojas.php')) | ||
{ | ||
@copy('../wp-content/plugins/lojas/theme-pages/page-lojas.php',$themePath.'/page-lojas.php'); | ||
} | ||
|
||
?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
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