예제 #1
0
    echo $query;
    ?>
">
        <div class="title"><?php 
    echo $post['title'];
    ?>
</div>
        <div class="buttons">
            <form action="/admin/posts/<?php 
    echo $post['id'];
    ?>
" method="POST">
                <input type="hidden" name="_method" value="delete" />
                <button type="submit" class="pure-button pure-button-alert">Delete</button>
            </form>
        </div>
    </div>
<?php 
}
?>
    <div class="more">
        <button class="pure-button pure-button-primary button-more" data-last="<?php 
echo isset($post['id']) ? $post['id'] : -1;
?>
" data-ajax="/admin/ajax/posts">Read More</button>
    </div>
</div>

<?php 
echo Template::section('main');
예제 #2
0
<?php

use Wandu\Template\Syntax\Template;
Template::setLayout('skin/sub-layout');
Template::setSection('aside', Template::load('skin/aside', []));
?>
This is complicated website example.
Hello, I'm <?php 
echo $name;
?>
.
예제 #3
0
<?php

use Wandu\Template\Syntax\Template;
Template::setLayout('layout/master', ['cssFiles' => ['/static/css/index.css?20160905'], 'jsFiles' => ['/static/js/jquery.instashow.packaged.js', '/static/vendor/isotope/dist/isotope.pkgd.min.js', '/static/vendor/jquery.simpleslider/jquery.simpleslider.min.js', '/static/js/popup.js?20160628', 'http://openapi.map.naver.com/openapi/naverMap.naver?ver=2.0&key=31e4d5fd3ada24ea1057920a526149fb', '/static/js/map.js', '/static/js/index.js?20160628']]);
?>

<section id="Instagram">
    <div class="container">
        <h2># INSTAGRAM</h2>
        <div id="instagram-contents">
            <div data-is data-is-api="http://www.stylistkelseysue.com/instashow/api/"
                data-is-source="#patio42, #patioD, #파티오42, #파티오디, #파티오D"
                data-is-speed="1000"
                data-is-auto="5000">
            </div>
        </div>
    </div>
</section>

<section id="About">
    <div class="container">
    <h2>ABOUT</h2>
	<div class="picture picture-1"><img src="/static/img/About-interior.jpg" /></div>
        <div class="content content-1">
            <div class="thumbnail"><img src="/static/img/About-interior-thumbnail.png" /></div>
            <div class="text">점심에는 레스토랑으로, 저녁에는 캐주얼바로<br />
                운영되며 그 외 시간대에는 누구나 편히 쉴 수 있는<br />
                카페로 즐길 수 있는 복합공간의 파티오42
            </div>
        </div>
        <div class="picture picture-2"><img src="/static/img/About-food.png" /></div>
예제 #4
0
 /**
  * @return string
  */
 public function render()
 {
     $templateLast = Template::setInstance($this);
     $contents = $this->capture(function () {
         extract($this->values);
         require $this->fileName;
     });
     Template::setInstance($templateLast);
     if (isset($this->layout)) {
         return $this->layout->setSection('main', $contents)->render();
     }
     return $contents;
 }
예제 #5
0
<?php

use Wandu\Template\Syntax\Template;
Template::setLayout('layout');
?>

<div class="contents main-second">
    <div class="header">
        <h2>Create New User</h2>
    </div>
    <form method="post" action="/admin/users" class="pure-form pure-form-aligned">
        <div class="body">
            <fieldset>
                <div class="pure-control-group">
                    <label for="FormUsername">Username</label>
                    <input id="FormUsername" type="text" name="username" placeholder="Username" autofocus />
                </div>

                <div class="pure-control-group">
                    <label for="FormPassword">Password</label>
                    <input id="FormPassword" type="password" name="password" placeholder="Password" required />
                </div>

                <div class="pure-control-group">
                    <label for="FormPassword2"></label>
                    <input id="FormPassword2" type="password" name="password2" placeholder="Password One More" required />
                </div>

                <div class="pure-control-group">
                    <label for="FormEmail">Email Address</label>
                    <input id="FormEmail" type="email" name="email" placeholder="Email Address" required />
