Exemplo n.º 1
0
/**
 * Smarty {textformat}{/textformat} block plugin
 *
 * Type:     block function<br>
 * Name:     textformat<br>
 * Purpose:  format text a certain way with preset styles
 *           or custom wrap/indent settings<br>
 * Params:
 * <pre>
 * - style         - string (email)
 * - indent        - integer (0)
 * - wrap          - integer (80)
 * - wrap_char     - string ("\n")
 * - indent_char   - string (" ")
 * - wrap_boundary - boolean (true)
 * </pre>
 *
 * @link http://www.smarty.net/manual/en/language.function.textformat.php {textformat}
 *       (Smarty online manual)
 * @param array                    $params   parameters
 * @param string                   $content  contents of the block
 * @param Smarty_Internal_Template $template template object
 * @param boolean                  &$repeat  repeat flag
 * @return string content re-formatted
 * @author Monte Ohrt <monte at ohrt dot com>
 */
function smarty_block_textformat($params, $content, $template, &$repeat)
{
    if (is_null($content)) {
        return;
    }
    $style = null;
    $indent = 0;
    $indent_first = 0;
    $indent_char = ' ';
    $wrap = 80;
    $wrap_char = "\n";
    $wrap_cut = false;
    $assign = null;
    foreach ($params as $_key => $_val) {
        switch ($_key) {
            case 'style':
            case 'indent_char':
            case 'wrap_char':
            case 'assign':
                ${$_key} = (string) $_val;
                break;
            case 'indent':
            case 'indent_first':
            case 'wrap':
                ${$_key} = (int) $_val;
                break;
            case 'wrap_cut':
                ${$_key} = (bool) $_val;
                break;
            default:
                trigger_error("textformat: unknown attribute '{$_key}'");
        }
    }
    if ($style == 'email') {
        $wrap = 72;
    }
    // split into paragraphs
    $_paragraphs = preg_split('![\\r\\n]{2}!', $content);
    $_output = '';
    foreach ($_paragraphs as &$_paragraph) {
        if (!$_paragraph) {
            continue;
        }
        // convert mult. spaces & special chars to single space
        $_paragraph = preg_replace(array('!\\s+!' . Smarty::$_UTF8_MODIFIER, '!(^\\s+)|(\\s+$)!' . Smarty::$_UTF8_MODIFIER), array(' ', ''), $_paragraph);
        // indent first line
        if ($indent_first > 0) {
            $_paragraph = str_repeat($indent_char, $indent_first) . $_paragraph;
        }
        // wordwrap sentences
        if (Smarty::$_MBSTRING) {
            require_once SMARTY_PLUGINS_DIR . 'shared.mb_wordwrap.php';
            $_paragraph = smarty_mb_wordwrap($_paragraph, $wrap - $indent, $wrap_char, $wrap_cut);
        } else {
            $_paragraph = wordwrap($_paragraph, $wrap - $indent, $wrap_char, $wrap_cut);
        }
        // indent lines
        if ($indent > 0) {
            $_paragraph = preg_replace('!^!m', str_repeat($indent_char, $indent), $_paragraph);
        }
    }
    $_output = implode($wrap_char . $wrap_char, $_paragraphs);
    if ($assign) {
        $template->assign($assign, $_output);
    } else {
        return $_output;
    }
}
Exemplo n.º 2
0
 public function mb_wordwrap($string, $width = 75, $break = "\n", $cut = false)
 {
     return smarty_mb_wordwrap($string, $width, $break, $cut);
 }
    function content_56b4dd6be36947_17921762($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include 'C:\\xampp\\htdocs\\swapeazy\\app\\third_party\\Smarty\\plugins\\modifier.replace.php';
        }
        if (!is_callable('smarty_mb_wordwrap')) {
            include 'C:\\xampp\\htdocs\\swapeazy\\app\\third_party\\Smarty\\plugins\\shared.mb_wordwrap.php';
        }
        if (!is_callable('smarty_modifier_truncate')) {
            include 'C:\\xampp\\htdocs\\swapeazy\\app\\third_party\\Smarty\\plugins\\modifier.truncate.php';
        }
        ?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>Just Swap It</title>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/font-linearicons.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/bootstrap-theme.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/jquery.fancybox.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/jquery-ui.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/owl.carousel.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/owl.transitions.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/owl.theme.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/theme.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/responsive.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
sweetalert2/dist/sweetalert2.css">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">



