[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <table class="list-thumbnails" cellspacing="0"> 2 <tr> 3 {section var=Nodes loop=$node_array sequence=array( bglight, bgdark )} 4 {* Note: The tpl code for $ignore_nodes_merge with the eq, unique and count 5 is just a replacement for a missing template operator. 6 If there are common elements the unique array will have less elements 7 than the merged one 8 In the future this should be replaced with a new template operator that checks 9 one array against another and returns true if elements in the first 10 exists in the other *} 11 {let child_name=$Nodes.item.name|wash 12 ignore_nodes_merge_click=merge( $browse.ignore_nodes_click, $Nodes.item.path_array ) 13 ShowLink=and( eq( $ignore_nodes_merge_click|count, 14 $ignore_nodes_merge_click|unique|count ), 15 or( ne( $browse.action_name, 'MoveNode' ), ne( $browse.action_name, 'CopyNode' ) ), 16 $Nodes.item.object.content_class.is_container ) } 17 <td width="25%"> 18 {* $ShowLink is passed in node_view_gui for corresponding representation of image. *} 19 {node_view_gui view=browse_thumbnail content_node=$Nodes.item show_link=$ShowLink} 20 <div class="controls"> 21 {* Checkboxes *} 22 {* Note: The tpl code for $ignore_nodes_merge with the eq, unique and count 23 is just a replacement for a missing template operator. 24 If there are common elements the unique array will have less elements 25 than the merged one 26 In the future this should be replaced with a new template operator that checks 27 one array against another and returns true if elements in the first 28 exists in the other *} 29 {let ignore_nodes_merge=merge( $browse.ignore_nodes_select_subtree, $Nodes.item.path_array )} 30 {section show=and( or( $browse.permission|not, 31 cond( is_set( $browse.permission.contentclass_id ), 32 fetch( content, access, hash( access, $browse.permission.access, 33 contentobject, $Nodes.item, 34 contentclass_id, $browse.permission.contentclass_id ) ), 35 fetch( content, access, hash( access, $browse.permission.access, 36 contentobject, $Nodes.item ) ) ) ), 37 eq( $ignore_nodes_merge|count, 38 $ignore_nodes_merge|unique|count ) )} 39 {section show=is_array( $browse.class_array )} 40 {section show=$browse.class_array|contains( $Nodes.item.object.content_class.identifier )} 41 <input type="{$select_type}" name="{$select_name}[]" value="{$Nodes.item[$select_attribute]}" /> 42 {section-else} 43 <input type="{$select_type}" name="" value="" disabled="disabled" /> 44 {/section} 45 {section-else} 46 {section show=and( or( eq( $browse.action_name, 'MoveNode' ), eq( $browse.action_name, 'CopyNode' ) ), $Nodes.item.object.content_class.is_container|not )} 47 <input type="{$select_type}" name="{$select_name}[]" value="{$Nodes.item[$select_attribute]}" disabled="disabled" /> 48 {section-else} 49 <input type="{$select_type}" name="{$select_name}[]" value="{$Nodes.item[$select_attribute]}" /> 50 {/section} 51 {/section} 52 {section-else} 53 <input type="{$select_type}" name="" value="" disabled="disabled" /> 54 {/section} 55 {/let} 56 57 <p>{section show=$ShowLink} 58 <a href={concat( '/content/browse/', $Nodes.item.node_id )|ezurl}>{$Nodes.item.name|wash}</a> 59 {section-else} 60 {$Nodes.item.name|wash} 61 {/section}</p> 62 </div> 63 </td> 64 {/let} 65 {delimiter modulo=4} 66 </tr><tr> 67 {/delimiter} 68 {/section} 69 </tr> 70 </table>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |