* - entity-field-collection-item * - field-collection-item-{field_name} * * Other variables: * - $classes_array: Array of html class attribute values. It is flattened * into a string within the variable $classes. * * @see template_preprocess() * @see template_preprocess_entity() * @see template_process() */ $div_para_field_collection_item = '<div class="' . $classes . $attributes; $super_falso = '<div class="' . $classes . ' clearfix"' . $attributes . '>'; if (!empty($content['field_seccion_titulo']['#items'])) { $nombre_seccion = $content['field_seccion_titulo']['#items'][0]["safe_value"]; $id_pra_anchor = sanitaze($nombre_seccion); if (empty($nombre_seccion)) { $div_para_field_collection_item .= '>'; } else { $div_para_field_collection_item .= ' id="' . $id_pra_anchor . '" >'; } print $div_para_field_collection_item; } else { print $super_falso; } ?> <div class="content"<?php print $content_attributes; ?> > <?php
$field_collections_pra_page = array(); foreach ($items_field_collection as $elemento_items_fc) { $field_collections_pra_page[$array_index_mine] = $elemento_items_fc['value']; $array_index_mine++; } $pp = entity_load('field_collection_item', $field_collections_pra_page); $array_index_mine = 0; $linkys_titulos_fc = array(); $menu_navegacion_ul_is = '<ul id="spy-menu" class="nav navegacion-del-contenido-fc">'; // CLASE PAL CSS !!!!! foreach ($pp as $field_collections_pra_page => $Entity_items_field_collection) { if (empty($Entity_items_field_collection->field_seccion_titulo['und'][0]['value'])) { continue; } $nombre_del_titulo_seccion_del_field_collection = $Entity_items_field_collection->field_seccion_titulo['und'][0]['value']; $link_titulo_anchor = '<a title="' . $nombre_del_titulo_seccion_del_field_collection . '" href="#' . sanitaze($nombre_del_titulo_seccion_del_field_collection) . '">' . $nombre_del_titulo_seccion_del_field_collection . '</a>'; $menu_navegacion_ul_is .= "<li>" . $link_titulo_anchor . "</li>"; //$linkys_titulos_fc[$array_index_mine] = $link_titulo_anchor; //$array_index_mine++; } $menu_navegacion_ul_is .= '</ul>'; } ?> <?php if (!empty($action_links)) { ?> <ul class="action-links"><?php print render($action_links);