</strong> <?php } else { ?> <strong><?php print t('Recently added item(s)'); ?> </strong> <ul class="list-unstyled"> <?php foreach ($items as $item) { ?> <li> <?php $image = _get_node_field($item, 'uc_product_image'); ?> <?php if (isset($image[0])) { ?> <?php print l(theme('image_style', array('style_name' => 'product_70x70', 'path' => $image[0]['uri'])), $item->nid, array('attributes' => array('class' => array('product-image')), 'html' => TRUE)); ?> <?php } ?> <a href="<?php print url('progressive/remove-from-cart/' . $item->nid . '/' . $item->cart_item_id); ?> " class="product-remove"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
* - $field->class: The safe class id to use. * - $field->handler: The Views field handler object controlling this field. Do not use * var_export to dump this object, as it can't handle the recursion. * - $field->inline: Whether or not the field should be inline. * - $field->inline_html: either div or span based on the above flag. * - $field->wrapper_prefix: A complete wrapper containing the inline_html to use. * - $field->wrapper_suffix: The closing tag for the wrapper. * - $field->separator: an optional separator that may appear before a field. * - $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 */ $image = _get_node_field($row, 'field_field_images'); $path = isset($image[0]) ? $image[0]['raw']['uri'] : ''; ?> <div class="project-item row"> <div class="col-md-4 col-md-offset-1"> <div class="project-desc"> <h4 class="title"><a href="<?php print url($fields['nid']->content); ?> "><?php print $fields['title']->content; ?> </a></h4> <span class="desc"><?php print truncate_utf8($fields['field_categories']->content, 50, FALSE, TRUE); ?>
* - $is_admin: Flags true when the current user is an administrator. * * Field variables: for each field instance attached to the node a corresponding * variable is defined, e.g. $node->body becomes $body. When needing to access * a field's raw values, developers/themers are strongly encouraged to use these * variables. Otherwise they will have to explicitly specify the desired field * language, e.g. $node->body['en'], thus overriding any language negotiation * rule that was previously applied. * * @see template_preprocess() * @see template_preprocess_node() * @see template_process() */ $fields = array('field_corner_text'); foreach ($fields as $field) { ${$field} = _get_node_field($node, $field); } $comments_array = isset($content['comments']['comments']) ? array_filter($content['comments']['comments'], '_count_comments') : array(); hide($content['body']); hide($content['comments']); hide($content['links']['comment']); hide($content['field_corner_text']); hide($content['add_to_cart']); ?> <article class="content product-page"> <div class="row"> <div class="col-sm-5 col-md-5"> <div class="image-box"> <?php if ($field_corner_text[0]['safe_value']) { ?>
<?php $user = user_load($node->uid); $info = _get_node_field($user, 'field_info'); ?> <div class="blog1-post-info-box mt-30"> <div class="text-box border padding-3"> <div class="iconbox-medium left round overflow-hidden"> <?php if (isset($user->picture->uri)) { ?> <?php print theme('image', array('path' => $user->picture->uri, array('attributes' => array('class' => array('img-responsive'))))); ?> <?php } ?> </div> <div class="text-box-right more-padding-2"> <h4><?php print $user->name; ?> </h4> <?php print $info[0]['safe_value']; ?> <br> <?php print l('Read More', 'user/' . $user->uid, array('attributes' => array('class' => array('btn', 'btn-border', 'orange-2', 'btn-small-2'))));