OSDN Git Service

テンプレート更新。
authornaoki hirata <naoki@magic3.org>
Thu, 30 Mar 2017 12:52:08 +0000 (21:52 +0900)
committernaoki hirata <naoki@magic3.org>
Thu, 30 Mar 2017 12:52:08 +0000 (21:52 +0900)
include/sql/sample/singlepage_demo2.sql
templates/bs_single_orange/html/modules.php
templates/bs_single_orange/index.php

index 005c05b..49cfd3e 100644 (file)
@@ -101,9 +101,10 @@ INSERT INTO _page_def
 ('index', 'front',   'brand',         2,        'simple_html',        1,            '名称未設定1',                   '',                   '',          false,            0,                  now()),
 ('index', 'front',   'header',        2,        'simple_html',        2,            '名称未設定2',                   'Your Favorite Source of Free Bootstrap Themes',          '',          true,             0,                  now()),
 ('index', 'front',   'header-button', 2,        'simple_html',        3,            '名称未設定3',                   '',                   '',          false,            0,                  now()),
-('index', 'front',   'about',         2,        'simple_html',        4,            '名称未設定4',                   'About Grayscale',    '',          true,             0,                  now()),
-('index', 'front',   'photo',         2,        'simple_html',        5,            '名称未設定5',                   'Download Grayscale', '',          true,             0,                  now()),
-('index', 'front',   'contact',       2,        'simple_html',        6,            '名称未設定6',                   'Contact Start Bootstrap', '',          true,             0,                  now());
+('index', 'front',   'about',         2,        'simple_html',        4,            '名称未設定4',                   'We\'ve got what you need!',    '',          true,             0,                  now()),
+('index', 'front',   'about-button',  2,        'simple_html',        5,            '名称未設定5',                   '',    '',          false,             0,                  now()),
+('index', 'front',   'photo',         2,        'simple_html',        6,            '名称未設定6',                   '', '',          false,             0,                  now()),
+('index', 'front',   'contact',       2,        'simple_html',        7,            '名称未設定7',                   'Contact Start Bootstrap', '',          true,             0,                  now());
 
 -- メニュー定義
 TRUNCATE TABLE _menu_def;
@@ -124,6 +125,6 @@ INSERT INTO _widget_param
 ('simple_html', 1,            'O:8:\"stdClass\":3:{s:2:\"id\";N;s:4:\"name\";s:16:\"名称未設定1\";s:4:\"html\";s:15:\"Start Bootstrap\";}', now()),
 ('simple_html', 2,            'O:8:\"stdClass\":3:{s:2:\"id\";N;s:4:\"name\";s:16:\"名称未設定2\";s:4:\"html\";s:160:\"<p>Start Bootstrap can help you build better websites using the Bootstrap CSS framework! Just download your template and start going, no strings attached!</p>\r\n\";}', now()),
 ('simple_html', 3,            'O:8:\"stdClass\":3:{s:2:\"id\";N;s:4:\"name\";s:16:\"名称未設定3\";s:4:\"html\";s:13:\"Find Out More\";}', now()),
