private function fillTOURInfo($input) { AImporter::model('tour', 'orderinfos', 'passengers'); AImporter::helper('tour', 'date', 'bookpro', 'image'); $duration = TourHelper::buildDuration($this->orderComplex->tour); $input = str_replace('{duration}', $duration, $input); $input = str_replace('{tour_name}', $this->orderComplex->tour->title, $input); $input = str_replace('{tour_number}', $this->orderComplex->tour->code, $input); $input = str_replace('{depart}', DateHelper::formatDate($this->orderComplex->tour->start), $input); if ($this->orderComplex->tour->type = "TOUR") { $customfield = BookProHelper::renderLayout('tour', $this->orderComplex->tour); $input = str_replace('{infosummary}', $customfield, $input); $layout = new JLayoutFile('addons', $basePath = JPATH_ROOT . '/components/com_bookpro/layouts'); $html = $layout->render($this->orderComplex); $input = str_replace('{addons}', $html, $input); $layout = new JLayoutFile('passengers', $basePath = JPATH_ROOT . '/components/com_bookpro/layouts'); $html = $layout->render($this->orderComplex->passengers); $input = str_replace('{passengers}', $html, $input); } elseif ($this->orderComplex->tour->type = "TOUR_INQUIRY") { $customfield = BookProHelper::renderLayout('customfieldvalue', $this->order->id); $input = str_replace('{customfields}', $customfield, $input); $customfield = BookProHelper::renderLayout('tour', $this->orderComplex); $input = str_replace('{infosummary}', $customfield, $input); } return $input; }
echo JText::_('MOD_BOOKPRO_TOUR_CATEGORY'); ?> : <?php echo $tour->cat_title; ?> </p> <?php } ?> <?php if ($showduration) { ?> <p> <span><?php echo TourHelper::buildDuration($tour); ?> </span> </p> <?php } ?> </div> </div> </div> <?php if (($i + 1) % $products_per_row == 0) { echo '</div>'; echo '<div class="row-fluid">';
echo JRoute::_('index.php?option=com_bookpro&task=tour.edit&id=' . (int) $subject->id); ?> "> <?php echo $subject->title; ?> </a> <br> <label class="label"><?php echo $subject->cat_title; ?> </label> </td> <td><?php echo TourHelper::buildDuration($subject); ?> </td> <td > <br/> <a href="<?php echo JRoute::_('index.php?option=com_bookpro&view=tourrate&tour_id=' . $subject->id); ?> " class="btn btn-success"> <?php