</head>
<body>
<div class="wrap">
    <?php 
        echo $_smarty_tpl->getSubTemplate("common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

    <!-- End Header -->
    <div id="content">
       

    </div>
    <!-- End Banner -->
    <div class="product-list-filter">
        <div class="container">
        <div class="row"><div class="col-xs-12 col-lg-offset-1"> <img src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
images/banners/<?php 
        echo $_smarty_tpl->tpl_vars['category']->value;
        ?>
"></div> </div>
            <div class="title-product-filter">
           <div class="newsletter-form">
           
    
    
    

           </div>

                 <br>


    <div >
                    <ul class="list-product row list-unstyled">



                      <?php 
        $_smarty_tpl->tpl_vars['listing'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['listing']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latestListing']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['listing']->key => $_smarty_tpl->tpl_vars['listing']->value) {
            $_smarty_tpl->tpl_vars['listing']->_loop = true;
            ?>
    <li class="col-md-3 col-sm-6 col-xs-12">
        <div class="item-product item-product-loadmore">
            <div class="item-product-thumb">
                <a href="#" class="product-thumb-link"><img class="img-responsive"
                                                            src="<?php 
            echo $_smarty_tpl->tpl_vars['base']->value;
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['listing']->value['image']['src'], './u', 'u');
            ?>
"></a>
                <a href="<?php 
            echo $_smarty_tpl->tpl_vars['base_url']->value;
            ?>
listings/view/<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
" class="product-quick-view">View</a>
                
                
                
                
            </div>
            <div class="item-product-info">
                <div class="info-price">
                    
                </div>
                <h3 class="title-product"><a href="#"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['title'], 30, "\n", false), 20, "...", true);
            ?>
</a></h3>

                <p class="desc"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['description'], 70, "\n", false), 60, "...", true);
            ?>
.</p>

                <p class="desc" style="color:#FF595E">Expectation: <?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['expectation'];
            ?>
 </p>


                <div class="cart-wishlist-compare">
                    <form id="newRequestForm">
                        <input type="hidden" name="request" value="<?php 
            echo $_smarty_tpl->tpl_vars['requestDetails']->value['id'];
            ?>
">
                        <input type="hidden" name="swap" value="<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
">
                        <button type="submit" href="#" class="product-add-cart"><span class="f"></span></button>
                    </form>

                </div>
            </div>
        </div>
    </li>
<?php 
        }
        ?>







                    </ul>

                </div>




        </div>
    </div>



    </div>
    <!-- End Content -->

    
        
            
                
                    
                    
                    
                
            
        
    
    <!-- End Newsletter -->
    <div id="footer">
        <div class="container">
            <div class="footer-3">
                <div class="row">
                    <div class="col-md-4 col-sm-6 col-xs-12">
                        <div class="logo-footer3" style="color:#FF595E">
                            <a href="#">justswap</a>
                        </div>
                        <div class="contact-footer3">
                            <ul class="list-unstyled">
                                <li>Livi 2 </li>
                                <li>Tartu </li>
                                <li>Estonia</li>

                            </ul>
                        </div>
                        <div class="social-network3">
                            <ul class="list-inline share-social">
                                <li><a href="#"><i class="fa fa-facebook-square"></i></a></li>
                                <li><a href="#"><i class="fa fa-twitter-square"></i></a></li>
                                <li><a href="#"><i class="fa fa-pinterest-square"></i></a></li>
                                <li><a href="#"><i class="fa fa-youtube-square"></i></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-6 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>My Account</h2>
                            <ul>
                                <li><a href="#">My Swaps</a></li>
                                <li><a href="#">Logout </a></li>

                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-4 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>ABOUT US</h2>
                            <ul>
                                <li><a href="#">Swap Team</a></li>


                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-4 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>Categories</h2>
                            <ul>
                                <li><a href="#">Latest items</a></li>
                                <li><a href="#">Clothes</a></li>
                                <li><a href="#">Toys</a></li>

                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-4 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>CONNECT</h2>
                            <ul>

                                <li><a href="#">Facebook</a></li>

                                <li><a href="#">Google+</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer-bottom3">
                <div class="row">
                    <div class="col-md-9 col-sm-9 col-xs-12">
                        <ul class="list-inline menu-footer3">
                            <li><a href="#">Home </a></li>
                            <li><a href="#">Terms of Service  </a></li>
                            <li><a href="#">Privacy guidelines</a></li>
                            <li><a href="#">Contact Us</a></li>
                            <li><a href="#">Site Map</a></li>

                        </ul>
                    </div>
                    <div class="col-md-3 col-sm-3 col-xs-12">
                        <div class="copyright3">
                            <p>Managed  by <a href="#">http://justswap.azurewebsites.net</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Footer -->
