get('legacy:admin:site'); $module = $is_module = $module_path = $highlight = $action = false; if (isset($site->get_module)) { $is_module = true; $module_path = $site->get_module; $module = $site->moduleDetails($site->get_module); if ((isset($site->post_action) && $site->post_action === 'process') || (isset($site->get_action) && in_array($site->get_action, [ 'process', 'reorder', 'reorderbg', 'reorder2.0', 'export', 'newbackground' ], true)) ) { include __DIR__ . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $module['path'] . DIRECTORY_SEPARATOR . 'process.php'; } } if (isset($site->get_highlight)) { $highlight = $site->get_highlight; } if (isset($site->get_action)) { $action = $site->get_action; } if (isset($site->get_module)) { $sql_where = $sql_order = []; $sql_where['_relation'] = 'AND'; $sql_where[] = ['key' => 'type', 'val' => 'help', '_operator' => '=']; $_action = 'overview'; if (isset($site->get_action)) { $_action = $site->get_action; } $sql_where[] = [ 'key' => 'custom_fields', 'val' => '%cf_guide-for":"' . $site->get_module . '%', '_operator' => ' LIKE ' ]; $sql_where[] = ['key' => 'custom_fields', 'val' => '%cf_guide-type":"' . $_action . '%', '_operator' => ' LIKE ']; $args = [ 'operator' => 'select', 'table' => 'pages', 'return' => '*', 'where' => $sql_where, 'order' => ['val' => 'order', 'direction' => 'ASC'], 'limit' => ['offset' => 0, 'limit' => 1] ]; $helpguide = $site->query($args); if ($helpguide) { $helpguide = $helpguide[0]; } } else { $sql_where = $sql_order = []; $sql_where['_relation'] = 'AND'; $sql_where[] = ['key' => 'type', 'val' => 'help', '_operator' => '=']; $sql_where[] = ['key' => 'custom_fields', 'val' => '%cf_guide-for":"manage_homepage%', '_operator' => ' LIKE ']; $args = [ 'operator' => 'select', 'table' => 'pages', 'return' => '*', 'where' => $sql_where, 'order' => ['val' => 'order', 'direction' => 'ASC'], 'limit' => ['offset' => 0, 'limit' => 1] ]; $home_helpguide = $site->query($args); if ($home_helpguide) { $home_helpguide = $home_helpguide[0]; } } try { //throw new \RuntimeException('Testing Rollbar Person'); } catch (\Exception $e) { //\Rollbar\Rollbar::log(\Rollbar\Payload\Level::ERROR, $e); } ?> <?= $_GLOBAL['SITE_NAME'] ?> - CMS has('debugbar')) { $debugbar = $container->get('debugbar'); $debugbarRenderer = $debugbar->getJavascriptRenderer(); echo $debugbarRenderer->renderHead(); } ?>
Logged in: user_forename)) ? $site->user_forename : $site->user_username) ?> (user_access_title ?>) Logout!

CMS Help Guide Close

Guide to
moduleMenu(); if ($modules) { ?>

Warning: wizard.php should be deleted.

CMS Home

userAccessToAction('read', $module['id'])) { ?>
You do not have permissions to view the content in this module.
user_access === '5') { /*$site->user_id = 7;*/ ?>

Your Themes - New Theme

'select', 'table' => 'theme', 'where' => array( '_relation' => 'AND', array('key' => 'template', 'val' => '1', '_operator' => '='), array('key' => 'designer', 'val' => $site->user_id, '_operator' => '=') ), 'order' => array('val' => 'order', 'direction' => 'ASC') ); $themes = $site->query($args); //require '/var/www/production/beta-themer/class/imageresize.php'; foreach ($themes as $key => $val) { $previews_location = PREVIEW_PATH . 'final/' . $val['id'] . '/preview-1200x1024.png'; $sized_image = (new \PPW\ImageResize($previews_location)) ->setWidth(35) ->setHeight(35) ->resize(); $sized_imageWeb = str_replace(THEME_ABSOLUTE_ROOT, THEME_BUILDER_URL, $sized_image); $previews_location = PREVIEW_PATH . 'final/' . $val['id'] . '/preview-invite-1200x1024.png'; $sized_image = (new \PPW\ImageResize($previews_location)) ->setWidth(35) ->setHeight(35) ->resize(); $sized_imageInv = str_replace(THEME_ABSOLUTE_ROOT, THEME_BUILDER_URL, $sized_image); $previews_location = PREVIEW_PATH . 'final/' . $val['id'] . '/preview-save-the-date-1200x1024.png'; $sized_image = (new \PPW\ImageResize($previews_location)) ->setWidth(35) ->setHeight(35) ->resize(); $sized_imageStd = str_replace(THEME_ABSOLUTE_ROOT, THEME_BUILDER_URL, $sized_image); ?> 'select', 'table' => 'themes', 'where' => array( '_relation' => 'AND', array('key' => 'designer', 'val' => $site->user_id, '_operator' => '='), array('key' => 'website', 'val' => '1', '_operator' => '='), array('key' => 'parent', 'val' => '0', '_operator' => '=') ) ); $themes = $site->query($args); foreach ($themes as $key => $val) { ?> 'select', 'table' => 'themes', 'where' => array( '_relation' => 'AND', array('key' => 'website', 'val' => '1', '_operator' => '='), array('key' => 'parent', 'val' => $val['id'], '_operator' => '=') ) ); $children = $site->query($args); foreach ($children as $child => $childval) { $email = false; ?>
Theme Name Created Views Used Version Status Manage Edit
v2 Manage Themer
v1 Manage Themer
() Manage Themer

