Example #1
0
        ?>
"
									href="<?php 
        echo JBusinessUtil::getEventLink($event->id, $event->alias);
        ?>
"><?php 
        echo $event->name;
        ?>
									</a>
							</div>
							<div class="event-location">
								<?php 
        echo $event->location;
        ?>
&nbsp;-&nbsp;<?php 
        echo JBusinessUtil::getDateGeneralFormat($event->start_date) . " " . JText::_("LNG_UNTIL") . " " . JBusinessUtil::getDateGeneralFormat($event->end_date);
        ?>
							</div>
							<div class="event-type">
								<?php 
        echo $event->eventType;
        ?>
							</div>
							<div class="event-desciption">
								<?php 
        echo JBusinessUtil::truncate($event->description, 250);
        ?>
							</div>
						</div>
					</div>
					<div class="clear"></div>
Example #2
0
		<li class="review">
			<div class="review-content">
			
				<h4><?php 
    echo $review->subject;
    ?>
</h4>
				
				<div class="review-author">
					<p class="review-by-content">
					<span class="reviewer-name"> <?php 
    echo $review->name;
    ?>
 </span>,
						<span class="review-date"><?php 
    echo JBusinessUtil::getDateGeneralFormat($review->creationDate);
    ?>
</span>
					</p>
				</div>
			
				<div class="rating-block">
					<?php 
    if (!empty($review->scores) && !empty($review->criteriaNames)) {
        ?>
						<div class="review-rating" itemtype="http://schema.org/Rating" itemscope="" itemprop="reviewRating">
								<span itemprop="ratingValue"><?php 
        echo number_format($review->rating, 1);
        ?>
</span>
							</div>
Example #3
0
        echo JBusinessUtil::getEventLink($event->id, $event->alias);
        ?>
"><?php 
        echo $event->name;
        ?>
											</a>
										</div>
										<div class="event-location">
											<i class="dir-icon-map-marker dir-icon-large"></i> <?php 
        echo $event->location;
        ?>
										</div>
										
										<div class="event-date">
											<i class="dir-icon-calendar"></i> <?php 
        echo JBusinessUtil::getDateGeneralFormat($event->start_date) . (!empty($event->start_date) && $event->start_date != $event->end_date ? " - " . JBusinessUtil::getDateGeneralFormat($event->end_date) : "");
        ?>
, 
											<?php 
        echo JBusinessUtil::getTimeText($event->start_time) . " " . JText::_("LNG_UNTIL") . " " . JBusinessUtil::getTimeText($event->end_time);
        ?>
										
										</div>
										
										<div class="event-type">
											<?php 
        echo JText::_("LNG_TYPE");
        ?>
: <strong><?php 
        echo $event->eventType;
        ?>
Example #4
0
 public static function prepareEmail($data, $company, $siteName, $billingInformation, $templEmail, $vat)
 {
     $user = JFactory::getUser($company->userId);
     $customerName = $user->username;
     $templEmail = str_replace(EMAIL_CUSTOMER_NAME, $customerName, $templEmail);
     $siteAddress = JURI::root();
     $templEmail = str_replace(EMAIL_SITE_ADDRESS, $siteAddress, $templEmail);
     $templEmail = str_replace(EMAIL_COMPANY_NAME, $siteName, $templEmail);
     $templEmail = str_replace(EMAIL_ORDER_ID, $data->order_id, $templEmail);
     $paymentMethod = $data->details->processor_type;
     $templEmail = str_replace(EMAIL_PAYMENT_METHOD, $paymentMethod, $templEmail);
     if (!empty($data->paid_at)) {
         $templEmail = str_replace(EMAIL_ORDER_DATE, JBusinessUtil::getDateGeneralFormat($data->paid_at), $templEmail);
     } else {
         $templEmail = str_replace(EMAIL_ORDER_DATE, JBusinessUtil::getDateGeneralFormat($data->details->payment_date), $templEmail);
     }
     $totalAmount = $data->amount_paid;
     if (empty($data->amount_paid)) {
         $totalAmount = $data->amount;
     }
     $templEmail = str_replace(EMAIL_TOTAL_PRICE, JBusinessUtil::getPriceFormat($totalAmount), $templEmail);
     $templEmail = str_replace(EMAIL_TAX_AMOUNT, JBusinessUtil::getPriceFormat($data->package->price * $vat / 100), $templEmail);
     $templEmail = str_replace(EMAIL_SUBTOTAL_PRICE, JBusinessUtil::getPriceFormat($data->package->price), $templEmail);
     $templEmail = str_replace(EMAIL_SERVICE_NAME, $data->service, $templEmail);
     $templEmail = str_replace(EMAIL_UNIT_PRICE, JBusinessUtil::getPriceFormat($data->package->price), $templEmail);
     $templEmail = str_replace(EMAIL_BILLING_INFORMATION, $billingInformation, $templEmail);
     return "<div style='width: 600px;'>" . $templEmail . '</div>';
 }
Example #5
0
        ?>
</a></h1>
					<span class="post-date" ><span itemprop="address"><?php 
        echo $offer->address;
        ?>
, <?php 
        echo $offer->city;
        ?>
, <?php 
        echo $offer->county;
        ?>
</span></span>
					
					<p class="offer-dates">
						<?php 
        echo JBusinessUtil::getDateGeneralFormat($offer->startDate) . " - " . JBusinessUtil::getDateGeneralFormat($offer->endDate);
        ?>
					</p>
					
					<?php 
        if (!empty($offer->categoryIds)) {
            ?>
					<p class="company-clasificaiton">
						<span class="offer-categories">
							<?php 
            $categoryIds = explode(',', $offer->categoryIds);
            $categoryNames = explode('#', $offer->categoryNames);
            $categoryAliases = explode('#', $offer->categoryAliases);
            for ($i = 0; $i < count($categoryIds); $i++) {
                ?>
											 <a rel="nofollow" href="<?php 
Example #6
0
    echo $event->type;
    ?>
					</td>
					<td class="hidden-phone">
						<?php 
    echo $event->location;
    ?>
					</td>
					<td>
						<?php 
    echo JBusinessUtil::getDateGeneralFormat($event->start_date);
    ?>
					</td>
					<td>
						<?php 
    echo JBusinessUtil::getDateGeneralFormat($event->end_date);
    ?>
					</td>
					<td class="hidden-phone">
						<?php 
    echo $event->view_count;
    ?>
					</td>
					<td valign=top align=center>
							<img  
								src ="<?php 
    echo JURI::base() . "components/" . JBusinessUtil::getComponentName() . "/assets/images/" . ($event->state == 0 ? "unchecked.gif" : "checked.gif");
    ?>
" 
								onclick	=	"	
												document.location.href = '<?php