<div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-6 footer-info-wrapper">
                            <span><?php 
echo $configs['footer_text'];
?>
</span>                        
                        </div>
                        <!-- /.footer-info-wrapper -->
                        <div class="col-xs-12 col-sm-6 footer-links-wrapper">
                            <ul class="list-inline flr">
                                <?php 
foreach ($informations as $information) {
    ?>
                                    <li><a href="<?php 
    echo site_url('page/' . $information['id'] . '-' . convertTitle($information['title']));
    ?>
"><?php 
    echo $information['title'];
    ?>
</a></li>
                                <?php 
}
?>
                            </ul>
                        </div>

                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.container -->
Exemple #2
0
">
                            <h4 class="member-name"><?php 
    echo $girl['fullname'];
    ?>
</h4>
                        </a>
                        <span class="position">$<?php 
    echo $girl['cost'];
    ?>
</span>
                        <?php 
    foreach ($girl['locations'] as $location) {
        ?>
                            <p>
                                <a href="<?php 
        echo site_url('location/' . $location['id'] . '-' . convertTitle($location['name']));
        ?>
"><i class="fa fa-map-marker"></i>
                                    <?php 
        echo $location['name'];
        ?>
                                </a>
                            </p>
                        <?php 
    }
    ?>
                        <ul class="social-links">
                            <li><a target="_blank" href="<?php 
    echo !empty($girl['facebook']) ? $girl['facebook'] : '#';
    ?>
" class="facebook"><i class="fa fa-facebook"></i></a></li>
    <?php 
}
?>
    <?php 
if (!empty($tab_tags)) {
    ?>
    <div class="widget tagcloud">
        <div class="subpage-title">
            <h5>Some Tags</h5>
        </div>
        <ul class="tagcloud-list">
            <?php 
    foreach ($tab_tags as $tag) {
        ?>
            <li><a href="<?php 
        echo site_url('girls/tag/' . $tag['id'] . '-' . convertTitle($tag['name']));
        ?>
"><?php 
        echo $tag['name'];
        ?>
</a></li>
            <?php 
    }
    ?>
        </ul>
    </div>
    <?php 
}
?>
    <!-- /.sample-pages -->
</div>
Exemple #4
0
                            <div class="col-xs-12 col-sm-6 col-md-4 portfolio-item-wrapper">
                                <div class="portfolio-item">
                                    <div class="portfolio-thumb">
                                        <a href="<?php 
        echo site_url('girls/' . $locGirl['id'] . '-' . convertTitle($locGirl['title']));
        ?>
">
                                            <img src="<?php 
        echo base_url('public/images/small/' . $locGirl['image']);
        ?>
" class="img-responsive">
                                        </a>
                                    </div>
                                    <div class="portfolio-details">
                                        <h5><a href="<?php 
        echo site_url('girls/' . $locGirl['id'] . '-' . convertTitle($locGirl['title']));
        ?>
"><?php 
        echo $locGirl['fullname'];
        ?>
</a></h5>
                                        <p><?php 
        echo '$' . $girl['cost'];
        ?>
</p>
                                    </div>
                                </div>
                            </div>
                        <?php 
    }
    ?>
<?php

$path = "tests/";
$diretorio = dir($path);
echo "<div class='header color4'>Lista de arquivos no diretório {$path}:</div>";
echo " <br>";
echo "<ul>";
while ($arquivo = $diretorio->read()) {
    if ($arquivo != '..' && $arquivo != '.') {
        echo "<li><a href='" . $path . $arquivo . "' title='" . extension($arquivo) . "'>" . convertTitle($arquivo) . "</a></li>";
    }
}
echo "</ul>";
function convertTitle($archive)
{
    $extension = substr($archive, strpos($archive, "."));
    $titleCamelCase = str_replace($extension, "", $archive);
    $array = str_split($titleCamelCase);
    foreach ($array as $key => $value) {
        if (preg_match('/^[^a-z]*$/', $value)) {
            $array[$key] = ' ' . $value;
        }
    }
    return implode('', $array);
}
function extension($archive)
{
    return substr($archive, strpos($archive, ".") + 1);
}