</div>
<?php 
        echo $_smarty_tpl->getSubTemplate("common/modals.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
sweetalert2/dist/sweetalert2.min.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery-1.10.2.min.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/bootstrap.min.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery.fancybox.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery-ui.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/owl.carousel.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/theme.js"><?php 
        echo '</script';
        ?>
>

<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery.bxslider.js"><?php 
        echo '</script';
        ?>
>

<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['base']->value;
        ?>
ajax/jswrapper.js"><?php 
        echo '</script';
        ?>
>

<!-- Plugins -->
<link href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
dropzone/css/dropzone.css" rel="stylesheet">
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
dropzone/js/dropzone.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
dropzone/global.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/pinterest_grid.js"><?php 
        echo '</script';
        ?>
>



</body>
</html><?php 
    }
    function content_56b279edef33e6_20221310($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/var/www/swapeazy/app/third_party/Smarty/plugins/modifier.replace.php';
        }
        if (!is_callable('smarty_mb_wordwrap')) {
            include '/var/www/swapeazy/app/third_party/Smarty/plugins/shared.mb_wordwrap.php';
        }
        if (!is_callable('smarty_modifier_truncate')) {
            include '/var/www/swapeazy/app/third_party/Smarty/plugins/modifier.truncate.php';
        }
        ?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>Just Swap It</title>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/font-linearicons.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/bootstrap-theme.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/jquery.fancybox.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/jquery-ui.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/owl.carousel.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/owl.transitions.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/owl.theme.css"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/theme.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
css/responsive.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
sweetalert2/dist/sweetalert2.css">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">