-('simple_html', 4,            'O:8:"stdClass":3:{s:2:"id";N;s:4:"name";s:16:"名称未設定3";s:4:"html";s:617:"<p>Grayscale is a free Bootstrap 3 theme created by Start Bootstrap. It can be yours right now, simply download the template on <a href="http://startbootstrap.com/template-overviews/grayscale/">the preview page</a>. The theme is open source, and you can use it for any purpose, personal or commercial.</p><p>This theme features stock photos by <a href="http://gratisography.com/">Gratisography</a> along with a custom Google Maps skin courtesy of <a href="http://snazzymaps.com/">Snazzy Maps</a>.</p><p>Grayscale includes full HTML, CSS, and custom JavaScript files along with LESS files for easy customization.</p>\r\n";}', now()),
-('simple_html', 5,            'O:8:"stdClass":3:{s:2:"id";N;s:4:"name";s:16:"名称未設定4";s:4:"html";s:202:"<p>You can download Grayscale for free on the preview page at Start Bootstrap.</p><a class="btn btn-default btn-lg" href="http://startbootstrap.com/template-overviews/grayscale/">Visit Download Page</a>";}', now()),
+('simple_html', 4,            'O:8:\"stdClass\":3:{s:2:\"id\";N;s:4:\"name\";s:16:\"名称未設定4\";s:4:\"html\";s:240:\"<p class=\"text-faded\">Start Bootstrap has everything you need to get your new website up and running in no time! All of the templates and themes on Start Bootstrap are open source, free to download, and easy to use. No strings attached!</p>\";}', now()),
+('simple_html', 5,            'O:8:\"stdClass\":3:{s:2:\"id\";N;s:4:\"name\";s:16:\"名称未設定5\";s:4:\"html\";s:12:\"Get Started!\";}', now()),
 ('simple_html', 6,            'O:8:"stdClass":3:{s:2:"id";N;s:4:"name";s:16:"名称未設定5";s:4:"html";s:799:"<p>Feel free to email us to provide some feedback on our templates, give us suggestions for new templates and themes, or to just say hello!</p><p><a href="mailto:feedback@startbootstrap.com">feedback@startbootstrap.com</a></p><ul class="list-inline banner-social-buttons"><li><a href="https://twitter.com/SBootstrap" class="btn btn-default btn-lg"><i class="fa fa-twitter fa-fw"></i> <span class="network-name">Twitter</span></a></li><li><a href="https://github.com/IronSummitMedia/startbootstrap" class="btn btn-default btn-lg"><i class="fa fa-github fa-fw"></i> <span class="network-name">Github</span></a></li><li><a href="https://plus.google.com/+Startbootstrap/posts" class="btn btn-default btn-lg"><i class="fa fa-google-plus fa-fw"></i> <span class="network-name">Google+</span></a></li></ul>";}', now());
\ No newline at end of file
index 38b654f..1624c57 100644 (file)
@@ -20,7 +20,28 @@ function modChrome_bootheader($module, &$params, &$attribs)
                <?php endif; ?>
                        <hr /><?php echo $module->content; ?>
        <?php endif;
-} 
+}
+function modChrome_bootheaderbutton($module, &$params, &$attribs)
+{
+       if (!empty ($module->content)) : ?>
+                       <a href="#about" class="btn btn-primary btn-xl page-scroll"><?php echo $module->content; ?></a>
+       <?php endif;
+}
+function modChrome_bootabout($module, &$params, &$attribs)
+{
+       if (!empty ($module->content)) : ?>
+               <?php if ($module->showtitle != 0) : ?>
+                       <h2 class="section-heading"><?php echo $module->title; ?></h2>
+               <?php endif; ?>
+                       <hr class="light" /><?php echo $module->content; ?>
+       <?php endif;
+}
+function modChrome_bootaboutbutton($module, &$params, &$attribs)
+{
+       if (!empty ($module->content)) : ?>
+                       <a href="#services" class="page-scroll btn btn-default btn-xl sr-button"><?php echo $module->content; ?></a>
+       <?php endif;
+}
 function modChrome_bootother($module, &$params, &$attribs)
 {
        if (!empty ($module->content)) : ?>
index d3759c7..a37202f 100644 (file)
@@ -69,7 +69,7 @@ $templateUrl = $document->baseurl . '/templates/' . $document->template;
         <div class="header-content">
             <div class="header-content-inner">
                                <jdoc:include type="modules" name="header" style="bootheader" />
-                <a href="#about" class="btn btn-primary btn-xl page-scroll">Find Out More</a>
+                               <jdoc:include type="modules" name="header-button" style="bootheaderbutton" />
             </div>
         </div>
     </header>
@@ -78,10 +78,8 @@ $templateUrl = $document->baseurl . '/templates/' . $document->template;
         <div class="container">
             <div class="row">
                 <div class="col-lg-8 col-lg-offset-2 text-center">
-                    <h2 class="section-heading">We've got what you need!</h2>
-                    <hr class="light">
-                    <p class="text-faded">Start Bootstrap has everything you need to get your new website up and running in no time! All of the templates and themes on Start Bootstrap are open source, free to download, and easy to use. No strings attached!</p>
-                    <a href="#services" class="page-scroll btn btn-default btn-xl sr-button">Get Started!</a>
+                    <jdoc:include type="modules" name="about" style="bootabout" />
+                                       <jdoc:include type="modules" name="about-button" style="bootaboutbutton" />
                 </div>
             </div>
         </div>