$moduleContent = '';
if ($style == self::WIDGET_STYLE_NAVMENU){ // ナビゲーションバーメニューはメニュータイプのウィジェットのみ実行
if ($widgetType == 'menu') $moduleContent = $render->getMenuContents($style, $widgetContent, $title, $attr, $params, $pageDefParam, $templateVer);
-
+
// ナビゲーションバータイプで作成できないときはデフォルトの出力を取得
if (empty($moduleContent)) $moduleContent = $render->getModuleContents('xhtml', $widgetContent, $title, $attr, $params, $pageDefParam, $templateVer);
} else {
DELETE FROM _templates WHERE tm_id = 'bootstrap_yeti';
INSERT INTO _templates
(tm_id, tm_name, tm_type, tm_device_type, tm_mobile, tm_use_bootstrap, tm_available, tm_clean_type, tm_create_dt) VALUES
-('bootstrap_yeti', 'bootstrap_sample1', 10, 0, false, true, true, 0, now());
+('bootstrap_yeti', 'bootstrap_yeti', 10, 0, false, true, true, 0, now());
-- *** システム標準テーブル ***
--- /dev/null
+<?php
+defined('_JEXEC') or die;
+
+function modChrome_bootblock($module, &$params, &$attribs)
+{
+ if (!empty ($module->content)) : ?>
+ <div class="moduletable<?php echo $params->get('moduleclass_sfx'); ?>">
+ <?php if ($module->showtitle != 0) : ?>
+ <h3><?php echo $module->title; ?></h3>
+ <?php endif; ?>
+ <?php echo $module->content; ?>
+ </div>
+ <?php endif;
+}
\ No newline at end of file
<?php
defined('_JEXEC') or die;
-/**
- * Template for Joomla! CMS, created with Artisteer.
- * See readme.txt for more details on how to use the template.
- */
-
-//require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
-
// Create alias for $this object reference:
$document = $this;
$(function(){
$('.button').addClass('btn btn-default');
- $('#pos-slide').affix({
- offset: {
- top: 100
- }
- });
+<?php global $gPageManager;if (!$gPageManager->isLayout()): ?>
+ if ($(window).width() >= 768){
+ $('#pos-slide').affix({
+ offset: {
+ top: $('#pos-slide').offset().top -70
+ }
+ });
+ }
+<?php endif; ?>
});
//]]>
</script>
<div class="row">
<?php if ($document->countModules('left') || $document->countModules('left-fixed') || $document->countModules('left-hide') || $document->countModules('left-slide')): ?>
<div class="col-sm-3"><div class="row">
- <?php if ($document->countModules('left-fixed')): ?><div class="col-sm-12 hidden-xs"><div id="pos-fixed"><jdoc:include type="modules" name="left-fixed" style="none" /></div></div><?php endif; ?>
- <?php if ($document->countModules('left')): ?><div class="col-sm-12"><jdoc:include type="modules" name="left" style="none" /></div><?php endif; ?>
- <?php if ($document->countModules('left-hide')): ?><div class="col-sm-12 hidden-xs"><jdoc:include type="modules" name="left-hide" style="none" /></div><?php endif; ?>
- <?php if ($document->countModules('left-slide')): ?><div class="col-sm-12"><div id="pos-slide"><jdoc:include type="modules" name="left-slide" style="none" /></div></div><?php endif; ?>
+ <?php if ($document->countModules('left-fixed')): ?><div class="col-sm-12 hidden-xs"><div id="pos-fixed"><jdoc:include type="modules" name="left-fixed" style="bootblock" /></div></div><?php endif; ?>
+ <?php if ($document->countModules('left')): ?><div class="col-sm-12"><jdoc:include type="modules" name="left" style="bootblock" /></div><?php endif; ?>
+ <?php if ($document->countModules('left-hide')): ?><div class="col-sm-12 hidden-xs"><jdoc:include type="modules" name="left-hide" style="bootblock" /></div><?php endif; ?>
+ <?php if ($document->countModules('left-slide')): ?><div class="col-sm-12"><div id="pos-slide"><jdoc:include type="modules" name="left-slide" style="bootblock" /></div></div><?php endif; ?>
</div></div>
<div class="col-sm-9"><div class="row">
- <?php if ($document->countModules('banner')): ?><div class="col-sm-12"><jdoc:include type="modules" name="banner" style="none" /></div><?php endif; ?>
- <div class="col-sm-12"><jdoc:include type="component" style="none" /></div>
- <?php if ($document->countModules('center-hide')): ?><div class="col-sm-12 hidden-xs"><jdoc:include type="modules" name="center-hide" style="none" /></div><?php endif; ?>
+ <?php if ($document->countModules('banner')): ?><div class="col-sm-12"><jdoc:include type="modules" name="banner" style="bootblock" /></div><?php endif; ?>
+ <div class="col-sm-12"><jdoc:include type="component" style="bootblock" /></div>
+ <?php if ($document->countModules('center-hide')): ?><div class="col-sm-12 hidden-xs"><div id="pos-slide"><jdoc:include type="modules" name="center-hide" style="bootblock" /></div></div><?php endif; ?>
</div></div>
<?php else: ?>
- <?php if ($document->countModules('banner')): ?><div class="col-sm-12"><jdoc:include type="modules" name="banner" style="none" /></div><?php endif; ?>
- <div class="col-sm-12"><jdoc:include type="component" style="none" /></div>
- <?php if ($document->countModules('center-hide')): ?><div class="col-sm-12 hidden-xs"><jdoc:include type="modules" name="center-hide" style="none" /></div><?php endif; ?>
+ <?php if ($document->countModules('banner')): ?><div class="col-sm-12"><jdoc:include type="modules" name="banner" style="bootblock" /></div><?php endif; ?>
+ <div class="col-sm-12"><jdoc:include type="component" style="bootblock" /></div>
+ <?php if ($document->countModules('center-hide')): ?><div class="col-sm-12 hidden-xs"><jdoc:include type="modules" name="center-hide" style="bootblock" /></div><?php endif; ?>
<?php endif; ?>
</div>
<jdoc:include type="modules" name="bottom" style="none" />