</head>
<body>
<div class="wrap">
    <?php 
        echo $_smarty_tpl->getSubTemplate("common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

    <!-- End Header -->
    <div id="content">
       
    <div class="banner-home5">
        <div class="container">
            <div class="row"  >

                <div class="col-xs-4"  ">
                    <div class="banner-box banner-style3 box-left">
                        <a href="#" class="banner-box-link">
                            <img src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
images/theme/boys.PNG" alt="" />
                        </a>
                        <div class="banner-box-info">
                            <h2 class="title-banner-box style1"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['base_url']->value;
        ?>
categories/index/boys" style="color: inherit">Boys Clothes</a></h2>

                            

                        </div>
                    </div>




                </div>
                <div class="col-xs-4">
                    <div class="banner-box banner-style3 box-left">
                        <a href="#" class="banner-box-link">
                            <img src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
images/theme/girls.PNG" alt="" />
                        </a>
                        <div class="banner-box-info">
                          <h2 class="title-banner-box style1"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['base_url']->value;
        ?>
categories/index/girls" style="color: inherit">Girls Clothes</a></h2>


                        </div>
                    </div>





                </div>



                <div class="col-xs-4">

                <div class="row">

                      <div class="col-xs-12">

                    <div class="banner-box banner-style3 box-left">
                        <a href="#" class="banner-box-link">
                            <img src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
images/theme/misc.PNG" alt="" />
                        </a>
                        <div class="banner-box-info">

                          <h2 class="title-banner-box style1"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['base_url']->value;
        ?>
categories/index/misc" style="color: inherit">Miscellaneous</a></h2>

                        </div>
                    </div>


                    </div>

                    </div>



                  <div class="row">

                      <div class="col-xs-12">
                    <div class="banner-box banner-style3 box-left">
                        <a href="#" class="banner-box-link">
                            <img src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
images/theme/toys.PNG" alt="" />
                        </a>
                        <div class="banner-box-info">
                            <h2 class="title-banner-box style1"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['base_url']->value;
        ?>
categories/index/toys" style="color: inherit">Toys</a></h2>


                        </div>
                    </div>


                    </div>

                    </div>












                </div>




            </div>













        </div>
    </div>
    <!-- End Banner -->
    <div class="product-list-filter">
        <div class="container">

        <div align="center">

        <?php 
        if ($_smarty_tpl->tpl_vars['account_info']->value['is_logged_in']) {
            ?>


                                    <a  href="<?php 
            echo $_smarty_tpl->tpl_vars['base_url']->value;
            ?>
listings/create"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
images/theme/start-swaping-button.png"  height="70px"  > </a>

                                <?php 
        } else {
            ?>
                                 <a  href="<?php 
            echo $_smarty_tpl->tpl_vars['base_url']->value;
            ?>
users/login"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
images/theme/start-swaping-button.png"  height="70px" > </a>

                            <?php 
        }
        ?>

</div>

<br>
            <div class="title-product-filter">
           <div class="newsletter-form"><form><input type="text" onblur="if (this.value=='') this.value = this.defaultValue" onfocus="
           if (this.value==this.defaultValue) this.value = ''" value="Your Search" /> <input type="submit" value="Submit" style="background-color: #34A853"></form></div>





                 <br>
                <div class="row">
                    <div class="col-md-10 col-sm-10 col-xs-12">
                        <div class="nav-tabs-filter">
                            <ul role="tablist" class="nav nav-tabs">
                                <li class="active" role="presentation"><a data-toggle="tab" role="tab" aria-controls="latest" href="#newarrival">Latest</a></li>

                                <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="boys" href="#boys">Boys </a></li>
                                <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="girls" href="#girls">Girls</a></li>
                                  <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="toys" href="#toys">Toys</a></li>
                                   <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="misc" href="#misc">Miscellaneous</a></li>
                            </ul>
                        </div>
                    </div>
                    
                        
                            
                        
                    

                    <div class="col-md-2 col-sm-2 col-xs-12">

                    </div>





                </div>
                <div class="box-attr-filter">
                    <div class="item-box-attr">
                        <div class="item-attr-title">
                            <label>Categories</label>
                        </div>
                        <div class="item-attr-content">
                            <ul class="attr-category list-inline">
                                <li><a href="#">Dresses</a></li>
                                <li><a href="#">Jeans & Trousers</a></li>
                                <li><a href="#">Blouses & Shirts </a></li>
                                <li><a href="#">Tops & T-Shirts</a></li>
                                <li><a href="#">Jackets & Coats</a></li>
                                <li><a href="#">Skirts</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="item-box-attr">
                        <div class="item-attr-title">
                            <label>Price</label>
                        </div>
                        <div class="item-attr-content">
                            <div id="slider-range-price"></div>
                            <div class="attr-price-filter">
                                <p>
                                    <label for="amount-price">Filter By Price: </label>
                                    <input type="text" id="amount-price" readonly />
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="item-box-attr">
                        <div class="item-attr-title">
                            <label>Color</label>
                        </div>
                        <div class="item-attr-content">
                            <ul class="attr-color list-inline">
                                <li><a href="#"><span class="blue"></span></a></li>
                                <li><a class="selected" href="#"><span class="blue-air"></span></a></li>
                                <li><a href="#"><span class="yellow"></span></a></li>
                                <li><a href="#"><span class="green"></span></a></li>
                                <li><a href="#"><span class="red"></span></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="item-box-attr">
                        <div class="item-attr-title">
                            <label>Size</label>
                        </div>
                        <div class="item-attr-content">
                            <ul class="attr-size list-inline">
                                <li><a href="#">S</a></li>
                                <li><a href="#">M</a></li>
                                <li><a href="#">L</a></li>
                                <li><a href="#">XL</a></li>
                                <li><a href="#">2XL</a></li>
                                <li><a href="#">3XL</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="item-box-attr">
                        <div class="item-attr-title">
                            <label>Brand</label>
                        </div>
                        <div class="item-attr-content">
                            <ul class="attr-brand list-inline">
                                <li><a href="#">Brand 01 </a></li>
                                <li><a href="#">Brand 02 </a></li>
                                <li><a href="#">Brand 03 </a></li>
                                <li><a href="#">Brand 04 </a></li>
                                <li><a href="#">Brand 05 </a></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <!-- End Attribute Filter -->
            </div>
            <div class="tab-content">
                <div id="newarrival" class="tab-pane active list-product-loadmore" role="tabpanel">
                    <ul class="list-product row list-unstyled">
                        <?php 
        $_smarty_tpl->tpl_vars['listing'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['listing']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latestListing']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['listing']->key => $_smarty_tpl->tpl_vars['listing']->value) {
            $_smarty_tpl->tpl_vars['listing']->_loop = true;
            ?>
                            <li class="col-md-3 col-sm-6 col-xs-12">
                                <div class="item-product item-product-loadmore">
                                    <div class="item-product-thumb">
                                        <a href="#" class="product-thumb-link"><img class="img-responsive" src="<?php 
            echo $_smarty_tpl->tpl_vars['base']->value;
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['listing']->value['image']['src'], './u', 'u');
            ?>
" alt=""></a>
                                        <a href="#" class="product-quick-view">View</a>
                                        
                                            
                                            
                                        
                                    </div>
                                    <div class="item-product-info">
                                        <div class="info-price">
                                            
                                        </div>
                                        <h3 class="title-product"><a href="#"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['title'], 30, "\n", false), 10, "...", true);
            ?>
