@@ -101,7 +101,7 @@ |
||
| 101 | 101 | |
| 102 | 102 | public function twigAdmin() |
| 103 | 103 | { |
| 104 | - return '<p>{% if extras.table is empty %}<span class="block__empty-text">' . Module::t('block_table_no_table') . '</span>{% else %}'. |
|
| 104 | + return '<p>{% if extras.table is empty %}<span class="block__empty-text">'.Module::t('block_table_no_table').'</span>{% else %}'. |
|
| 105 | 105 | '<table>'. |
| 106 | 106 | '{% if cfgs.header %}'. |
| 107 | 107 | '<thead>'. |
@@ -38,25 +38,25 @@ discard block |
||
| 38 | 38 | 'options' => [ |
| 39 | 39 | ['value' => '0', 'label' => Module::t('block_map_zoom_entire')], |
| 40 | 40 | ['value' => '1', 'label' => '4000 km'], |
| 41 | - ['value' => '2', 'label' => '2000 km (' . Module::t('block_map_zoom_world') . ')'], |
|
| 41 | + ['value' => '2', 'label' => '2000 km ('.Module::t('block_map_zoom_world').')'], |
|
| 42 | 42 | ['value' => '3', 'label' => '1000 km'], |
| 43 | - ['value' => '4', 'label' => '400 km (' . Module::t('block_map_zoom_continent') . ')'], |
|
| 43 | + ['value' => '4', 'label' => '400 km ('.Module::t('block_map_zoom_continent').')'], |
|
| 44 | 44 | ['value' => '5', 'label' => '200 km'], |
| 45 | - ['value' => '6', 'label' => '100 km (' . Module::t('block_map_zoom_country') . ')'], |
|
| 45 | + ['value' => '6', 'label' => '100 km ('.Module::t('block_map_zoom_country').')'], |
|
| 46 | 46 | ['value' => '7', 'label' => '50 km'], |
| 47 | 47 | ['value' => '8', 'label' => '30 km'], |
| 48 | 48 | ['value' => '9', 'label' => '15 km'], |
| 49 | 49 | ['value' => '10', 'label' => '8 km'], |
| 50 | 50 | ['value' => '11', 'label' => '4 km'], |
| 51 | - ['value' => '12', 'label' => '2 km (' . Module::t('block_map_zoom_city') . ')'], |
|
| 51 | + ['value' => '12', 'label' => '2 km ('.Module::t('block_map_zoom_city').')'], |
|
| 52 | 52 | ['value' => '13', 'label' => '1 km'], |
| 53 | - ['value' => '14', 'label' => '400 m (' . Module::t('block_map_zoom_district') . ')'], |
|
| 53 | + ['value' => '14', 'label' => '400 m ('.Module::t('block_map_zoom_district').')'], |
|
| 54 | 54 | ['value' => '15', 'label' => '200 m'], |
| 55 | 55 | ['value' => '16', 'label' => '100 m'], |
| 56 | - ['value' => '17', 'label' => '50 m (' . Module::t('block_map_zoom_street') . ')'], |
|
| 56 | + ['value' => '17', 'label' => '50 m ('.Module::t('block_map_zoom_street').')'], |
|
| 57 | 57 | ['value' => '18', 'label' => '20 m'], |
| 58 | 58 | ['value' => '19', 'label' => '10 m'], |
| 59 | - ['value' => '20', 'label' => '5 m (' . Module::t('block_map_zoom_house') . ')'], |
|
| 59 | + ['value' => '20', 'label' => '5 m ('.Module::t('block_map_zoom_house').')'], |
|
| 60 | 60 | ['value' => '21', 'label' => '2.5 m'], |
| 61 | 61 | ], |
| 62 | 62 | ], |
@@ -90,6 +90,6 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | public function twigAdmin() |
| 92 | 92 | { |
| 93 | - return '{% if vars.address is not empty %}<div class="video-container" style="margin:100px;"><iframe src="http://maps.google.com/maps?f=q&source=s_q&hl=de&geocode=&q={{ extras.address }}&z={{ extras.zoom }}&t={{ extras.maptype }}&output=embed" width="600" height="450" frameborder="0" style="border:0"></iframe></div>{% else %}<span class="block__empty-text">' . Module::t('block_map_no_content') . '</span>{% endif %}'; |
|
| 93 | + return '{% if vars.address is not empty %}<div class="video-container" style="margin:100px;"><iframe src="http://maps.google.com/maps?f=q&source=s_q&hl=de&geocode=&q={{ extras.address }}&z={{ extras.zoom }}&t={{ extras.maptype }}&output=embed" width="600" height="450" frameborder="0" style="border:0"></iframe></div>{% else %}<span class="block__empty-text">'.Module::t('block_map_no_content').'</span>{% endif %}'; |
|
| 94 | 94 | } |
| 95 | 95 | } |
@@ -84,9 +84,9 @@ |
||
| 84 | 84 | 'email' => Yii::$app->request->post('email'), |
| 85 | 85 | 'mailerResponse' => $this->getPostResponse(), |
| 86 | 86 | 'csrf' => Yii::$app->request->csrfToken, |
| 87 | - 'nameErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('name') ? 1 : 0): 1, |
|
| 88 | - 'emailErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('email') ? 1 : 0): 1, |
|
| 89 | - 'messageErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('message') ? 1 : 0): 1, |
|
| 87 | + 'nameErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('name') ? 1 : 0) : 1, |
|
| 88 | + 'emailErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('email') ? 1 : 0) : 1, |
|
| 89 | + 'messageErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('message') ? 1 : 0) : 1, |
|
| 90 | 90 | ]; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -41,6 +41,6 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function twigAdmin() |
| 43 | 43 | { |
| 44 | - return '{% if vars.content is empty %}<span class="block__empty-text">' . Module::t('block_wysiwyg_no_content') . '</span>{% else %}{{ vars.content }}{% endif %}'; |
|
| 44 | + return '{% if vars.content is empty %}<span class="block__empty-text">'.Module::t('block_wysiwyg_no_content').'</span>{% else %}{{ vars.content }}{% endif %}'; |
|
| 45 | 45 | } |
| 46 | 46 | } |
@@ -39,6 +39,6 @@ |
||
| 39 | 39 | |
| 40 | 40 | public function twigAdmin() |
| 41 | 41 | { |
| 42 | - return '{% if vars.html is empty %}<span class="block__empty-text">' . Module::t('block_html_no_content') . '</span>{% else %}{{ vars.html | raw }}{% endif %}'; |
|
| 42 | + return '{% if vars.html is empty %}<span class="block__empty-text">'.Module::t('block_html_no_content').'</span>{% else %}{{ vars.html | raw }}{% endif %}'; |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | public function twigAdmin() |
| 74 | 74 | { |
| 75 | - return '<p>{% if vars.content is empty %}<span class="block__empty-text">' . Module::t('block_text_no_content') . '</span>'. |
|
| 75 | + return '<p>{% if vars.content is empty %}<span class="block__empty-text">'.Module::t('block_text_no_content').'</span>'. |
|
| 76 | 76 | '{% elseif vars.content is not empty and vars.textType == 1 %}{{ extras.text }}{% elseif vars.content is not empty %}{{ extras.text|nl2br }}{% endif %}</p>'; |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | if (($pos = strpos($query, 'v=')) !== false) { |
| 49 | 49 | $videoId = substr($query, $pos + 2); |
| 50 | 50 | |
| 51 | - $url = $scheme . '://' . $host . '/embed/' . $videoId; |
|
| 51 | + $url = $scheme.'://'.$host.'/embed/'.$videoId; |
|
| 52 | 52 | |
| 53 | 53 | if ($this->getCfgValue('controls')) { |
| 54 | 54 | $url .= '?rel=0&controls=0&showinfo=0'; |
| 55 | 55 | } else { |
| 56 | - $url .= '?' . $this->getCfgValue('controls'); |
|
| 56 | + $url .= '?'.$this->getCfgValue('controls'); |
|
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | return $url; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $path = trim($path, '/'); |
| 65 | 65 | $url = ''; |
| 66 | 66 | if (is_numeric($path)) { |
| 67 | - $url = 'https://player.vimeo.com/video/' . $path . '?color=0c88dd&title=0&byline=0&portrait=0&badge=0'; |
|
| 67 | + $url = 'https://player.vimeo.com/video/'.$path.'?color=0c88dd&title=0&byline=0&portrait=0&badge=0'; |
|
| 68 | 68 | } |
| 69 | 69 | return $url; |
| 70 | 70 | } |
@@ -102,6 +102,6 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | public function twigAdmin() |
| 104 | 104 | { |
| 105 | - return '{% if extras.url is not empty %}<div style="margin:25px;width:300px"><div class="video-container"><iframe width="640" height="480" src="{{ extras.url }}" frameborder="0" allowfullscreen></iframe></div></div>{% else %}<span class="block__empty-text">' . Module::t('block_video_no_video') . '</span>{% endif %}'; |
|
| 105 | + return '{% if extras.url is not empty %}<div style="margin:25px;width:300px"><div class="video-container"><iframe width="640" height="480" src="{{ extras.url }}" frameborder="0" allowfullscreen></iframe></div></div>{% else %}<span class="block__empty-text">'.Module::t('block_video_no_video').'</span>{% endif %}'; |
|
| 106 | 106 | } |
| 107 | 107 | } |
@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | 'vars' => [ |
| 27 | 27 | ['var' => 'content', 'label' => Module::t('block_title_content_label'), 'type' => 'zaa-text'], |
| 28 | 28 | ['var' => 'headingType', 'label' => Module::t('block_title_headingtype_label'), 'type' => 'zaa-select', 'initvalue' => 'h1', 'options' => [ |
| 29 | - ['value' => 'h1', 'label' => Module::t('block_title_headingtype_heading') . ' 1'], |
|
| 30 | - ['value' => 'h2', 'label' => Module::t('block_title_headingtype_heading') . ' 2'], |
|
| 31 | - ['value' => 'h3', 'label' => Module::t('block_title_headingtype_heading') . ' 3'], |
|
| 32 | - ['value' => 'h4', 'label' => Module::t('block_title_headingtype_heading') . ' 4'], |
|
| 33 | - ['value' => 'h5', 'label' => Module::t('block_title_headingtype_heading') . ' 5'], |
|
| 29 | + ['value' => 'h1', 'label' => Module::t('block_title_headingtype_heading').' 1'], |
|
| 30 | + ['value' => 'h2', 'label' => Module::t('block_title_headingtype_heading').' 2'], |
|
| 31 | + ['value' => 'h3', 'label' => Module::t('block_title_headingtype_heading').' 3'], |
|
| 32 | + ['value' => 'h4', 'label' => Module::t('block_title_headingtype_heading').' 4'], |
|
| 33 | + ['value' => 'h5', 'label' => Module::t('block_title_headingtype_heading').' 5'], |
|
| 34 | 34 | ], |
| 35 | 35 | ], |
| 36 | 36 | ], |
@@ -51,6 +51,6 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function twigAdmin() |
| 53 | 53 | { |
| 54 | - return '{% if vars.content is not empty %}<{{extras.headingType}}>{{ vars.content }}</{{extras.headingType}}>{% else %}<span class="block__empty-text">' . Module::t('block_title_no_content') . '</span>{% endif %}'; |
|
| 54 | + return '{% if vars.content is not empty %}<{{extras.headingType}}>{{ vars.content }}</{{extras.headingType}}>{% else %}<span class="block__empty-text">'.Module::t('block_title_no_content').'</span>{% endif %}'; |
|
| 55 | 55 | } |
| 56 | 56 | } |
@@ -82,14 +82,14 @@ |
||
| 82 | 82 | |
| 83 | 83 | public function twigFrontend() |
| 84 | 84 | { |
| 85 | - return '{% if extras.linkTarget is not empty %}<a class="{{ extras.cssClass }}"{% if cfgs.targetBlank == 1 %}target="_blank" ' . |
|
| 86 | - '{% endif %} href="{{ extras.linkTarget }}">{% if vars.label is not empty %} {{ vars.label }} {% endif %}' . |
|
| 85 | + return '{% if extras.linkTarget is not empty %}<a class="{{ extras.cssClass }}"{% if cfgs.targetBlank == 1 %}target="_blank" '. |
|
| 86 | + '{% endif %} href="{{ extras.linkTarget }}">{% if vars.label is not empty %} {{ vars.label }} {% endif %}'. |
|
| 87 | 87 | '</a>{% endif %}'; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | public function twigAdmin() |
| 91 | 91 | { |
| 92 | - return '<p>' . Module::t('block_link_button_name') . ': {% if vars.linkData is empty %}' . Module::t('block_link_button_empty') . '</p>{% else %}' . |
|
| 92 | + return '<p>'.Module::t('block_link_button_name').': {% if vars.linkData is empty %}'.Module::t('block_link_button_empty').'</p>{% else %}'. |
|
| 93 | 93 | '</p><br/><strong>{% if vars.label is not empty %} {{ vars.label }} {% endif %}</strong>{% endif %}'; |
| 94 | 94 | } |
| 95 | 95 | } |