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
var loopGa = window.setInterval(function(){ | |
if(typeof ga !== 'undefined' ) { | |
ga('require', 'ec'); | |
ga('ec:addProduct', { | |
'id': '<?php echo $product_info["product_id"]?>', | |
'name': '<?php echo $product_info["name"]?>', | |
}); | |
ga('ec:setAction', 'detail'); | |
ga('send', 'pageview'); |
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
<?php $menu = [];?> | |
<?php foreach($items as $item) : ?> | |
<?php if(!in_array($item['menu'], $menu)) : ?> | |
<h3><?php echo $item['menu']?></h3> | |
<?php $menu[] = $item['menu'];?> | |
<?php endif;?> | |
<p><?php echo $item['subMenu']?></p> |
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
<?php | |
$action = isset($_GET['action']) ? 'insert'; | |
if($action == 'insert') { | |
//aqui faz a inserção | |
} | |
if($action == 'update') { | |
//aqui faz alteração |
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
<?php | |
namespace App\Core; | |
class Container | |
{ | |
private $data; | |
public function set($key, $value) | |
{ |
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
<?php | |
namespace App\Controllers; | |
class CompanyController | |
{ | |
public function edit() | |
{ | |
$company_id = $_POST['company_id']; |
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
var Cart = (function(){ | |
var m = {}; | |
m.init = function(){ | |
jQuery(function(){ | |
m.add(); | |
m.update(); | |
m.delete(); | |
}); | |
}; |
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
var ValidateForm = function(){ | |
var m = {}; | |
m.empty = function(field){ | |
}; | |
m.isset = function(field){ | |
}; |
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
<?php | |
session_start(); | |
define("DIR", dirname(__FILE__)); | |
define("DS", DIRECTORY_SEPARATOR); | |
include_once DIR.DS.'App'.DS.'Loader.php'; | |
$loader = new App\Loader(); | |
$loader->register(); |
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
<?php | |
session_start(); | |
require_once "cart-functions.php"; | |
$itemsCart = getCartContent(); | |
$totalCart = getCartTotal(); | |
?> |