include 'includes/header.php';
?>
            
		<?php 
include 'includes/bread-crumb.php';
?>
			
                <div class="page_content_wrap">
                    <div class="content_wrap">
                        <div class="content">		
                            <div class="isotope_filters"></div>
                            <div class="isotope_wrap " data-columns="3">
                                <?php 
$num = 1;
$numClass = '';
foreach ($categoryObj->fetchRaw("*", " 1=1 ", " RAND() ") as $category) {
    $categoryData = array('id' => 'id', 'name' => 'name', 'image' => 'image', 'description' => 'description');
    foreach ($categoryData as $key => $value) {
        switch ($key) {
            case 'image':
                $categoryObj->{$key} = MEDIA_FILES_PATH1 . 'category/' . $category[$value];
                break;
            default:
                $categoryObj->{$key} = $category[$value];
                break;
        }
    }
    if ($num % 2 > 0) {
        $numClass = 'odd';
    } else {
        $numClass = 'even';
예제 #2
0
                                </article>	<!-- /.post_item -->
                            </div>						<!-- /.isotope_item -->
                            <?php 
    $courseNos++;
}
?>
                        </div> <!-- /.isotope_wrap -->
                        <script type="text/javascript">
                            jQuery(document).ready(function () {
                                    THEMEREX_GLOBALS['ppp'] = 6;
                                    <?php 
$categoryList = '';
if ($categoryParam > 0) {
    $categoryList .= '<a href="#" data-filter=".flt_0" class="isotope_filters_button">Public Sector</a> <a href="#" data-filter=".flt_1" class="isotope_filters_button">Private Sector</a>';
} else {
    foreach ($categoryObj->fetchRaw("*", " 1=1 ", " name ASC") as $category) {
        $categoryList .= '<a href="#" data-filter=".flt_' . $category['id'] . '" class="isotope_filters_button">' . $category['name'] . '</a>';
    }
}
?>
                                    jQuery(".isotope_filters").append('<a href="#" data-filter="*" class="isotope_filters_button active">All</a><?php 
echo $categoryList;
?>
');
                            });
                        </script>
                    </div> <!-- /div class="content" -->
                    <div class="pagination_wrap pagination_viewmore">
                        <a href="<?php 
echo $pageNum > 1 ? SITE_URL . 'courses/' . $classLink . 'page/' . ($pageNum - 1) . '/' : 'javascript:;';
?>
예제 #3
0
?>
">Private Sector Courses</a></li>
                                                <li id="menu-item-1154" class="menu-item menu-item-type-post_type menu-item-object-courses menu-item-1154"><a href="<?php 
echo SITE_URL . 'courses/public-sector/';
?>
">Public Sector Courses</a></li>
                                            </ul>
                                        </li>
                                        <li id="menu-item-1398" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1398"><a href="<?php 
echo SITE_URL . 'course-categories/';
?>
">Course Categories</a>
                                            <ul class="sub-menu">
                                                <?php 
$menuCatObj = new CourseCategory($dbObj);
foreach ($menuCatObj->fetchRaw("*", " 1=1 ", " name ASC ") as $menuCategory) {
    ?>
                                                <li id="menu-item-1399" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1399"><a href="<?php 
    echo SITE_URL . 'courses/category/' . $menuCategory['id'] . '/' . StringManipulator::slugify($menuCategory['name']) . '/';
    ?>
"><?php 
    echo $menuCategory['name'];
    ?>
</a></li>
                                                <?php 
}
?>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
예제 #4
0
<div class="sidebar widget_area bg_tint_light sidebar_style_light" role="complementary">
    <aside id="woocommerce_product_categories-3" class="widget_number_1 widget woocommerce widget_product_categories">
        <h5 class="widget_title">Categories</h5>
        <ul class="product-categories">
            <?php 
$sideCategoryObj = new CourseCategory($dbObj);
foreach ($sideCategoryObj->fetchRaw("*", " 1=1 ", " name ASC LIMIT 10") as $category) {
    $categoryData = array('id' => 'id', 'name' => 'name', 'image' => 'image', 'description' => 'description');
    foreach ($categoryData as $key => $value) {
        switch ($key) {
            case 'image':
                $sideCategoryObj->{$key} = MEDIA_FILES_PATH1 . 'category/' . $category[$value];
                break;
            default:
                $sideCategoryObj->{$key} = $category[$value];
                break;
        }
    }
    ?>
            <li class="cat-item cat-item-65"><a href="<?php 
    echo SITE_URL . 'courses/category/' . $sideCategoryObj->id . '/' . StringManipulator::slugify($sideCategoryObj->name) . '/';
    ?>
"><?php 
    echo $sideCategoryObj->name;
    ?>
</a> <span class="count">(<?php 
    echo Course::getSingleCategoryCount($dbObj, $sideCategoryObj->id);
    ?>
)</span></li>
            <?php 
}
예제 #5
0
                                                    <p><a href="mailto:<?php 
echo COMPANY_EMAIL;
?>
"><?php 
echo COMPANY_EMAIL;
?>
</a></p>
                                                </div>
                                                <div class="event-cta"> </div>
                                                <div class="related-event ">
                                                    <h3>Other Categories</h3>
                                                    <div class="ev-content">
                                                        <div class="row">
                                                            <?php 
$relatedCategoryObj = new CourseCategory($dbObj);
foreach ($relatedCategoryObj->fetchRaw("*", " id != {$categoryObj->id} ", " RAND() LIMIT 2 ") as $relatedCategory) {
    $categoryData = array('id' => 'id', 'name' => 'name', 'image' => 'image', 'description' => 'description');
    foreach ($categoryData as $key => $value) {
        switch ($key) {
            case 'image':
                $relatedCategoryObj->{$key} = MEDIA_FILES_PATH1 . 'category/' . $relatedCategory[$value];
                break;
            default:
                $relatedCategoryObj->{$key} = $relatedCategory[$value];
                break;
        }
    }
    ?>
                                                            <div class="col-md-6 col-sm-6 related-item">
                                                                <div class="thumb">
                                                                    <a href="<?php