HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/toursatsrilanka/
Upload File :
Current File : /home/islapiiu/sites/toursatsrilanka/attraction.php
<?php
include_once(dirname(__FILE__) . '/class/include.php');
?><?php ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Find travel ideas for planning your holiday to Sri Lanka. Discover things to see and do, places to stay and more Travel makes one modest, you see what a tiny place you occupy in the world.">
        <meta name="keywords" content="attraction in sri lanka,tour at sri lanka, watching attraction with tour at sri lanka,<?php foreach (Attraction::all() as $Attr) {
    echo "," . $Attr['title'];
} ?> ">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Attractions || Tours-at-srilanka</title>
        <!-- favicon -->
        <link rel="shortcut icon" href="images/logo/logo.png" type="image/x-icon">
        <link href="css/fontawesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="css/flaticon.css" rel="stylesheet" type="text/css"/>
        <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="css/owl.carousel.min.css" rel="stylesheet" type="text/css"/>
        <link href="css/lightcase.css" rel="stylesheet" type="text/css"/>
        <link href="css/style.css" rel="stylesheet" type="text/css"/>
        <link href="css/responsive.css" rel="stylesheet" type="text/css"/>
        <link href="css/custom.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="css-1/fullwidth.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="rs-plugin/css/settings.css" media="screen" />
        <link rel="stylesheet" href="css-1/rev-settings.css" type="text/css">
        <!--<link href="fontawesome/css/all.css" rel="stylesheet" type="text/css"/>-->
        <link href="font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" type="text/css"/>
    </head>

    <body>

        <!-- preloader start -->

        <!-- preloader end -->

        <!--  header-section start  -->
<?php include './header.php'; ?>
        <!--  header-section end  -->

        <section class="single-banner advisors-one-banner">
            <div class="page-breadcums">
                <div class="container">
                    <ul class="page-list">
                        <li><a href="index.php">Home</a></li>
                        <li><a href="attraction.php">Attractions</a></li>
                    </ul>
                </div>
            </div>
            <div class="banner-content-area">
                <div class="container">
                    <div class="row justify-content-center">
                        <div class="col-lg-10">
                            <div class="banner-content text-center">
                                <h1 class="banner-title">Attractions</h1>
                                <p class="text-center"> Find travel ideas for planning your holiday to Sri Lanka. Discover things to see and do, places to stay and more Travel makes one modest, you see what a tiny place you occupy in the world.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- teacher-grid-section start -->
        <section class="teacher-grid-section section-padding">
            <div class="container">
                <div class="teacher-grid-wrapper">


                    <div class="row mt-mb-15 teacher-grid-block">
                        <?php
                        foreach (Attraction::all() as $AllAttraction) {
                            ?>
                            <div class="col-xl-3 col-lg-4 col-md-6">

                                <div class="teacher-single text-center">
                                    <div class="teacher-thumb">
                                        <img src="upload/attraction/<?php echo $AllAttraction['image_name']; ?>">
                                    </div>
                                    <div class="teacher-content">
                                        <h4 class="teacher-name"><a href="view-attraction.php?id=<?php echo $AllAttraction['id']; ?>">                                            <?php
                                                if (strlen($AllAttraction['title']) > 15) {
                                                    echo substr($AllAttraction['title'], 0, 15) . '...';
                                                } else {
                                                    echo $AllAttraction['title'];
                                                }
                                                ?>
                                            </a></h4>
                                        <p> 
                                            <?php
                                            if (strlen($AllAttraction['short_description']) > 130) {
                                                echo substr($AllAttraction['short_description'], 0, 130) . '...';
                                            } else {
                                                echo $AllAttraction['short_description'];
                                            }
                                            ?>

                                        </p>
                                        <br>
                                        <a href="view-attraction.php?id=<?php echo $AllAttraction['id']; ?>" class="simple-btn">Read More<i class="fa fa-long-arrow-right"></i></a>
                                    </div>
                                </div>     

                            </div><!-- teacher-single end-->
                            <?php
                        }
                        ?>
                    </div>  


                </div>
            </div>
        </section>
        <!-- teacher-grid-section end -->

        <!-- scroll-to-top start -->
        <div class="scroll-to-top">
            <span class="scroll-icon">
                <i class="fa fa-rocket" aria-hidden="true"></i>
            </span>
        </div>
        <!-- scroll-to-top end -->
        <!-- footer-section start -->
<?php include './footer.php'; ?>
        <!-- footer-section end -->

        <!-- scroll-to-top start -->
        <div class="scroll-to-top">
            <span class="scroll-icon">
                <i class="fa fa-rocket" aria-hidden="true"></i>
            </span>
        </div>
        <!-- scroll-to-top end -->

        <!-- jquery js link -->
        <script src="rs-plugin/js/pluginson3step.js" type="text/javascript"></script>
        <!--<script src="js/jquery-3.3.1.min.js"></script>-->
        <!-- bootstrap js link -->
        <script src="rs-plugin/js/plugin-set.js" type="text/javascript"></script>
        <script src="js/bootstrap.bundle.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <!-- owl carousel js link -->
        <script src="js/owl.carousel.min.js"></script>
        <!-- lightcase js link -->
        <script src="js/lightcase.js"></script>
        <!-- waypoints js link -->
        <script src="js/jquery.waypoints.min.js"></script>
        <!-- countup js link -->
        <script src="js/jquery.countup.min.js"></script>
        <!-- circle-progress js link -->
        <script src="js/circle-progress.min.js"></script>
        <!-- countdown js link -->
        <script src="js/jquery.countdown.js"></script>
        <!-- goolg-map-activate js link -->
        <script src="js/goolg-map-activate.js"></script>
        <!-- main js link -->
        <script src="js/main.js"></script>
        <script src="rs-plugin/js/jquery.themepunch.tools.min.js"></script>
        <script src="rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
        <script src="rs-plugin/js/custom.js" type="text/javascript"></script>
        <script src="rs-plugin/js/on3step.js" type="text/javascript"></script>
        <script async src="https://www.jscache.com/wejs?wtype=selfserveprop&amp;uniq=649&amp;locationId=13147684&amp;lang=en_US&amp;rating=true&amp;nreviews=4&amp;writereviewlink=true&amp;popIdx=true&amp;iswide=true&amp;border=true&amp;display_version=2" data-loadtrk onload="this.loadtrk = true"></script>
        <script type="text/javascript">
            function googleTranslateElementInit() {
                new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element');
            }
        </script>
        <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>

    </body>

</html>