Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Marketplace templates categories update
givanz6caa1178e7f7
diff --git a/admin/template/plugin/market.tpl b/admin/template/plugin/market.tplindex e42f2c5..e4c6dc2 100755--- a/admin/template/plugin/market.tpl+++ b/admin/template/plugin/market.tpl@@ -11,11 +11,12 @@ if(isset($this->plugins) && is_array($this->plugins))foreach ($this->plugins as $index => $plugin) {?>@plugin [data-v-plugin-*]|innerText = $plugin['@@__data-v-plugin-(.+)__@@']+ @plugin button[data-v-plugin-*]|value = $plugin['@@__data-v-plugin-(.+)__@@']@plugin a[data-v-plugin-*]|href = $plugin['@@__data-v-plugin-(.+)__@@']@plugin img[data-v-plugin-*]|src = $plugin['@@__data-v-plugin-(.+)__@@']@plugin img[data-v-plugin-icon]|src = $plugin['icon']- @plugin img[data-v-plugin-*]|src = <?php echo 'https://www.vvveb.com' . $plugin['@@__data-v-plugin-([-_\w]+)__@@'] ?? ''; ?>- @plugin a[data-v-plugin-*]|href = <?php echo 'https://plugins.vvveb.com' . $plugin['@@__data-v-plugin-([-_\w]+)__@@'] ?? ''; ?>+ @plugin img[data-v-plugin-*]|src = <?php echo 'https://www.vvveb.com' . $plugin['@@__data-v-plugin-(*)__@@'] ?? ''; ?>+ @plugin a[data-v-plugin-*]|href = <?php echo 'https://plugins.vvveb.com' . $plugin['@@__data-v-plugin-(*)__@@'] ?? ''; ?>@plugin [data-v-plugin-install-url]|href = <?php echo Vvveb\url( ['module' => 'plugin/market', 'action' => 'install', 'slug' => $plugin['slug']]); ?>@plugin [data-v-plugin-install-url]|data-slug = $plugin['slug']@@ -25,3 +26,24 @@ if(isset($this->plugins) && is_array($this->plugins))}}?>++@category = [data-v-plugin-categories] [data-v-plugin-category]+@category|deleteAllButFirstChild++@category|before = <?php+if(isset($this->categories) && is_array($this->categories)) {+foreach ($this->categories as $category) {?>++ @category [data-v-category-link] = $category['name']+ @category [data-v-category-*]|innerText = $category[''@@__data-v-theme-(*)__@@'']+ @category img[data-v-category-*]|src = $category[''@@__data-v-theme-(*)__@@'']+ @category [data-v-category-link]|addClass = <?php if (isset($this->taxonomy_item_id) && $category['taxonomy_item_id'] == $this->taxonomy_item_id) echo 'active';?>+ @category [data-v-category-link]|href = <?php echo htmlspecialchars(Vvveb\url(['module' => 'plugin/market', 'taxonomy_item_id' => $category['taxonomy_item_id']]));?>++@category|after = <?php }+}?>++#safemode|if_exists = $this->safemode++[data-v-search] = $this->search+diff --git a/admin/template/plugin/plugins_list.tpl b/admin/template/plugin/plugins_list.tplindex c386185..8d787d2 100755--- a/admin/template/plugin/plugins_list.tpl+++ b/admin/template/plugin/plugins_list.tpl@@ -7,14 +7,18 @@@plugin|before = <?phpif(isset($this->plugins) && is_array($this->plugins)) {$category = $this->category ?? '';- foreach ($this->plugins as $index => $plugin) { ?>+ foreach ($this->plugins as $index => $plugin) {+ if (isset($plugin['system'])) continue;//don't display system plugins+ ?>@plugin|id = <?php echo 'plugin-' . $plugin['slug'];?>@plugin img[data-v-plugin-screenshot]|src = $plugin['screenshot']@plugin input[data-v-vvveb-action]|value = $plugin['slug']- @plugin [data-v-plugin-*]|innerText = $plugin['@@__data-v-plugin-([-_\w]+)__@@']- @plugin a[data-v-plugin-*]|href = $plugin['@@__data-v-plugin-([-_\w]+)__@@']+ @plugin [data-v-plugin-*]|innerText = $plugin['@@__data-v-plugin-(*)__@@']+ @plugin a[data-v-plugin-*]|href = $plugin['@@__data-v-plugin-(*)__@@']+ @plugin input[data-v-plugin-*]|value = $plugin['@@__data-v-plugin-(*)__@@']+ @plugin button[data-v-plugin-*]|value = $plugin['@@__data-v-plugin-(*)__@@']@plugin [data-v-plugin-author-url]|href = $plugin['author-url']diff --git a/admin/template/theme/fonts.tpl b/admin/template/theme/fonts.tplindex 8018235..fa96bdf 100644--- a/admin/template/theme/fonts.tpl+++ b/admin/template/theme/fonts.tpl@@ -12,12 +12,12 @@ if(isset($this->builtin) && is_array($this->builtin)) {foreach ($this->builtin as $family => $font) {?>@font [data-v-font-family]|innerText = $family- @font [data-v-font-*]|innerText = $font['@@__data-v-font-([-_\w]+)__@@']+ @font [data-v-font-*]|innerText = $font['@@__data-v-font-(*)__@@']@variant|before = <?phpif(is_array($font['variants'])) foreach ($font['variants'] as $variant) {?>- @variant [data-v-variant-*]|innerText = $variant['@@__data-v-variant-([-_\w]+)__@@']+ @variant [data-v-variant-*]|innerText = $variant['@@__data-v-variant-(*)__@@']@variant [data-v-values]|before = <?phpif(is_array($variant)) foreach ($variant as $key => $value) {?>@@ -44,7 +44,7 @@ if(isset($this->fonts) && is_array($this->fonts)) {$i = 0;foreach ($this->fonts as $font) { $i++;?>- @font [data-v-*]|innerText = $font['@@__data-v-([-_\w]+)__@@']+ @font [data-v-*]|innerText = $font['@@__data-v-(*)__@@']@font [data-v-*]|name = <?php echo str_replace('[0]', "[$i]", '@@__name__@@');?>@font .accordion-button|data-bs-target = <?php echo '#font-' . $i?>;@font .accordion-collapse|id = <?php echo 'font-' . $i?>;diff --git a/admin/template/theme/market.tpl b/admin/template/theme/market.tplindex b15166a..218a951 100755--- a/admin/template/theme/market.tpl+++ b/admin/template/theme/market.tpl@@ -8,13 +8,36 @@ import(pagination.tpl)if(isset($this->themes) && is_array($this->themes)) {foreach ($this->themes as $index => $theme) {?>- @theme [data-v-theme-*]|innerText = $theme['@@__data-v-theme-([-_\w]+)__@@']- @theme a[data-v-theme-*]|href = $theme['@@__data-v-theme-([-_\w]+)__@@']- @theme img[data-v-theme-*]|src = <?php echo 'https://themes.vvveb.com' . $theme['@@__data-v-theme-([-_\w]+)__@@']; ?>- @theme a[data-v-theme-*]|href = <?php echo 'https://themes.vvveb.com' . $theme['@@__data-v-theme-([-_\w]+)__@@'] ?? ''; ?>+ @theme [data-v-theme-*]|innerText = $theme['@@__data-v-theme-(*)__@@']+ @theme button[data-v-theme-*]|value = $theme['@@__data-v-theme-(*)__@@']+ @theme a[data-v-theme-*]|href = $theme['@@__data-v-theme-(*)__@@']+ @theme img[data-v-theme-*]|src = <?php echo 'https://themes.vvveb.com' . $theme['@@__data-v-theme-(*)__@@']; ?>+ @theme a[data-v-theme-*]|href = <?php echo 'https://themes.vvveb.com' . $theme['@@__data-v-theme-(*)__@@'] ?? ''; ?>@theme [data-v-theme-install-url]|href = <?php echo Vvveb\url( ['module' => 'theme/market', 'action' => 'install', 'slug' => $theme['slug']]); ?>@theme [data-v-theme-install-url]|data-slug = $theme['slug'][data-v-themes] [data-v-theme]|after = <?php}}?>+++@category = [data-v-theme-categories] [data-v-theme-category]+@category|deleteAllButFirstChild++@category|before = <?php+if(isset($this->categories) && is_array($this->categories)) {+foreach ($this->categories as $category) {?>++ @category [data-v-category-link] = $category['name']+ @category [data-v-category-*]|innerText = $category[''@@__data-v-theme-(*)__@@'']+ @category img[data-v-category-*]|src = $category[''@@__data-v-theme-(*)__@@'']+ @category [data-v-category-link]|addClass = <?php if (isset($this->taxonomy_item_id) && $category['taxonomy_item_id'] == $this->taxonomy_item_id) echo 'active';?>+ @category [data-v-category-link]|href = <?php echo htmlspecialchars(Vvveb\url(['module' => 'theme/market', 'taxonomy_item_id' => $category['taxonomy_item_id']]));?>++@category|after = <?php }+}?>++#safemode|if_exists = $this->safemode++[data-v-search] = $this->search+diff --git a/admin/template/theme/themes_list.tpl b/admin/template/theme/themes_list.tplindex cf12201..85e1d94 100755--- a/admin/template/theme/themes_list.tpl+++ b/admin/template/theme/themes_list.tpl@@ -5,9 +5,11 @@ if(isset($this->themes) && is_array($this->themes)) {//$pagination = $this->themes[$_themes_idx]['pagination'];foreach ($this->themes as $index => $theme) {?>- [data-v-themes] [data-v-theme] [data-v-theme-*]|innerText = $theme['@@__data-v-theme-([-_\w]+)__@@']- [data-v-themes] [data-v-theme] a[data-v-theme-*]|href = $theme['@@__data-v-theme-([-_\w]+)__@@']- [data-v-themes] [data-v-theme] img[data-v-theme-*]|src = $theme['@@__data-v-theme-([-_\w]+)__@@']+ [data-v-themes] [data-v-theme] [data-v-theme-*]|innerText = $theme['@@__data-v-theme-(*)__@@']+ [data-v-themes] [data-v-theme] a[data-v-theme-*]|href = $theme['@@__data-v-theme-(*)__@@']+ [data-v-themes] [data-v-theme] img[data-v-theme-*]|src = $theme['@@__data-v-theme-(*)__@@']+ [data-v-themes] [data-v-theme] input[data-v-theme-*]|value = $theme['@@__data-v-theme-(*)__@@']+ [data-v-themes] [data-v-theme] button[data-v-theme-*]|value = $theme['@@__data-v-theme-(*)__@@'][data-v-themes] [data-v-theme] [data-v-theme-activate-url]|href = <?php echo Vvveb\url(['module' => 'theme/themes', 'action' => 'activate', 'theme' => $theme['folder']]);?>[data-v-themes] [data-v-theme] [data-v-theme-duplicate-url]|href = <?php echo Vvveb\url(['module' => 'theme/themes', 'action' => 'duplicate', 'theme' => $theme['folder']]);?>@@ -16,7 +18,7 @@ if(isset($this->themes) && is_array($this->themes)) {[data-v-themes] [data-v-theme] [data-v-theme-edit-url]|href = <?php echo Vvveb\url(['module' => 'editor/editor']) . '&url=/&template=index.html&theme=' . $theme['folder'];?>[data-v-themes] [data-v-theme] [data-v-theme-code-url]|href = <?php echo Vvveb\url(['module' => 'editor/code']) . '&type=themes#%2F' . $theme['folder'];?>[data-v-themes] [data-v-theme] [data-v-theme-fonts-url]|href = <?php echo Vvveb\url(['module' => 'theme/fonts', 'theme' => $theme['folder']]);?>- [data-v-themes] [data-v-theme]|after = <?php+ [data-v-themes] [data-v-theme]|after = <?php}}?>