Skip to content

Commit

Permalink
Corrigida a listagem das lojas do centro da cidade principal
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebian committed Oct 9, 2012
1 parent cfb3b49 commit 6e895d6
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 32 deletions.
8 changes: 8 additions & 0 deletions src/lojas/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
# #
#########################################################


/---------------------------------------------------------/
1.1
09/10/2012
-> Corrigida listagem de lojas do Centro da cidade principal
Antes da alteração apareciam as lojas do centro de todas
as cidades dentro da listagem da cidade principal

/---------------------------------------------------------/
1.1
04/10/2012
Expand Down
Empty file modified src/lojas/core/lojas-core.php
100755 → 100644
Empty file.
Empty file modified src/lojas/lojas.php
100755 → 100644
Empty file.
Empty file modified src/lojas/nova-loja.php
100755 → 100644
Empty file.
62 changes: 31 additions & 31 deletions src/lojas/plugin-lojas.php
100755 → 100644
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');
}

?>
Empty file modified src/lojas/sources/images/Lojas.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/lojas/sources/schemas/default-schema-for-lojas.php
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/lojas/theme-pages/page-lojas.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<h2><?php echo ucfirst($curitiba->nome); ?></h2>
<div class="lojas-cidade" >
<?php
$dadosLojas = $Lojas->obterLojasPorBairro('Centro');
$dadosLojas = $Lojas->obterLojasPorBairro('Centro','Curitiba');

if($dadosLojas)
{?>
Expand Down

0 comments on commit 6e895d6

Please sign in to comment.