コード例 #1
0
ファイル: AudioBlock.php プロジェクト: gitter-badger/luya
 public function getFieldHelp()
 {
     return ['soundUrl' => Module::t('block_audio_help_soundurl')];
 }
コード例 #2
0
ファイル: TableBlock.php プロジェクト: krystian-thiede/luya
 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 %}';
 }
コード例 #3
0
ファイル: LineBlock.php プロジェクト: krystian-thiede/luya
 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']]];
 }
コード例 #4
0
ファイル: VideoBlock.php プロジェクト: aekkapun/luya
 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 %}';
 }
コード例 #5
0
 /**
  * @todo enabling display of file size when issue #94 is resolved
  */
 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")]]]]];
 }
コード例 #6
0
ファイル: HtmlBlock.php プロジェクト: krystian-thiede/luya
 public function twigAdmin()
 {
     return '{% if vars.html is empty %}<span class="block__empty-text">' . Module::t('block_html_no_content') . '</span>{% else %}{{ vars.html | raw }}{% endif %}';
 }
コード例 #7
0
ファイル: NavItemModule.php プロジェクト: boehsermoe/luya
 public function attributeLabels()
 {
     return ['module_name' => \cmsadmin\Module::t('model_navitemmodule_module_name_label')];
 }
コード例 #8
0
ファイル: SpacingBlock.php プロジェクト: krystian-thiede/luya
 public function config()
 {
     return ['vars' => [['var' => 'spacing', 'label' => Module::t('block_spacing_spacing_label'), 'initvalue' => 1, 'type' => 'zaa-select', 'options' => $this->spacingProperties]]];
 }
コード例 #9
0
ファイル: QuoteBlock.php プロジェクト: krystian-thiede/luya
 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 %}';
 }
コード例 #10
0
ファイル: FormBlock.php プロジェクト: krystian-thiede/luya
 public function name()
 {
     return Module::t("block_form_name");
 }
コード例 #11
0
ファイル: NavItem.php プロジェクト: aekkapun/luya
 public function attributeLabels()
 {
     return ['title' => \cmsadmin\Module::t('model_navitem_title_label'), 'alias' => \cmsadmin\Module::t('model_navitem_alias_label')];
 }
コード例 #12
0
 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 %}';
 }
コード例 #13
0
ファイル: create.php プロジェクト: boehsermoe/luya
<div ng-controller="CmsadminCreateController">
    <div class="row">
        <div class="col s12">
            <h5><?php 
echo \cmsadmin\Module::t('view_index_add_title');
?>
</h5>
            <div class="card-panel">
                <create-form data="data"></create-form>
            </div>
        </div>
    </div>
</div>
コード例 #14
0
 public function attributeLabels()
 {
     return ['value' => \cmsadmin\Module::t('model_navitemredirect_value_label'), 'type' => \cmsadmin\Module::t('model_navitemredirect_type_label')];
 }
コード例 #15
0
ファイル: DevBlock.php プロジェクト: krystian-thiede/luya
 public function name()
 {
     return Module::t('block_dev_name');
 }
コード例 #16
0
ファイル: LayoutBlock.php プロジェクト: krystian-thiede/luya
 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']]]], 'placeholders' => [['var' => 'left', 'label' => Module::t('block_layout_placeholders_left')], ['var' => 'right', 'label' => Module::t('block_layout_placeholders_right')]]];
 }
コード例 #17
0
ファイル: index.php プロジェクト: krystian-thiede/luya
        <a class="sidebar__button sidebar__button--grey" ui-sref="custom.cmsdraft">
            <div class="sidebar__icon-holder">
                <i class="sidebar__icon material-icons">receipt</i>
            </div>
            <span class="sidebar__text"><?php 
echo \cmsadmin\Module::t('view_index_sidebar_drafts');
?>
</span>
        </a>

        <div class="sidebar__button sidebar__button--grey sidebar__button--switch switch" ng-class="{ 'sidebar__button--active': showDrag }">
            <label>
                <input type="checkbox" ng-model="showDrag" ng-true-value="1" ng-false-value="0">
                <span class="lever"></span>
                <?php 
echo \cmsadmin\Module::t('view_index_sidebar_move');
?>
            </label>
        </div>


        <div class="treeview" ng-repeat="catitem in menuData.containers" ng-class="{ 'treeview--drag-active' : showDrag }">
            <h5 class="sidebar__group-title sidebar__group-title--clickable" ng-click="toggleCat(catitem.id)"><i class="material-icons sidebar__group-title-icon" ng-class="{'sidebar__group-title-icon--closed': toggleIsHidden(catitem.id)}">arrow_drop_down</i> <span>{{catitem.name}}</span></h5>
            
            <div class="treeview__drop" ng-show="(menuData.items|menuparentfilter:catitem.id:0).length == 0 && !toggleIsHidden(catitem.id)" ng-controller="DropNavController" ng-model="droppedNavItem" data-itemid="{{catitem.id}}" data-drop="true" data-jqyoui-options="{greedy : true, tolerance : 'pointer', hoverClass : 'treeview__drop--hover' }" jqyoui-droppable="{onDrop: 'onEmptyDrop()', multiple : true}"></div>
            
            <ul class="treeview__list" ng-hide="toggleIsHidden(catitem.id)">
                <li class="treeview__item" ng-repeat="data in menuData.items | menuparentfilter:catitem.id:0" ng-include="'reverse.html'"></li>
            </ul>
        </div>
    </div>
