@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @var $className |
|
| 4 | - * @var $namespace |
|
| 5 | - * @var $luya |
|
| 6 | - * @var $moduleId |
|
| 7 | - * @var $alias |
|
| 8 | - */ |
|
| 3 | + * @var $className |
|
| 4 | + * @var $namespace |
|
| 5 | + * @var $luya |
|
| 6 | + * @var $moduleId |
|
| 7 | + * @var $alias |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | echo "<?php\n"; |
| 11 | 11 | ?> |
@@ -11,8 +11,11 @@ |
||
| 11 | 11 | <li><a href="<?php echo Url::toManager('account/default/index'); ?>">Login</a></li> |
| 12 | 12 | <li><a href="<?php echo Url::toManager('account/register/index'); ?>">Registration</a></li> |
| 13 | 13 | <li><a href="<?php echo Url::toManager('account/default/lostpass'); ?>">Passwort verloren</a></li> |
| 14 | - <?php else: ?> |
|
| 15 | - <li><a href="<?php echo Url::toManager('account/default/logout'); ?>">Logout</a></li> |
|
| 14 | + <?php else { |
|
| 15 | + : ?> |
|
| 16 | + <li><a href="<?php echo Url::toManager('account/default/logout'); |
|
| 17 | +} |
|
| 18 | +?>">Logout</a></li> |
|
| 16 | 19 | <li><a href="<?php echo Url::toManager('account/settings/index'); ?>">Settings</a></li> |
| 17 | 20 | <?php endif; ?> |
| 18 | 21 | </ul> |
@@ -40,7 +40,10 @@ |
||
| 40 | 40 | </button> |
| 41 | 41 | </a> |
| 42 | 42 | </td> |
| 43 | - <?php else: $err = true; ?> |
|
| 43 | + <?php else { |
|
| 44 | + : $err = true; |
|
| 45 | +} |
|
| 46 | +?> |
|
| 44 | 47 | <td colspan="7"><div style="background-color:#FF8A80; padding:4px; color:white;">We are unable to retrieve dat from this Remote Page.</div></td> |
| 45 | 48 | <?php endif; ?> |
| 46 | 49 | </tr> |
@@ -22,9 +22,9 @@ |
||
| 22 | 22 | public function scenarios() |
| 23 | 23 | { |
| 24 | 24 | return [ |
| 25 | - 'restcreate' => ['title', 'text', 'cat_id', 'image_id', 'image_list', 'tags', 'timestamp_display_from', 'timestamp_display_until', 'file_list'], |
|
| 26 | - 'restupdate' => ['title', 'text', 'cat_id', 'image_id', 'image_list', 'tags', 'timestamp_create', 'timestamp_display_from', 'timestamp_display_until', 'is_display_limit', 'file_list'], |
|
| 27 | - ]; |
|
| 25 | + 'restcreate' => ['title', 'text', 'cat_id', 'image_id', 'image_list', 'tags', 'timestamp_display_from', 'timestamp_display_until', 'file_list'], |
|
| 26 | + 'restupdate' => ['title', 'text', 'cat_id', 'image_id', 'image_list', 'tags', 'timestamp_create', 'timestamp_display_from', 'timestamp_display_until', 'is_display_limit', 'file_list'], |
|
| 27 | + ]; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function rules() |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | public function scenarios() |
| 32 | 32 | { |
| 33 | 33 | return [ |
| 34 | - 'restcreate' => ['title'], |
|
| 35 | - 'restupdate' => ['title'], |
|
| 36 | - ]; |
|
| 34 | + 'restcreate' => ['title'], |
|
| 35 | + 'restupdate' => ['title'], |
|
| 36 | + ]; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | // ngrest |
@@ -20,12 +20,12 @@ |
||
| 20 | 20 | public function config() |
| 21 | 21 | { |
| 22 | 22 | return [ |
| 23 | - 'vars' => [ |
|
| 24 | - ['var' => 'image', 'label' => 'Bild', 'type' => 'zaa-image-upload', 'options' => ['no_filter' => true]], |
|
| 25 | - ], |
|
| 26 | - 'cfgs' => [ |
|
| 27 | - ['var' => 'testimage', 'label' => 'testimage', 'type' => 'zaa-image-upload'], |
|
| 28 | - ], |
|
| 23 | + 'vars' => [ |
|
| 24 | + ['var' => 'image', 'label' => 'Bild', 'type' => 'zaa-image-upload', 'options' => ['no_filter' => true]], |
|
| 25 | + ], |
|
| 26 | + 'cfgs' => [ |
|
| 27 | + ['var' => 'testimage', 'label' => 'testimage', 'type' => 'zaa-image-upload'], |
|
| 28 | + ], |
|
| 29 | 29 | ]; |
| 30 | 30 | } |
| 31 | 31 | |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | public function config() |
| 21 | 21 | { |
| 22 | 22 | return [ |
| 23 | - 'vars' => [ |
|
| 24 | - ['var' => 'images', 'label' => 'Images', 'type' => 'zaa-image-array-upload', 'options' => ['no_filter' => false]], |
|
| 25 | - ], |
|
| 23 | + 'vars' => [ |
|
| 24 | + ['var' => 'images', 'label' => 'Images', 'type' => 'zaa-image-array-upload', 'options' => ['no_filter' => false]], |
|
| 25 | + ], |
|
| 26 | 26 | ]; |
| 27 | 27 | } |
| 28 | 28 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'button' => function($href, $name) { |
|
| 5 | - return '<a class="btn btn-primary" href="'.$href.'">'.$name.'</a>'; |
|
| 6 | - }, |
|
| 7 | - 'teaserbox' => function($title, $description, $buttonHref, $buttonName) { |
|
| 8 | - return '<div class="teaser-box"><h1>'.$title.'</h1><p>'.$description.'</p>'.$this->button($buttonHref, $buttonName).'</div>'; |
|
| 9 | - }, |
|
| 4 | + 'button' => function($href, $name) { |
|
| 5 | + return '<a class="btn btn-primary" href="'.$href.'">'.$name.'</a>'; |
|
| 6 | + }, |
|
| 7 | + 'teaserbox' => function($title, $description, $buttonHref, $buttonName) { |
|
| 8 | + return '<div class="teaser-box"><h1>'.$title.'</h1><p>'.$description.'</p>'.$this->button($buttonHref, $buttonName).'</div>'; |
|
| 9 | + }, |
|
| 10 | 10 | ]; |
| 11 | 11 | \ No newline at end of file |
@@ -38,8 +38,11 @@ |
||
| 38 | 38 | </tr> |
| 39 | 39 | <?php endforeach; ?> |
| 40 | 40 | </table> |
| 41 | - <?php else: ?> |
|
| 42 | - <?php echo $value; ?> |
|
| 41 | + <?php else { |
|
| 42 | + : ?> |
|
| 43 | + <?php echo $value; |
|
| 44 | +} |
|
| 45 | +?> |
|
| 43 | 46 | <?php endif;?> |
| 44 | 47 | </tr> |
| 45 | 48 | <?php endforeach; ?> |