user_access === '1') { $sent = $pending = array(); $firstDayOfYear = '1st Jan'; $lastDayOfYear = '23:59:59, 31st Dec'; $todayYear = new DateTime($firstDayOfYear); $todayYear = $todayYear->format('Y'); if (isset($_POST['chosenYear'])) { $chosenYear = $_POST['chosenYear']; $firstDayOfYear .= $chosenYear; $lastDayOfYear .= $chosenYear; } $yearStart = new DateTime($firstDayOfYear); $yearEnd = new DateTime($lastDayOfYear); //get invites $sql = <<= '{$yearStart->format('Y-m-d')}' AND sent_date <= '{$yearEnd->format('Y-m-d H:i:s')}' EOF; $res = $site->runQuery($sql); if ($res) { foreach ($res as $invite) { if ($invite['sent']) { $sent[] = $invite; continue; } $pending[] = $invite; } } $packageService = $container->get('service:package'); $package = $packageService->find(USER_PACKAGE_3); $loginRepository = $container->get(LoginRepository::class); $criteria = Criteria::create(); $criteria->where(Criteria::expr()->eq('package', $package)) ->andWhere(Criteria::expr()->gte('weddingDate', $yearStart)) ->andWhere(Criteria::expr()->lte('weddingDate', $yearEnd)); $weddingLogins = $loginRepository->matching($criteria); ?>

Total Invites Sent - Total Invites Pending

Select a year you would like to filter by:

getWeddingDate()->format('n'); if (!isset($weddingDates[$date])) { $weddingDates[$date] = []; } $weddingDates[$date][] = $wedding->getWeddingDate(); } $yearSet = isset($chosenYear) ? $chosenYear : date('Y'); ?>
= '{$yearStart->format('Y-m-d')}' AND sent_date <= '{$yearEnd->format('Y-m-d H:i:s')}' EOF; $res = $site->runQuery($sql); if ($res) { foreach ($res as $invite) { if ($invite['sent']) { $sent[] = $invite; continue; } $pending[] = $invite; } } ?>

Total Save The Date's Sent - Total Save The Date's Pending

runQuery($sql); if ($res) { $days[] = (int)$res[0]['total']; $paiddays[] = (int)$res[0]['total_paid']; $total_paid += (int)$res[0]['total_paid']; $pkg2 += (int)$res[0]['total_paid_pkg2']; $pkg3 += (int)$res[0]['total_paid_pkg3']; } else { $days[] = 0; $paiddays[] = 0; } $m['y'] += $days[1]; $d['data'][] = $days; $dp['data'][] = $paiddays; $tm['y'] += $paiddays[1]; } $months[] = $m; $months_paid[] = $tm; $drilldown[] = $d; $drilldown_paid[] = $dp; } ?>

Signups - Paid - Website Only - Full Package

has('debugbar')) { $debugbar = $container->get('debugbar'); $debugbarRenderer = $debugbar->getJavascriptRenderer(); echo $debugbarRenderer->render(); } ?>