Exemplo n.º 1
0
<?php

defined("IN_FUSION") or die;
if (isset($_GET['cat_id']) && isnum($_GET['cat_id'])) {
    echo show_breadcrumbs("cat", stripinput($_GET['cat_id']));
    $result = dbquery("SELECT * FROM " . DB_AL_CATALOG_CATS . " WHERE ctg_cat_id='" . intval(stripinput($_GET['cat_id'])) . "'");
    if (!dbrows($result)) {
        redirect(FUSION_SELF);
    }
    $category = dbarray($result);
    set_title($category['ctg_cat_title'] . " | " . $locale['ctg43'] . " | " . $settings['sitename']);
    $result = dbquery("SELECT * FROM " . DB_AL_CATALOG_CATS . " WHERE ctg_cat_parent='" . $category['ctg_cat_id'] . "'");
    $has_subcats = false;
    if (dbrows($result)) {
        $has_subcats = true;
        opentable($category['ctg_cat_title'] . $locale['ctg46']);
        while ($cat = dbarray($result)) {
            echo "<div class='cat-row'>";
            echo "<a href='" . FUSION_SELF . "?action=category&cat_id=" . $cat['ctg_cat_id'] . "'><img src='" . (!empty($cat['ctg_cat_image']) && file_exists(AL_CATALOG_DIR . "uploads/cats/" . $cat['ctg_cat_image']) ? AL_CATALOG_DIR . "uploads/cats/" . $cat['ctg_cat_image'] : AL_CATALOG_DIR . "asset/no-image.jpg") . "' alt='" . $cat['ctg_cat_title'] . "' style='max-width:" . $catalog_settings['cat_thumb_width'] . "px; max-height: " . $catalog_settings['cat_thumb_height'] . "px;' class='cat-image' />";
            echo "<div class='cat-row-desc'>";
            echo "<a href='" . FUSION_SELF . "?action=category&cat_id=" . $cat['ctg_cat_id'] . "' class='cat-row-link'>" . $cat['ctg_cat_title'] . "</a>";
            echo "<p class='cat-row-desc-text'>" . $cat['ctg_cat_desc'] . "</p>";
            $subcats_result = dbquery("SELECT * FROM " . DB_AL_CATALOG_CATS . " WHERE ctg_cat_parent='" . $cat['ctg_cat_id'] . "'");
            if ($subcats_num = dbrows($subcats_result) > 0) {
                echo "<p class='cat-row-subcats'>" . $locale['ctg45'];
                $c = 0;
                while ($subcat = dbarray($subcats_result)) {
                    echo "<a href='" . FUSION_SELF . "?action=category&cat_id=" . $subcat['ctg_cat_id'] . "'>" . $subcat['ctg_cat_title'] . "</a>" . ($c < $subcats_num - 1 ? ", " : "");
                    $c++;
                }
                echo "</p>";
Exemplo n.º 2
0
function theme_options_show_breadcrumbs()
{
    if (!function_exists('show_breadcrumbs')) {
        return;
    }
    if (get_theme_option('breadcrumbs-enable') == "") {
        return;
    }
    if ((is_page() || get_post_type() == 'casino') && get_theme_option("bread-crumbs-hide-pages") != "") {
        return;
    }
    if (is_single() && get_post_type() != 'casino' && get_theme_option("bread-crumbs-hide-posts") != "") {
        return;
    }
    if (is_front_page() && get_theme_option("bread-crumbs-hide-home") != "") {
        return;
    }
    if (is_404() && get_theme_option("bread-crumbs-hide-404") != "") {
        return;
    }
    if (is_archive() && get_theme_option("bread-crumbs-hide-archive") != "") {
        return;
    }
    show_breadcrumbs();
}
Exemplo n.º 3
0
} else {
    echo 'sc-no-banner';
}
?>
" id="siteContent_?">

        <!-- Linki do portali społecznościowych -->
        <?php 
get_template_part('social-links');
?>

        <!-- Breadcrumbs -->
        <div class="row brc-wrapper hide-for-small-only">
            <div class="medium-12 column">
                <?php 
show_breadcrumbs('locations');
?>
        
            </div>
        </div>

        <!-- #region Content -->
        <div class="row" style="text-align: justify;  padding-top: 3%;">

            <!-- #region Główna zawartość -->
            <div class="large-8 column recipe">

                <!-- #region Informacje -->
                <div class="row ">
                    <div class="medium-12 column">
Exemplo n.º 4
0
<?php

defined("IN_FUSION") or die;
add_to_head("<script type='text/javascript' src='" . AL_CATALOG_DIR . "asset/jquery-migrate-1.2.1.min.js'></script>");
add_to_head("<script type='text/javascript' src='" . AL_CATALOG_DIR . "asset/fancybox/lib/jquery.mousewheel-3.0.6.pack.js'></script>");
add_to_head("<link rel='stylesheet' href='" . AL_CATALOG_DIR . "asset/fancybox/source/jquery.fancybox.css?v=2.1.3' type='text/css' media='screen' />");
add_to_head("<script type='text/javascript' src='" . AL_CATALOG_DIR . "asset/fancybox/source/jquery.fancybox.pack.js?v=2.1.3'></script>");
if (isset($_GET['item_id']) && isnum($_GET['item_id']) && isset($_GET['cat_id']) && isnum($_GET['cat_id'])) {
    echo show_breadcrumbs("item", stripinput($_GET['item_id']));
    $result = dbquery("SELECT * FROM " . DB_AL_CATALOG_CATS . " WHERE ctg_cat_id='" . stripinput($_GET['cat_id']) . "'");
    if (!dbrows($result)) {
        redirect(FUSION_SELF);
    }
    $cat = dbarray($result);
    $result = dbquery("SELECT i.*,ii.* FROM " . DB_AL_CATALOG_ITEMS . " i LEFT JOIN " . DB_AL_CATALOG_IMAGES . " ii ON ii.ctg_image_id=i.ctg_item_image WHERE ctg_item_cat='" . stripinput($_GET['cat_id']) . "' AND ctg_item_id='" . stripinput($_GET['item_id']) . "'");
    if (!dbrows($result)) {
        redirect(FUSION_SELF);
    }
    $item = dbarray($result);
    opentable($item['ctg_item_title']);
    // breadcrumbs
    echo "<div id='tabs-content'>";
    echo "<div id='tab-content-main' class='tab-content-div active'>";
    echo "<img src='" . ($item['ctg_image_file'] && file_exists(AL_CATALOG_DIR . 'uploads/' . $item['ctg_image_file']) ? AL_CATALOG_DIR . 'uploads/' . $item['ctg_image_file'] : AL_CATALOG_DIR . 'asset/no-image.jpg') . "' alt='' />";
    echo "<h3>" . $item['ctg_item_title'] . "</h3>";
    echo "<p>" . $item['ctg_item_desc'] . "</p>";
    echo "</div>";
    for ($i = 1; $i <= 10; $i++) {
        if (!empty($item['ctg_item_tab_' . $i . '_title'])) {
            echo "<div id='tab-content-" . $i . "' class='tab-content-div'>" . parse_catalog_images(stripslashes($item['ctg_item_tab_' . $i . '_desc'])) . "</div>";
        }
Exemplo n.º 5
0
} else {
    echo 'sc-no-banner';
}
?>
" id="siteContent_?">

        <!-- Linki do portali społecznościowych -->
        <?php 
get_template_part('social-links');
?>

        <!-- #region Breadcrumbs -->
        <div class="row brc-wrapper hide-for-small-only">
            <div class="medium-12 column">
                <?php 
show_breadcrumbs('dessert_type');
?>
        
            </div>
        </div>
        <!-- #endregion -->

        <!-- #region Main content -->
        <div class="row" style="text-align: justify;  padding-top: 3%;">

            <!-- #region Content -->
            <div class="large-8 column recipe">

                <!-- #region Informations -->
                <div class="row ">
                    <div class="medium-12 column">