예제 #6
0
<?php

use Wandu\Template\Syntax\Template;
Template::setLayout('layout/master2', ['cssFiles' => ['/static/css/index2.css'], 'jsFiles' => ['/static/vendor/jquery.simpleslider/jquery.simpleslider.min.js', '/static/js/index2.js', '/static/js/jquery.instashow.packaged.js']]);
?>

예제 #7
0
<?php

echo \Wandu\Template\Syntax\Template::load('header', ['title' => 'title from full-layout']);
echo \Wandu\Template\Syntax\Template::section('main');
echo \Wandu\Template\Syntax\Template::load('footer');
예제 #8
0
<?php

use Wandu\Template\Syntax\Template;
Template::setLayout('layout/new_master', ['cssFiles' => ['/static/css/franchise_new.css?20160505'], 'jsFiles' => ['/static/js/popup.js?20160505', '/static/js/franchise.js?20160505']]);
?>

<section id="about">
<?php 
/*
    <div class="change-franchise" style="background-color:white;">
        <div class="button button-patio active">PATIO42</div>
        <div class="button button-thepan">PATIO42 THE PAN</div>
    </div>
*/
?>
    <div class="container container-patio active">
        <div class="title">PATIO42</div>
        <div class="description">파티오42 디자인은 유행을 타지 않도록 엔틱과 모던의 명쾌한 조화로 이루어졌습니다.<br/>돌, 나무, 조명을 적절히 활용하여 우리집 앞마당(Patio) 같은 아늑함을 제공합니다.</div>
        <div class="content">
            <a class="about about-delicious">
                <img src="/static/img/about-patio-1.jpg">
            </a>
            <div class="content-title content-title-delicious">
                <div class="content-title-part part-delicious-1">파티오42는</div>
                <div class="content-title-part part-delicious-2">맛있습니다.</div>
            </div>
            <div class="content-text content-text-delicious">너무 뻔한 이야기이지만, 가장 중요한 기준은 '맛'입니다. 파티오 42의 '맛'이 모든 가맹점에서 동일하게 유지됩니다.</div>
            <a class="about about-handsome">
                <img src="/static/img/about-patio-2.jpg">
            </a>
            <div class="content-title content-title-handsome">
예제 #9
0
<?php

\Wandu\Template\Syntax\Template::setLayout('layout', ['title' => 'this is title']);
?>
this is <?php 
echo $who;
?>
 from layout!
예제 #10
0
<?php

use Wandu\Template\Syntax\Template;
Template::setLayout('../settings/layout', ['self' => 'categories']);
?>

<div class="contents main-second">
    <div class="header">
        <h2>Create New Post Category</h2>
    </div>
    <form method="post" action="/admin/settings/categories/<?php 
echo $category['id'];
?>
" class="pure-form pure-form-aligned">
        <input type="hidden" name="_method" value="put" />
        <div class="body">
            <fieldset>
                <div class="pure-control-group">
                    <label for="name">Name</label>
                    <input id="name" type="text" name="name" placeholder="Name" value="<?php 
echo $category['name'];
?>
" autofocus />
                </div>
            </fieldset>
        </div>
        <div class="footer">
            <button type="submit" class="pure-button pure-button-primary">Submit</button>
        </div>
    </form>
</div>
예제 #11
0
<header><?php 
echo $title;
?>
</header>
<main><?php 
echo \Wandu\Template\Syntax\Template::section('main');
?>
</main>
예제 #12
0
<?php

echo \Wandu\Template\Syntax\Template::load('header', ['title' => 'this is title']);
?>
this is <?php 
echo $who;
?>
!
<?php 
echo \Wandu\Template\Syntax\Template::load('footer', ['title' => 'this is footer']);