<?php

    if ( ! defined( 'ABSPATH' ) ) exit;

    require_once __DIR__ . "/../Classes/DigitalSignage4_DisplayedVideoProduct.php";
    require_once __DIR__ . "/../Kernel/API/Manager/DigitalSignage4_ForfaitManager.php";
	
    class DigitalSignage4_PresentationController extends DigitalSignage4_Controller
    {
        public function generatePage()
        {
            $forfait = DigitalSignage4_ForfaitManager::instance()->getForfait(DigitalSignage4_ForfaitManager::instance()->getToken(), true);
			$trial="no";
			if ($forfait->getTrial() == true) {
				$trial="yes";
			}
			
			$this->assign(
                array(
                    'urlIframe' => DigitalSignage4_Tools::getAcaciaRedirectionPageUrl("presentation"."&token=".DigitalSignage4_ForfaitManager::instance()->getToken(),$trial),
                )
            );
                     
            //$cjc = new DigitalSignage4_CronJobController();
            
            //$cjc->get_products_for_first_launch();
                        
            $this->setWPTemplate("Presentation/presentation");
        }
    }
