Example #1
0
        $titleBar = "Cho thuê văn phòng   " . $titleBar;
    } else {
        $titleBar = "Cho thuê căn hộ   " . $titleBar;
    }
} else {
    $titleBar = !empty($listReals[0]['category_name']) ? $listReals[0]['category_name'] : "";
}
echo $titleBar;
?>
    </h1>

<div class="list">
    <?php 
foreach ($listReals as $key => $item) {
    $majorImage = "";
    $image = proccessimg($item['image']);
    foreach ($image as $img) {
        if (!empty($img)) {
            $majorImage = $img;
            break;
        }
    }
    ?>
    <div class="item">
        <a href="/<?php 
    echo convertViToEn($item['title'], $item['id']);
    ?>
i.html" title="<?php 
    echo $item['title'];
    ?>
">
Example #2
0
                        }, this);
                    });

            });

        });


    </script>

    <script type="text/javascript" src="/public/scripts/lightbox.js"></script>
    <link rel="stylesheet" type="text/css" href="/public/styles/lightbox.css" media="screen"/>

    <div id="gallery">
        <?php 
$image = proccessimg($real['image']);
?>
        <?php 
foreach ($image as $key => $item) {
    if (!empty($item)) {
        ?>
                <a data-lightbox="roadtrip" href="/upload/@files/<?php 
        echo $item;
        ?>
"
                   title="<?php 
        echo $real['title'];
        ?>
 !_<?php 
        echo $key + 1;
        ?>