</a></h3>
                                        <p class="desc"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['description'], 30, "\n", false), 10, "...", true);
            ?>
.</p>
                                        <p class="desc" style="color:#FF595E">Expectation: <?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['expectation'];
            ?>
 </p>



                                       <div class="cart-wishlist-compare">
                                                <form id="newRequestForm">
                                                    <input type="hidden" name="request" value="<?php 
            echo $_smarty_tpl->tpl_vars['requestDetails']->value['id'];
            ?>
">
                                                    <input type="hidden" name="swap" value="<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
">
                                                    <button type="submit" href="#" class="product-add-cart"><span class="f"></span></button>
                                                </form>

                                            </div>
                                    </div>
                                </div>
                            </li>
                        <?php 
        }
        ?>
                    </ul>
                    <button class="btn-link-default btn-link-loadmore" data-num="8">load more</button>

                </div>
                <!-- End New Arrival -->
                <div id="boys" class="tab-pane list-product-loadmore" role="tabpanel">
                    <ul class="list-product row list-unstyled">
                        <?php 
        $_smarty_tpl->tpl_vars['listing'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['listing']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latestListingBoys']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['listing']->key => $_smarty_tpl->tpl_vars['listing']->value) {
            $_smarty_tpl->tpl_vars['listing']->_loop = true;
            ?>
                            <li class="col-md-3 col-sm-6 col-xs-12">
                                <div class="item-product item-product-loadmore">
                                    <div class="item-product-thumb">
                                        <a href="#" class="product-thumb-link"><img class="img-responsive" src="<?php 
            echo $_smarty_tpl->tpl_vars['base']->value;
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['listing']->value['image']['src'], './u', 'u');
            ?>
"></a>
                                        <a href="#" class="product-quick-view">View</a>
                                        
                                            
                                            
                                        
                                    </div>
                                    <div class="item-product-info">
                                        <div class="info-price">
                                            
                                        </div>
                                        <h3 class="title-product"><a href="#"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['title'], 30, "\n", false), 10, "...", true);
            ?>
</a></h3>
                                        <p class="desc"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['description'], 30, "\n", false), 10, "...", true);
            ?>
.</p>
                                        <p class="desc" style="color:#FF595E">Expectation: <?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['expectation'];
            ?>
 </p>



                                       <div class="cart-wishlist-compare">
                                                <form id="newRequestForm">
                                                    <input type="hidden" name="request" value="<?php 
            echo $_smarty_tpl->tpl_vars['requestDetails']->value['id'];
            ?>
">
                                                    <input type="hidden" name="swap" value="<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
">
                                                    <button type="submit" href="#" class="product-add-cart"><span class="f"></span></button>
                                                </form>

                                            </div>
                                    </div>
                                </div>
                            </li>
                        <?php 
        }
        ?>
                    </ul>
                    <button class="btn-link-default btn-link-loadmore" data-num="8">load more</button>
                </div>

                 <div id="girls" class="tab-pane list-product-loadmore" role="tabpanel">
                    <ul class="list-product row list-unstyled">
                        <?php 
        $_smarty_tpl->tpl_vars['listing'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['listing']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latestListingGirls']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['listing']->key => $_smarty_tpl->tpl_vars['listing']->value) {
            $_smarty_tpl->tpl_vars['listing']->_loop = true;
            ?>
                            <li class="col-md-3 col-sm-6 col-xs-12">
                                <div class="item-product item-product-loadmore">
                                    <div class="item-product-thumb">
                                        <a href="#" class="product-thumb-link"><img class="img-responsive" src="<?php 
            echo $_smarty_tpl->tpl_vars['base']->value;
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['listing']->value['image']['src'], './u', 'u');
            ?>
