- Create migration for global settings table and add google_ads_customer_id and google_ads_start_date columns to clients table. - Add migration to include product_url column in products_data table. - Insert demo data for campaigns, products, and their history for client 'pomysloweprezenty.pl'. - Implement client management interface with modals for adding and editing clients, including Google Ads Customer ID and data retrieval start date.
27 lines
539 B
PHP
27 lines
539 B
PHP
<?php
|
|
namespace view;
|
|
class Site
|
|
{
|
|
public static function show()
|
|
{
|
|
global $user, $current_module;
|
|
|
|
$tpl = new \Tpl;
|
|
$tpl -> content = \controls\Site::route();
|
|
|
|
if ( !$user )
|
|
return $tpl -> render( 'site/layout-unlogged' );
|
|
else
|
|
{
|
|
$tpl -> user = $user;
|
|
$tpl -> current_module = $current_module;
|
|
if ( $alert = \S::get_session( 'alert' ) )
|
|
{
|
|
$tpl -> alert = $alert;
|
|
unset( $_SESSION['alert'] );
|
|
}
|
|
return $tpl -> render( 'site/layout-logged' );
|
|
}
|
|
}
|
|
}
|