Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Added image formats for site media options

givanz223f1f143ec0
diff --git a/admin/template/settings/site.tpl b/admin/template/settings/site.tpl
index 24fe446..2fdb3ea 100755
--- a/admin/template/settings/site.tpl
+++ b/admin/template/settings/site.tpl
@@ -150,6 +150,28 @@ $setting = '@@__name:\[(.*)\]__@@';
[data-v-resize] option|after = <?php
} ?>
+
+select[data-v-formats]|before =
+<?php
+ $name = 'formats';
+ $selected = '';
+ if (isset($this->setting['image_format']))
+ $selected = $this->setting['image_format'];
+?>
+
+[data-v-formats] [data-v-option]|deleteAllButFirstChild
+[data-v-formats] [data-v-option]|before = <?php
+ if (isset($this->$name))
+ foreach ($this->$name as $value => $text) {
+ ?>
+
+ [data-v-formats] [data-v-option]|value = $text
+ [data-v-formats] [data-v-option]|addNewAttribute = <?php if ($text == $selected) echo 'selected';?>
+ [data-v-formats] [data-v-option] = $text
+
+[data-v-formats] [data-v-option]|after = <?php
+} ?>
+
/*
select[data-v-setting]|before =