Example #1
0
 public function config()
 {
     return ['vars' => [['var' => 'spacing', 'label' => Module::t('block_spacing_spacing_label'), 'initvalue' => 1, 'type' => 'zaa-select', 'options' => $this->spacingProperties]]];
 }
 public function config()
 {
     return ['vars' => [['var' => 'files', 'label' => Module::t("block_file_list_files_label"), 'type' => 'zaa-file-array-upload']], 'cfgs' => [['var' => 'showType', 'label' => Module::t("block_file_list_files_showtype_label"), 'initvalue' => 0, 'type' => 'zaa-select', 'options' => [['value' => '1', 'label' => Module::t("block_file_list_files_showtype_yes")], ['value' => '0', 'label' => Module::t("block_file_list_files_showtype_no")]]]]];
 }
Example #3
0
 public function name()
 {
     return Module::t('block_dev_name');
 }
Example #4
0
 public function name()
 {
     return Module::t("block_form_name");
 }
Example #5
0
 public function twigAdmin()
 {
     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 %}';
 }
Example #6
0
 public function label()
 {
     return Module::t('block_group_basic_elements');
 }
Example #7
0
 public function config()
 {
     return ['vars' => [['var' => 'width', 'label' => Module::t('block_layout_width_label'), 'initvalue' => 6, 'type' => 'zaa-select', 'options' => [['value' => 1, 'label' => '1'], ['value' => 2, 'label' => '2'], ['value' => 3, 'label' => '3'], ['value' => 4, 'label' => '4'], ['value' => 5, 'label' => '5'], ['value' => 6, 'label' => '6'], ['value' => 7, 'label' => '7'], ['value' => 8, 'label' => '8'], ['value' => 9, 'label' => '9'], ['value' => 10, 'label' => '10'], ['value' => 11, 'label' => '11']]]], 'cfgs' => [['var' => 'leftColumnClasses', 'label' => Module::t('block_layout_left_column_css_class'), 'type' => 'zaa-text'], ['var' => 'rightColumnClasses', 'label' => Module::t('block_layout_right_column_css_class'), 'type' => 'zaa-text'], ['var' => 'rowDivClass', 'label' => Module::t('block_layout_row_column_css_class'), 'type' => 'zaa-text']], 'placeholders' => [['var' => 'left', 'label' => Module::t('block_layout_placeholders_left')], ['var' => 'right', 'label' => Module::t('block_layout_placeholders_right')]]];
 }
Example #8
0
 public function config()
 {
     return ['vars' => [['var' => 'lineSpace', 'label' => Module::t('block_line_linespace_label'), 'type' => 'zaa-select', 'options' => [['value' => '5px', 'label' => '5px ' . Module::t('block_line_linespace_space')], ['value' => '10px', 'label' => '10px ' . Module::t('block_line_linespace_space')], ['value' => '20px', 'label' => '20px ' . Module::t('block_line_linespace_space')], ['value' => '30px', 'label' => '30px ' . Module::t('block_line_linespace_space')]], 'initvalue' => '5px'], ['var' => 'lineStyle', 'label' => Module::t('block_line_linestyle_label'), 'type' => 'zaa-select', 'options' => [['value' => 'dotted', 'label' => Module::t('block_line_linestyle_dotted')], ['value' => 'dashed', 'label' => Module::t('block_line_linestyle_dashed')], ['value' => 'solid', 'label' => Module::t('block_line_linestyle_solid')]], 'initvalue' => 'solid'], ['var' => 'lineWidth', 'label' => Module::t('block_line_linewidth_label'), 'type' => 'zaa-select', 'options' => [['value' => '1px', 'label' => '1px'], ['value' => '2px', 'label' => '2px'], ['value' => '3px', 'label' => '3px']], 'initvalue' => '1px'], ['var' => 'lineColor', 'label' => Module::t('block_line_linecolor_label'), 'type' => 'zaa-select', 'options' => [['value' => '#ccc', 'label' => Module::t('block_line_linecolor_grey')], ['value' => '#000', 'label' => Module::t('block_line_linecolor_black')]], 'initvalue' => '#ccc']]];
 }
Example #9
0
 public function twigAdmin()
 {
     $image = '{% if extras.imageAdmin.source %}<p><img src="{{extras.imageAdmin.source}}"{% if cfgs.width %} width="{{cfgs.width}}"{% endif %}{% if cfgs.height %} height="{{cfgs.height}}"{% endif %} border="0" style="max-width: 100%;" /><p>{% else %}<span class="block__empty-text">' . Module::t('block_image_no_image') . '</span>{% endif %}';
     $image .= '{% if vars.caption is not empty %}{{vars.caption}}{% endif %}';
     return $image;
 }
Example #10
0
 public function twigAdmin()
 {
     return '{% if vars.moduleName is empty %}<span class="block__empty-text">' . Module::t('block_module_no_module') . '</span>{% else %}<p><i class="material-icons">developer_board</i> ' . Module::t('block_module_integration') . ': <strong>{{ vars.moduleName }}</strong></p>{% endif %}';
 }
 public function twigAdmin()
 {
     return '<p>' . Module::t('block_link_button_name') . ': {% if vars.linkData is empty %}' . Module::t('block_link_button_empty') . '</p>{% else %}' . '</p><br/><strong>{% if vars.label is not empty %} {{ vars.label }} {% endif %}</strong>{% endif %}';
 }
