예제 #1
0
/**
 * alias of url_install_dir()
 * @return string
 */
function url_site()
{
    return url_install_dir();
}
예제 #2
0
</span> 개의 업소가 등록되어져 있습니다.


    <form class='search'>
        <input type="text" name="keyword" value="">
        <input type="submit" value="Search">
    </form>

    <div class="categories">

        <ul>
            <?php 
$cats = category()->loadAllArray();
foreach ($cats as $cat) {
    $file = data()->load("gid='company-category' AND code='{$cat['id']}'");
    $url_install_dir = url_install_dir();
    if ($file) {
        $id = $file->get('id');
        $url = $file->get('url');
        $img = "<img fid='{$id}' src='{$url}'>";
    } else {
        $img = "<img src='{$url_install_dir}model/company/tmp/category-icon/marketing.png'>";
    }
    ?>
            <li cid="<?php 
    echo $cat['id'];
    ?>
">
                <div>
                    <?php 
    echo $img;