"></a>
                                        <a href="#" class="product-quick-view">View</a>
                                        
                                            
                                            
                                        
                                    </div>
                                    <div class="item-product-info">
                                        <div class="info-price">
                                            
                                        </div>
                                        <h3 class="title-product"><a href="#"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['title'], 30, "\n", false), 10, "...", true);
            ?>
</a></h3>
                                        <p class="desc"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['description'], 30, "\n", false), 10, "...", true);
            ?>
.</p>
                                        <p class="desc" style="color:#FF595E">Expectation: <?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['expectation'];
            ?>
 </p>



                                        <div class="cart-wishlist-compare">
                                                <form id="newRequestForm">
                                                    <input type="hidden" name="request" value="<?php 
            echo $_smarty_tpl->tpl_vars['requestDetails']->value['id'];
            ?>
">
                                                    <input type="hidden" name="swap" value="<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
">
                                                    <button type="submit" href="#" class="product-add-cart"><span class="f"></span></button>
                                                </form>

                                            </div>
                                    </div>
                                </div>
                            </li>
                        <?php 
        }
        ?>
                    </ul>
                    <button class="btn-link-default btn-link-loadmore" data-num="8">load more</button>
                </div>

                 <div id="toys" class="tab-pane list-product-loadmore" role="tabpanel">
                    <ul class="list-product row list-unstyled">
                        <?php 
        $_smarty_tpl->tpl_vars['listing'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['listing']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latestListingToys']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['listing']->key => $_smarty_tpl->tpl_vars['listing']->value) {
            $_smarty_tpl->tpl_vars['listing']->_loop = true;
            ?>
                            <li class="col-md-3 col-sm-6 col-xs-12">
                                <div class="item-product item-product-loadmore">
                                    <div class="item-product-thumb">
                                        <a href="#" class="product-thumb-link"><img class="img-responsive" src="<?php 
            echo $_smarty_tpl->tpl_vars['base']->value;
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['listing']->value['image']['src'], './u', 'u');
            ?>
"></a>
                                        <a href="#" class="product-quick-view">View</a>
                                        
                                            
                                            
                                        
                                    </div>
                                    <div class="item-product-info">
                                        <div class="info-price">
                                            
                                        </div>
                                        <h3 class="title-product"><a href="#"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['title'], 30, "\n", false), 10, "...", true);
            ?>
</a></h3>
                                        <p class="desc"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['description'], 30, "\n", false), 10, "...", true);
            ?>
.</p>
                                        <p class="desc" style="color:#FF595E">Expectation: <?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['expectation'];
            ?>
 </p>



                                        <div class="cart-wishlist-compare">
                                                <form id="newRequestForm">
                                                    <input type="hidden" name="request" value="<?php 
            echo $_smarty_tpl->tpl_vars['requestDetails']->value['id'];
            ?>
">
                                                    <input type="hidden" name="swap" value="<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
">
                                                    <button type="submit" href="#" class="product-add-cart"><span class="f"></span></button>
                                                </form>

                                            </div>
                                    </div>
                                </div>
                            </li>
                        <?php 
        }
        ?>
                    </ul>
                    <button class="btn-link-default btn-link-loadmore" data-num="8">load more</button>
                </div>
                 <div id="misc" class="tab-pane list-product-loadmore" role="tabpanel">
                    <ul class="list-product row list-unstyled">
                        <?php 
        $_smarty_tpl->tpl_vars['listing'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['listing']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latestListingMisc']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['listing']->key => $_smarty_tpl->tpl_vars['listing']->value) {
            $_smarty_tpl->tpl_vars['listing']->_loop = true;
            ?>
                            <li class="col-md-3 col-sm-6 col-xs-12">
                                <div class="item-product item-product-loadmore">
                                    <div class="item-product-thumb">
                                        <a href="#" class="product-thumb-link"><img class="img-responsive" src="<?php 
            echo $_smarty_tpl->tpl_vars['base']->value;
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['listing']->value['image']['src'], './u', 'u');
            ?>
"></a>
                                        <a href="#" class="product-quick-view">View</a>
                                        
                                            
                                            
                                        
                                    </div>
                                    <div class="item-product-info">
                                        <div class="info-price">
                                            
                                        </div>
                                        <h3 class="title-product"><a href="#"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['title'], 30, "\n", false), 10, "...", true);
            ?>
</a></h3>
                                        <p class="desc"><?php 
            echo smarty_modifier_truncate(smarty_mb_wordwrap($_smarty_tpl->tpl_vars['listing']->value['description'], 30, "\n", false), 10, "...", true);
            ?>
