@@ -9,64 +9,64 @@ |
||
| 9 | 9 | |
| 10 | 10 | # Cadmium |
| 11 | 11 | |
| 12 | -define('CADMIUM_NAME', 'Cadmium CMS'); |
|
| 13 | -define('CADMIUM_HOME', 'http://cadmium-cms.com'); |
|
| 12 | +define('CADMIUM_NAME', 'Cadmium CMS'); |
|
| 13 | +define('CADMIUM_HOME', 'http://cadmium-cms.com'); |
|
| 14 | 14 | |
| 15 | -define('CADMIUM_VERSION', '0.4.8'); |
|
| 16 | -define('CADMIUM_COPY', '2017'); |
|
| 15 | +define('CADMIUM_VERSION', '0.4.8'); |
|
| 16 | +define('CADMIUM_COPY', '2017'); |
|
| 17 | 17 | |
| 18 | 18 | # Third-party |
| 19 | 19 | |
| 20 | -define('JQUERY_VERSION', '3.2.1'); |
|
| 21 | -define('SEMANTIC_UI_VERSION', '2.2.10'); |
|
| 22 | -define('CKEDITOR_VERSION', '4.6.2'); |
|
| 23 | -define('ACE_VERSION', '1.2.6'); |
|
| 20 | +define('JQUERY_VERSION', '3.2.1'); |
|
| 21 | +define('SEMANTIC_UI_VERSION', '2.2.10'); |
|
| 22 | +define('CKEDITOR_VERSION', '4.6.2'); |
|
| 23 | +define('ACE_VERSION', '1.2.6'); |
|
| 24 | 24 | |
| 25 | 25 | # Sections |
| 26 | 26 | |
| 27 | -define('SECTION_SITE', 'site'); |
|
| 28 | -define('SECTION_ADMIN', 'admin'); |
|
| 27 | +define('SECTION_SITE', 'site'); |
|
| 28 | +define('SECTION_ADMIN', 'admin'); |
|
| 29 | 29 | |
| 30 | 30 | # Access |
| 31 | 31 | |
| 32 | -define('ACCESS_PUBLIC', 0); |
|
| 33 | -define('ACCESS_REGISTERED', 1); |
|
| 34 | -define('ACCESS_ADMINISTRATOR', 2); |
|
| 32 | +define('ACCESS_PUBLIC', 0); |
|
| 33 | +define('ACCESS_REGISTERED', 1); |
|
| 34 | +define('ACCESS_ADMINISTRATOR', 2); |
|
| 35 | 35 | |
| 36 | 36 | # Frequency |
| 37 | 37 | |
| 38 | -define('FREQUENCY_ALWAYS', 'always'); |
|
| 39 | -define('FREQUENCY_HOURLY', 'hourly'); |
|
| 40 | -define('FREQUENCY_DAILY', 'daily'); |
|
| 41 | -define('FREQUENCY_WEEKLY', 'weekly'); |
|
| 42 | -define('FREQUENCY_MONTHLY', 'monthly'); |
|
| 43 | -define('FREQUENCY_YEARLY', 'yearly'); |
|
| 44 | -define('FREQUENCY_NEVER', 'never'); |
|
| 38 | +define('FREQUENCY_ALWAYS', 'always'); |
|
| 39 | +define('FREQUENCY_HOURLY', 'hourly'); |
|
| 40 | +define('FREQUENCY_DAILY', 'daily'); |
|
| 41 | +define('FREQUENCY_WEEKLY', 'weekly'); |
|
| 42 | +define('FREQUENCY_MONTHLY', 'monthly'); |
|
| 43 | +define('FREQUENCY_YEARLY', 'yearly'); |
|
| 44 | +define('FREQUENCY_NEVER', 'never'); |
|
| 45 | 45 | |
| 46 | 46 | # Rank |
| 47 | 47 | |
| 48 | -define('RANK_GUEST', 0); |
|
| 49 | -define('RANK_USER', 1); |
|
| 50 | -define('RANK_ADMINISTRATOR', 2); |
|
| 48 | +define('RANK_GUEST', 0); |
|
| 49 | +define('RANK_USER', 1); |
|
| 50 | +define('RANK_ADMINISTRATOR', 2); |
|
| 51 | 51 | |
| 52 | 52 | # Sex |
| 53 | 53 | |
| 54 | -define('SEX_NOT_SELECTED', 0); |
|
| 55 | -define('SEX_MALE', 1); |
|
| 56 | -define('SEX_FEMALE', 2); |
|
| 54 | +define('SEX_NOT_SELECTED', 0); |
|
| 55 | +define('SEX_MALE', 1); |
|
| 56 | +define('SEX_FEMALE', 2); |
|
| 57 | 57 | |
| 58 | 58 | # Status |
| 59 | 59 | |
| 60 | -define('STATUS_ONLINE', 0); |
|
| 61 | -define('STATUS_MAINTENANCE', 1); |
|
| 62 | -define('STATUS_UPDATE', 2); |
|
| 60 | +define('STATUS_ONLINE', 0); |
|
| 61 | +define('STATUS_MAINTENANCE', 1); |
|
| 62 | +define('STATUS_UPDATE', 2); |
|
| 63 | 63 | |
| 64 | 64 | # Target |
| 65 | 65 | |
| 66 | -define('TARGET_SELF', 0); |
|
| 67 | -define('TARGET_BLANK', 1); |
|
| 66 | +define('TARGET_SELF', 0); |
|
| 67 | +define('TARGET_BLANK', 1); |
|
| 68 | 68 | |
| 69 | 69 | # Visibility |
| 70 | 70 | |
| 71 | -define('VISIBILITY_DRAFT', 0); |
|
| 72 | -define('VISIBILITY_PUBLISHED', 1); |
|
| 71 | +define('VISIBILITY_DRAFT', 0); |
|
| 72 | +define('VISIBILITY_PUBLISHED', 1); |
|
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Filemanager\Common\Templates; |
| 17 | 17 | |
| 18 | - protected $path_full = (DIR_SYSTEM_TEMPLATES . 'Site/'); |
|
| 18 | + protected $path_full = (DIR_SYSTEM_TEMPLATES.'Site/'); |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | # Sort arrays |
| 52 | 52 | |
| 53 | - $sort = function (Entity $a, Entity $b) { |
|
| 53 | + $sort = function(Entity $a, Entity $b) { |
|
| 54 | 54 | |
| 55 | 55 | return strcmp(Str::toLower($a->getName()), Str::toLower($b->getName())); |
| 56 | 56 | }; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | protected function getValue(string $value) : string { |
| 32 | 32 | |
| 33 | - return ('\'' . addslashes($value) . '\''); |
|
| 33 | + return ('\''.addslashes($value).'\''); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | protected function getRange(array $value) : string { |
| 41 | 41 | |
| 42 | - $parser = function ($value) { if (is_scalar($value)) return $this->getValue($value); }; |
|
| 42 | + $parser = function($value) { if (is_scalar($value)) return $this->getValue($value); }; |
|
| 43 | 43 | |
| 44 | - return ('(' . implode(', ', array_filter(array_map($parser, $value))) . ')'); |
|
| 44 | + return ('('.implode(', ', array_filter(array_map($parser, $value))).')'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -50,21 +50,21 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | protected function getOperatable($value) { |
| 52 | 52 | |
| 53 | - if (is_scalar($value)) return ('= ' . $this->getValue($value)); |
|
| 53 | + if (is_scalar($value)) return ('= '.$this->getValue($value)); |
|
| 54 | 54 | |
| 55 | - if (is_array($value)) return ('IN ' . $this->getRange($value)); |
|
| 55 | + if (is_array($value)) return ('IN '.$this->getRange($value)); |
|
| 56 | 56 | |
| 57 | - if ($value instanceof Type\Not) return ('NOT ' . $this->getValue($value->get())); |
|
| 57 | + if ($value instanceof Type\Not) return ('NOT '.$this->getValue($value->get())); |
|
| 58 | 58 | |
| 59 | - if ($value instanceof Type\Like) return ('LIKE ' . $this->getValue($value->get())); |
|
| 59 | + if ($value instanceof Type\Like) return ('LIKE '.$this->getValue($value->get())); |
|
| 60 | 60 | |
| 61 | - if ($value instanceof Type\LessThan) return ('< ' . $value->get()); |
|
| 61 | + if ($value instanceof Type\LessThan) return ('< '.$value->get()); |
|
| 62 | 62 | |
| 63 | - if ($value instanceof Type\GreaterThan) return ('> ' . $value->get()); |
|
| 63 | + if ($value instanceof Type\GreaterThan) return ('> '.$value->get()); |
|
| 64 | 64 | |
| 65 | - if ($value instanceof Type\LessThanOrEqual) return ('<= ' . $value->get()); |
|
| 65 | + if ($value instanceof Type\LessThanOrEqual) return ('<= '.$value->get()); |
|
| 66 | 66 | |
| 67 | - if ($value instanceof Type\GreaterThanOrEqual) return ('>= ' . $value->get()); |
|
| 67 | + if ($value instanceof Type\GreaterThanOrEqual) return ('>= '.$value->get()); |
|
| 68 | 68 | |
| 69 | 69 | # ------------------------ |
| 70 | 70 | |