Example #12
0
 public function twigAdmin()
 {
     return '<p>{% if extras.table is empty %}<span class="block__empty-text">' . Module::t('block_table_no_table') . '</span>{% else %}' . '<table>' . '{% if cfgs.header %}' . '<thead>' . '<tr>' . '{% for column in extras.headerData %}' . '<th>{{ column }}</th>{% endfor %}' . '</tr>' . '</thead>' . '{% endif %}' . '<tbody>' . '{% for row in extras.table %}' . '<tr>' . '{% for column in row %}' . '<td {% if cfgs.equaldistance %}class="col s{{ (12/(row|length))|round }}"{% endif %}>{{ column }}</td>' . '{% endfor %}' . '</tr>' . '{% endfor %}' . '</tbody>' . '</table>' . '{% endif %}';
 }
Example #13
0
 public function twigAdmin()
 {
     return '{% if vars.content is not empty %}<blockquote>{{ vars.content }}</blockquote>{% else %}<span class="block__empty-text">' . Module::t('block_quote_no_content') . '</span>{% endif %}';
 }
Example #14
0
 /**
  * @inheritDoc
  */
 public function twigAdmin()
 {
     return '{% if vars.content is empty %}<span class="block__empty-text">' . Module::t('block_wysiwyg_no_content') . '</span>{% else %}{{ vars.content }}{% endif %}';
 }
Example #15
0
 public function twigAdmin()
 {
     return '<p>{% if vars.content is empty %}<span class="block__empty-text">' . Module::t('block_text_no_content') . '</span>' . '{% elseif vars.content is not empty and vars.textType == 1 %}{{ extras.text }}{% elseif vars.content is not empty %}{{ extras.text|nl2br }}{% endif %}</p>';
 }
Example #16
0
 /**
  * @inheritDoc
  */
 public function getFieldHelp()
 {
     return ['soundUrl' => Module::t('block_audio_help_soundurl')];
 }
 public function twigAdmin()
 {
     return '{% if not extras.imageAdmin.source %}' . '<span class="block__empty-text">' . Module::t('block_image_text_no_image') . '</span>' . '{% endif %}' . '{% if not vars.text %}' . '<span class="block__empty-text">' . Module::t('block_image_text_no_text') . '</span>' . '{% endif %}' . '{% if extras.imageAdmin.source and vars.text %}' . '<img src="{{ extras.imageAdmin.source }}"{% if cfgs.width %} width="{{cfgs.width}}"{% endif %}{% if cfgs.height %} height="{{cfgs.height}}"{% endif %} border="0" style="{% if extras.imagePosition == "left" %}float:left;{% else %}float:right{% endif %};{% if extras.imagePosition == "right" %}margin-left:{{ extras.margin }}{% else %}margin-right:{{ extras.margin }}{% endif %};margin-bottom:{{ extras.margin }}; max-width: 50%;"">' . '<p>{% if cfgs.textType == 1 %}{{ extras.text }}{% else %}{{ extras.text|nl2br }}{% endif %}</p>' . '{% endif %}';
 }
Example #18
0
 public function twigAdmin()
 {
     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 %}';
 }
Example #19
0
 public function label()
 {
     return Module::t('block_group_media_group');
 }
Example #20
0
 public function twigAdmin()
 {
     return '{% if vars.elements is empty%}<span class="block__empty-text">' . Module::t('block_list_no_content') . '</span>{% else %}<{{ extras.listType }}>{% for row in vars.elements if row.value is not empty %}<li>{{ row.value }}</li>{% endfor %}</{{ extras.listType }}>{% endif %}';
 }
Example #21
0
 public function twigAdmin()
 {
     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 %}';
 }
Example #22
0
 public function label()
 {
     return Module::t('block_group_project_elements');
 }
Example #23
0
                <div class="luya-cms-toolbar__list-entry-right">
                	<?php 
if (empty($keywords)) {
    ?>
                		<p class="luya-cms-toolbar__text--danger"><?php 
    echo Module::t('tb_seo_keywords_notfound');
    ?>
</p>
                	<?php 
} else {
    ?>
                		<?php 
    if ($seoAlertCount > 0) {
        ?>
                		<p class="luya-cms-toolbar__badge--warning"><?php 
        echo Module::t('tb_seo_warning');
        ?>
</p>
                		<?php 
    }
    ?>
                		<ul class="luya-cms-toolbar__no-bullets">
                			<?php 
    foreach ($keywords as $keyword) {
        ?>
                			 <li><span class="luya-cms-toolbar__badge<?php 
        echo $keyword[1] > 0 ? ' luya-cms-toolbar__badge--success' : ' luya-cms-toolbar__badge--danger';
        ?>
"><?php 
        echo $keyword[1];
        ?>