예제 #1
0
파일: Pagination.php 프로젝트: ignaszak/cms
 /**
  *
  * @param string $theme
  * @return string
  */
 public function getPaginationTheme(string $theme = "pagination") : string
 {
     switch ($theme) {
         case "pagination":
             $this->theme = new Theme\MultiPage($this->pg);
             break;
         case "pager":
             $this->theme = new Theme\Pager($this->pg);
             break;
         case "pager-align":
             $this->theme = new Theme\PagerAlign($this->pg);
             break;
     }
     return $this->theme->getTheme();
 }
예제 #2
0
파일: index.php 프로젝트: Vidov/CMS
     if ($cD['status'] == 1) {
         \Debug\Trace::mark();
         $DATA['contentData'] = $cD['data'];
         if ($DATA['contentData']) {
             \Debug\Trace::mark();
             /*
              * Вече имам:
              * domainData
              * appData
              *   ThemeID
              * contentData
              *   layoutType
              */
             // Тук искам да се показват снимките от този проект
             // $Image->Get();
             $Theme = new \Theme\Theme();
             $themeData = $Theme->getData($DATA['appData']['ThemeID']);
             // Get theme's css; js; etc...
             $Theme->get($themeData['name']);
             readfile(T . $themeData['name'] . DIRECTORY_SEPARATOR . 'index.html');
             $DATA['themeData'] = $themeData;
             $_SESSION['DATA'] = $DATA;
             \Debug\Bug::boom($DATA);
         } else {
             \Debug\Bug::boom(array('log' => 'Opa!', 'arr' => $DATA));
         }
     } else {
         \Debug\Bug::boom(array('log' => 'Opa!', 'arr' => $DATA));
     }
 } else {
     \Debug\Bug::boom(array('log' => 'Не е намерено ID-то на съдеъжанието!', 'arr' => $DATA));