Exemplo n.º 1
0
 protected function _prepareData()
 {
     $this->order_name_array = JUDirectoryFrontHelperField::getFrontEndOrdering();
     $this->order_dir_array = JUDirectoryFrontHelperField::getFrontEndDirection();
     $this->listing_order = $this->escape($this->state->get('list.ordering', ''));
     $this->listing_dir = $this->escape($this->state->get('list.direction', 'ASC'));
     $this->listing_columns = (int) $this->params->get('listing_columns', 2);
     if (!is_numeric($this->listing_columns) || $this->listing_columns <= 0) {
         $this->listing_columns = 1;
     }
     $this->listing_bootstrap_columns = JUDirectoryFrontHelper::getBootstrapColumns($this->listing_columns);
     $this->listing_row_class = htmlspecialchars($this->params->get('listing_row_class', ''));
     $this->listing_column_class = htmlspecialchars($this->params->get('listing_column_class', ''));
     $this->allow_user_select_view_mode = $this->params->get('allow_user_select_view_mode', 1);
     if ($this->allow_user_select_view_mode && isset($_COOKIE['judir-view-mode']) && !empty($_COOKIE['judir-view-mode'])) {
         $viewMode = $_COOKIE['judir-view-mode'] == 'judir-view-grid' ? 2 : 1;
     } else {
         $viewMode = $this->params->get('default_view_mode', 2);
     }
     $this->view_mode = $viewMode;
 }
Exemplo n.º 2
0

	<?php 
// Total category level 1 (virtual level)
$totalCategoryLevel1 = 0;
foreach ($this->all_categories as $category) {
    if ($category->level == $this->category->level + 1) {
        $totalCategoryLevel1++;
    }
}
// Get total columns
$columns = (int) $this->params->get('all_categories_columns', 2);
if (!is_numeric($columns) || $columns <= 0) {
    $columns = 1;
}
$this->subcategory_bootstrap_columns = JUDirectoryFrontHelper::getBootstrapColumns($columns);
// Row and column class
$rows_class = htmlspecialchars($this->params->get('all_categories_row_class', ''));
$columns_class = htmlspecialchars($this->params->get('all_categories_column_class', ''));
// Index row
$indexRow = 0;
// Index column
$indexColumn = 0;
// Index element in array
$indexElementArray = 0;
?>
                  <h1 style="font-size: 24px; font-weight: bold;color:#2b4d76;font-family:SlabThing; ">Useful Listings for the F&B Industry in Singapore</h1>
<br>
	<div

		class="categories-row <?php