Files
adsPRO/autoload/view/class.Site.php
Jacek Pyziak afe9d6216d Add migrations for Google Ads settings and demo data
- 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.
2026-02-15 17:46:32 +01:00

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' );
}
}
}