Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

818 B
Raw Blame
import(common.tpl)
import(pagination.tpl)

@{{type}} = [data-v-{{list}}] [data-v-{{type}}]
@{{type}}|deleteAllButFirstChild

@{{type}}|before = <?php
$count = 0;
if(isset($this->{{type}}) && is_array($this->{{type}})) {
	foreach ($this->{{type}} as $index => ${{type}}) { ?>
	
	@{{type}} [data-v-{{type}}-*]|innerText   = ${{type}}['@@__data-v-{{type}}-(*)__@@']
	@{{type}} input[data-v-{{type}}-*]|value  = ${{type}}['@@__data-v-{{type}}-(*)__@@']	
	@{{type}} button[data-v-{{type}}-*]|value = ${{type}}['@@__data-v-{{type}}-(*)__@@']	
	@{{type}} a[data-v-{{type}}-*]|href 	  = ${{type}}['@@__data-v-{{type}}-(*)__@@']	
	@{{type}} img[data-v-{{type}}-*]|src 	  = ${{type}}['@@__data-v-{{type}}-(*)__@@']	
	@{{type}} img[data-v-{{type}}-img]|src 	  = ${{type}}['image']
	
	@{{type}}|after = <?php 
		$count++;
	} 
}?>