*   - $field->label: The wrap label text to use.
 *   - $field->label_html: The full HTML of the label to use including
 *     configured element type.
 * - $row: The raw result object from the query, with all data it fetched.
 *
 * @ingroup views_templates
 */
$link = FALSE;
$anchor = strip_tags($fields['view_submission']->content, '<a>');
if (!empty($anchor)) {
    $a = new SimpleXMLElement($anchor);
    $link = $a['href'];
}
$price = strip_tags($fields['value_5']->content);
$termObj = taxonomy_term_load(strip_tags($fields['value']->content));
$termObjLocalized = i18n_taxonomy_localize_terms($termObj);
$icon_uri = isset($termObj->field_map_icon['und'][0]['uri']) ? $termObj->field_map_icon['und'][0]['uri'] : 'public://default_images/unnamed.png';
$backgroundUrl = image_style_url('medium', $icon_uri);
$nameAddUrl = url('ak_mermix_tools/nojs/addphone/' . $price, array('query' => array('sid' => $fields['sid']->raw)));
if ($link) {
    $fields['value']->content = '<div class="category"  style="background: url(\'' . $backgroundUrl . '\') no-repeat"><a class="title" href="' . $link . '">' . $termObjLocalized->name . '</a></div>';
} else {
    $fields['value']->content = '<div class="category"  style="background: url(\'' . $backgroundUrl . '\') no-repeat"><span class="title">' . $termObjLocalized->name . '</span></div>';
}
$fields['value']->wrapper_prefix = '';
$fields['value']->wrapper_suffix = '';
$fields['value_1']->wrapper_suffix = $fields['value_1']->wrapper_suffix . '<a class="add-it btn btn-primary large-btn ctools-use-modal" href="' . $nameAddUrl . '"><span class="name">' . t('More information') . '</span></a>';
$fields['value_1']->content = $fields['value_1']->content . $fields['value_4']->content;
unset($fields['value_4']);
unset($fields['value_5']);
unset($fields['sid']);
Beispiel #2
0
		<div class="b-iterms">
        	<?php 
    for ($i = 0; $i < count($node->field_agrovoc['und']); $i++) {
        ?>
                        	<?php 
        if (isset($node->field_agrovoc['und'][$i]['taxonomy_term'])) {
            ?>
                                	<div id="biblio_tax_terms">
                                        	<?php 
            //print t($node->field_agrovoc['und'][$i][taxonomy_term]->name);
            ?>
						<?php 
            $term = taxonomy_term_load($node->field_agrovoc['und'][$i]['taxonomy_term']->tid);
            if (module_exists('i18n_taxonomy')) {
                module_load_include('inc', 'i18n', 'i18n_taxonomy.pages');
                $term = i18n_taxonomy_localize_terms($term);
            }
            echo $term->name;
            //strip_tags(render(taxonomy_term_view($term, 'full'), $language->language));
            //print_r($node->field_agrovoc);
            ?>
                                	</div>
                        	<?php 
        }
        ?>
                	<?php 
    }
    ?>
		</div>
</div>
<div id="biblio_abs" class="biblio-abs-c">
hide($content['field_gear']);
hide($content['field_links_and_tips']);
if ($page) {
    print render($content['field_ingres']);
}
?>

    <div class="activity-links">
      <?php 
$display = array('label' => 'hidden', 'settings' => array('image_style' => 'fj16_icon'));
$terms = field_get_items('node', $node, 'field_activity_terms');
foreach ($terms as $value) {
    if (!isset($value['taxonomy_term'])) {
        continue;
    }
    $term = i18n_taxonomy_localize_terms($value['taxonomy_term']);
    $icon = field_view_field('taxonomy_term', $term, 'field_icon', $display);
    $url = url('activities/' . $term->tid);
    print '<a href="' . $url . '">';
    print render($icon);
    print '<span>' . check_plain($term->name) . '</span>';
    print '</a>';
}
?>
    </div>
    <?php 
print render($content);
?>

    <?php 
if (!$teaser) {
Beispiel #4
0
function professional_theme_views_pre_render(&$view)
{
    global $language;
    if (isset($view->args[0])) {
        i18n_string_translate_langcode($language->language);
        $localized_term = i18n_taxonomy_localize_terms(taxonomy_term_load($view->args[0]));
        if ($localized_term) {
            $view->set_title($localized_term->name);
        }
    }
}
<?php

$search_box = $page['search_box'];
global $base_url;
//Load taxonomy term and vocabulary
$tid = arg(2);
$term = i18n_taxonomy_localize_terms(taxonomy_term_load($tid));
$my_arg = $term->name;
?>
<div class="main
<?php 
print $term->vocabulary_machine_name;
if (theme_get_setting('boson_boxed') == TRUE) {
    print ' boxed';
} else {
    print ' boxed-none';
}
?>
 
 ">

	<!-- TOP BAR 
	============================================= -->
	<div class="b-top-bar">
		<div class="layout">
			<!-- Some text -->
			<div class="wrap-left">
            <?php 
if ($page['top_left']) {
    print render($page['top_left']);
}