.</p>
                                        <p class="desc" style="color:#FF595E">Expectation: <?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['expectation'];
            ?>
 </p>



                                        <div class="cart-wishlist-compare">
                                                <form id="newRequestForm">
                                                    <input type="hidden" name="request" value="<?php 
            echo $_smarty_tpl->tpl_vars['requestDetails']->value['id'];
            ?>
">
                                                    <input type="hidden" name="swap" value="<?php 
            echo $_smarty_tpl->tpl_vars['listing']->value['id'];
            ?>
">
                                                    <button type="submit" href="#" class="product-add-cart"><span class="f"></span></button>
                                                </form>

                                            </div>
                                    </div>
                                </div>
                            </li>
                        <?php 
        }
        ?>
                    </ul>
                    <button class="btn-link-default btn-link-loadmore" data-num="8">load more</button>
                </div>



                <!-- herere -->


            </div>
        </div>
    </div>
    <!-- End Product List Filter -->
    <div class="partner-slider partner-home5">
        <div class="container">
        <h4>Partners</h4>


            <div class="row">
                <div class="partner-slider-directnav">
                    <div class="wrap-item">
                        <div class="item">
                            <div class="partner-item">
                                <a href="#"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
images/theme/estipost.jpg" alt="" /></a>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    </div>
    <!-- End Content -->

    
        
            
                
                    
                    
                    
                
            
        
    
    <!-- End Newsletter -->
    <div id="footer">
        <div class="container">
            <div class="footer-3">
                <div class="row">
                    <div class="col-md-4 col-sm-6 col-xs-12">
                        <div class="logo-footer3" style="color:#FF595E">
                            <a href="#">justswap</a>
                        </div>
                        <div class="contact-footer3">
                            <ul class="list-unstyled">
                                <li>Livi 2 </li>
                                <li>Tartu </li>
                                <li>Estonia</li>

                            </ul>
                        </div>
                        <div class="social-network3">
                            <ul class="list-inline share-social">
                                <li><a href="#"><i class="fa fa-facebook-square"></i></a></li>
                                <li><a href="#"><i class="fa fa-twitter-square"></i></a></li>
                                <li><a href="#"><i class="fa fa-pinterest-square"></i></a></li>
                                <li><a href="#"><i class="fa fa-youtube-square"></i></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-6 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>My Account</h2>
                            <ul>
                                <li><a href="#">My Swaps</a></li>
                                <li><a href="#">Logout </a></li>

                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-4 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>ABOUT US</h2>
                            <ul>
                                <li><a href="#">Swap Team</a></li>


                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-4 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>Categories</h2>
                            <ul>
                                <li><a href="#">Latest items</a></li>
                                <li><a href="#">Clothes</a></li>
                                <li><a href="#">Toys</a></li>

                            </ul>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-4 col-xs-12">
                        <div class="box-menu-footer3">
                            <h2>CONNECT</h2>
                            <ul>

                                <li><a href="#">Facebook</a></li>

                                <li><a href="#">Google+</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer-bottom3">
                <div class="row">
                    <div class="col-md-9 col-sm-9 col-xs-12">
                        <ul class="list-inline menu-footer3">
                            <li><a href="#">Home </a></li>
                            <li><a href="#">Terms of Service  </a></li>
                            <li><a href="#">Privacy guidelines</a></li>
                            <li><a href="#">Contact Us</a></li>
                            <li><a href="#">Site Map</a></li>

                        </ul>
                    </div>
                    <div class="col-md-3 col-sm-3 col-xs-12">
                        <div class="copyright3">
                            <p>Managed  by <a href="#">http://justswap.azurewebsites.net</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Footer -->
</div>
<?php 
        echo $_smarty_tpl->getSubTemplate("common/modals.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
sweetalert2/dist/sweetalert2.min.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery-1.10.2.min.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/bootstrap.min.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery.fancybox.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery-ui.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/owl.carousel.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/theme.js"><?php 
        echo '</script';
        ?>
>

<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
js/jquery.bxslider.js"><?php 
        echo '</script';
        ?>
>

<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['base']->value;
        ?>
ajax/jswrapper.js"><?php 
        echo '</script';
        ?>
>

<!-- Plugins -->
<link href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
dropzone/css/dropzone.css" rel="stylesheet">
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
dropzone/js/dropzone.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
dropzone/global.js"><?php 
        echo '</script';
        ?>
>


</body>
</html><?php 
    }