コード例 #18
0
ファイル: drafts.php プロジェクト: rocksolid-tn/luya
</p>
        <div class="card-panel" ng-controller="DraftsController">
            <table class="striped">
                <thead>
                <tr>
                    <th><?php 
echo \cmsadmin\Module::t('draft_column_id');
?>
</th>
                    <th><?php 
echo \cmsadmin\Module::t('draft_column_title');
?>
</th>
                    <th><?php 
echo \cmsadmin\Module::t('draft_column_action');
?>
</th>
                </tr>
                </thead>
                <tr ng-repeat="item in menuData.drafts">
                    <td>{{item.id}}</td>
                    <td>{{item.title}}</td>
                    <td><button type="button" ng-click="go(item.id)" class="btn btn-flat"><?php 
echo \cmsadmin\Module::t('draft_edit_button');
?>
</button>
                </tr>
            </table>
        </div>
    </div>
</div>
コード例 #19
0
ファイル: NavItemPage.php プロジェクト: krystian-thiede/luya
 public function attributeLabels()
 {
     return ['layout_id' => \cmsadmin\Module::t('model_navitempage_layout_label')];
 }
コード例 #20
0
ファイル: MapBlock.php プロジェクト: aekkapun/luya
 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 %}';
 }
コード例 #21
0
ファイル: ModuleBlock.php プロジェクト: GAMITG/luya
 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 %}';
 }
コード例 #22
0
ファイル: TextBlock.php プロジェクト: krystian-thiede/luya
 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>';
 }
コード例 #23
0
ファイル: update.php プロジェクト: rocksolid-tn/luya
                                    <p><?php 
echo \cmsadmin\Module::t('view_update_page_is_module');
?>
</p>
                                </div>
                                <div class="col s12" ng-switch-when="3">
                                    <div ng-switch on="typeData.type">
                                        <div ng-switch-when="1">
                                            <p><?php 
echo \cmsadmin\Module::t('view_update_page_is_redirect_internal');
?>
</p>
                                        </div>
                                        <div ng-switch-when="2">
                                            <p><?php 
echo \cmsadmin\Module::t('view_update_page_is_redirect_external');
?>
.</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- /PAGE__CONTENT -->
                    </div>
                    <!-- /PAGE -->
                </div>

            </div>
        </div>
コード例 #24
0
ファイル: ImageTextBlock.php プロジェクト: GAMITG/luya
 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 }}" 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 %}';
 }
コード例 #25
0
ファイル: ImageBlock.php プロジェクト: krystian-thiede/luya
 public function twigAdmin()
 {
     $image = '{% if extras.imageAdmin.source %}<p><img src="{{extras.imageAdmin.source}}" 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;
 }
コード例 #26
0
ファイル: update.php プロジェクト: boehsermoe/luya
                            </div>
                        </div>
                        <!-- /PAGE__CONTENT -->
                    </div>
                    <!-- /PAGE -->
                </div>

            </div>
        </div>

        <div class="cms__sidebar">
            <div class="blockholder" ng-controller="DroppableBlocksController">
                <div class="col s12">
                    <div class="blockholder__group blockholder__group--clipboard" ng-show="copyStack.length > 0">
                        <b class="blockholder__group-title blockholder__group-title--clipboard"><i class="material-icons left">content_copy</i> <?php 
echo \cmsadmin\Module::t('view_update_blockholder_clipboard');
?>
</b>
                        <div class="blockholder__block" ng-repeat="stackItem in copyStack" data-drag="true" data-copy="true" jqyoui-draggable="{placeholder: 'keep', onStart : 'onStart', onStop : 'onStop'}" ng-model="stackItem" data-jqyoui-options="{revert: false, refreshPositions : true, snapTolerance : 40, helper : 'clone', cursor:'move', cursorAt: { top: 0, left: 0 }}">
                            <span>{{stackItem.name}}</span>
                        </div>
                        <button type="button" ng-click="clearStack()" class="btn">x</button>
                    </div>
                    <div class="blockholder__search" ng-class="{'blockholder__search--active': searchQuery}">
                        <input class="blockholder__input" type="text" ng-model="searchQuery" value="" id="blockholderSearch" />
                        <label class="blockholder__icon blockholder__icon--search" for="blockholderSearch"><i class="material-icons">search</i></label>
                        <label class="blockholder__icon blockholder__icon--cancel" for="blockholderCancel">
                            <div ng-show="searchQuery.length > 0" ng-click="searchQuery=''"><i class="material-icons">close</i></div>
                        </label>
                    </div>
                    <div class="blockholder__group" ng-repeat="item in blocksData">
コード例 #27
0
ファイル: ListBlock.php プロジェクト: krystian-thiede/luya
 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 %}';
 }
コード例 #28
0
ファイル: TitleBlock.php プロジェクト: krystian-thiede/luya
 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 %}';
 }