示例#1
0
                    <div class="clearfix"></div>
                    <div class="lineseparator"></div>
                    <div>
                        <h6 style="padding: 20px 0 0 0; margin-bottom: 5px; " class="fontupper font12"><?php 
echo JText::_('COM_JBLANCE_SIMILAR_SERVICES');
?>
</h6>
                        <div><?php 
echo JblanceHelper::getCategoryNames($row->id_category, 'tags-link', 'service');
?>
</div>
                    </div>
                </div>
                <div class="col-md-8">
<?php 
echo JBMediaHelper::renderImageCarousel($row->attachment, 'service');
?>

                </div>
                <div class="col-md-12">
                    <div class="clearfix"></div>
                    <div><?php 
echo nl2br($row->description);
?>
</div>
                    <?php 
$registry = new JRegistry();
$registry->loadString($row->extras);
$extras = $registry->toObject();
$a = 0;
foreach ($extras as $key => $value) {
示例#2
0
echo JText::_('COM_JBLANCE_SEARCH');
?>
" class="btn btn-primary" />
      </div>
    </div>
  </div>

  <?php 
if ($n) {
    ?>
    <div class="row">
      <div class="services">
        <?php 
    for ($i = 0; $i < $n; $i++) {
        $row = $this->rows[$i];
        $attachments = JBMediaHelper::processAttachment($row->attachment, 'service');
        //from the list, show the first image
        $link_view = JRoute::_('index.php?option=com_jblance&view=service&layout=viewservice&id=' . $row->id);
        $sellerInfo = JFactory::getUser($row->user_id);
        ?>
          <div class="col-md-3">
            <div class="thumbnail" style="min-height: 300px;">
              <a href="<?php 
        echo $link_view;
        ?>
">
                <img class="img-responsive" style="height:180px; width:auto; " src="<?php 
        echo $attachments[0]['location'];
        ?>
" /></a>
              <div class="caption">
示例#3
0
 function removeServiceFile()
 {
     // Check for request forgeries
     JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));
     JBMediaHelper::removeServiceFile();
 }
示例#4
0
 function download()
 {
     // Check for request forgeries
     JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));
     JBMediaHelper::downloadFile();
 }