|
@@ -42,9 +42,9 @@ discard block |
|
|
block discarded – undo |
42
|
42
|
foreach (\App::$Properties->get('languages') as $lang) { |
43
|
43
|
$generalItems[] = [ |
44
|
44
|
'type' => 'tab', |
45
|
|
- 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
46
|
|
- 'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update') . |
47
|
|
- $form->field('text.' . $lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'), |
|
45
|
+ 'text' => __('Lang').': '.Str::upperCase($lang), |
|
46
|
+ 'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update'). |
|
47
|
+ $form->field('text.'.$lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'), |
48
|
48
|
'html' => true, |
49
|
49
|
'active' => $lang === \App::$Request->getLanguage(), |
50
|
50
|
'!secure' => true |
|
@@ -52,10 +52,10 @@ discard block |
|
|
block discarded – undo |
52
|
52
|
|
53
|
53
|
$propertiesItems[] = [ |
54
|
54
|
'type' => 'tab', |
55
|
|
- 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
56
|
|
- 'content' => $form->field('metaTitle.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')) . |
57
|
|
- $form->field('metaKeywords.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')) . |
58
|
|
- $form->field('metaDescription.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')), |
|
55
|
+ 'text' => __('Lang').': '.Str::upperCase($lang), |
|
56
|
+ 'content' => $form->field('metaTitle.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')). |
|
57
|
+ $form->field('metaKeywords.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')). |
|
58
|
+ $form->field('metaDescription.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')), |
59
|
59
|
'html' => true, |
60
|
60
|
'!secure' => true, |
61
|
61
|
'active' => $lang === \App::$Request->getLanguage() |
|
@@ -89,13 +89,13 @@ discard block |
|
|
block discarded – undo |
89
|
89
|
<div class="col-md-4"> |
90
|
90
|
<span class="btn btn-success fileinput-button btn-block"> |
91
|
91
|
<i class="glyphicon glyphicon-plus"></i> |
92
|
|
- <span>' . __('Upload image') . '</span> |
|
92
|
+ <span>' . __('Upload image').'</span> |
93
|
93
|
<!-- The file input field used as target for the file upload widget --> |
94
|
94
|
<input id="fileupload" type="file" name="gallery-files" multiple> |
95
|
95
|
</span> |
96
|
96
|
</div> |
97
|
97
|
<div class="col-md-8"> |
98
|
|
- ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')) . ' |
|
98
|
+ ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')).' |
99
|
99
|
</div> |
100
|
100
|
</div><br/><br/>'; |
101
|
101
|
?> |
|
@@ -108,7 +108,7 @@ discard block |
|
|
block discarded – undo |
108
|
108
|
['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true], |
109
|
109
|
['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true] |
110
|
110
|
] |
111
|
|
-]);?> |
|
111
|
+]); ?> |
112
|
112
|
|
113
|
113
|
<?= $form->field('galleryFreeId', 'hidden') ?> |
114
|
114
|
<?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?> |
|
@@ -117,15 +117,15 @@ discard block |
|
|
block discarded – undo |
117
|
117
|
|
118
|
118
|
<?php |
119
|
119
|
// load max length display plugin |
120
|
|
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/maxlength.js'); |
|
120
|
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/maxlength.js'); |
121
|
121
|
// load datapicker plugin |
122
|
|
-\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl . '/assets/css/plugins/datapick/datapick.css'); |
123
|
|
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/datapick.js'); |
|
122
|
+\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl.'/assets/css/plugins/datapick/datapick.css'); |
|
123
|
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/datapick.js'); |
124
|
124
|
// load jquery-upload plugin |
125
|
|
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/css/jquery.fileupload.css'); |
126
|
|
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/js/vendor/jquery.ui.widget.js'); |
127
|
|
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/js/jquery.iframe-transport.js'); |
128
|
|
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/js/jquery.fileupload.js'); |
|
125
|
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/css/jquery.fileupload.css'); |
|
126
|
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/js/vendor/jquery.ui.widget.js'); |
|
127
|
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/js/jquery.iframe-transport.js'); |
|
128
|
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/js/jquery.fileupload.js'); |
129
|
129
|
?> |
130
|
130
|
|
131
|
131
|
<!-- dom model for gallery items --> |