示例#1
0
 public function generateHtml($revisionId, $widgetId, $data, $skin)
 {
     $data['block'] = ipBlock('block_' . $widgetId)->exampleContent('')->render($revisionId);
     $data['widgetId'] = $widgetId;
     if (isset($data['background_image']) && $data['background_image']) {
         $data['background_image'] = ipReflection($data['background_image'], array('type' => 'fit', 'width' => isset($data['width']) ? $data['width'] : 960, 'height' => isset($data['height']) ? $data['height'] : 460, 'quality' => 60));
     }
     return parent::generateHtml($revisionId, $widgetId, $data, $skin);
 }
示例#2
0
<?php

echo ipView('_header.php')->render();
?>
<div class="medium-3 column sidebar">
    <div class="sidebar-toggle show-for-small-only"><i class="fa fa-angle-down"></i><?php 
echo __('Tggle sidebar', 'Xala');
?>
</div>
    <?php 
echo ipBlock('sidebar1')->asStatic()->exampleContent('<h3>Static sidebar content</h3>');
?>
    <?php 
echo ipBlock('sidebar2')->exampleContent('<h3>Page sidebar content</h3>');
?>
</div>
<div class="medium-9 column">
    <?php 
echo ipBlock('main');
?>
</div>
<?php 
echo ipView('_footer.php')->render();
示例#3
0
			<div class="row">
				<div class="col-lg-8 col-lg-offset-2 centered">
					<?php 
$options = array('id' => 'homeImage', 'width' => '155', 'height' => '155', 'class' => '', 'default' => ipThemeUrl('assets/img/user.png'));
echo ipSlot('image', $options);
?>
				<h1><?php 
echo ipSlot('text', array('id' => 'text1', 'default' => "Hi My name is Okeowo Aderemi"));
?>
 </h1>
					<?php 
echo ipSlot('text', array('id' => 'text2', 'default' => "Hello everybody. I'm Stanley, a free handsome bootstrap theme coded by BlackTie.co. A really simple theme for those wanting to showcase their work with a cute & clean style.\n\nPlease, consider to register to our newsletter to be updated with our latest themes and freebies. Like always, you can use this theme in any project freely. Share it with your friends."));
?>
 


				
				</div><!-- /col-lg-8 -->
			</div><!-- /row -->
	    </div> <!-- /container -->
	</div>
	<div class="container">
<div class="row mt centered">
		<?php 
echo ipBlock('home1')->render();
?>
		</div>
	</div>
    <div class="clear"></div>
<?php 
echo ipView('_footer.php')->render();
示例#4
0
                <?php 
$options = array('id' => 'imgHome', 'width' => '250', 'height' => '150', 'class' => 'img-responsive img-border img-left', 'default' => ipThemeUrl('assets/img/intro-pic.jpg'));
echo ipSlot('image', $options);
?>
                <hr class="visible-xs">
                <?php 
echo ipContent()->generateBlock('textContent')->render();
?>
          </div>
        </div>
    </div>

    <div class="row">
        <div class="box">
            <div class="col-lg-12">
                <hr>
                <?php 
echo ipSlot('text', array('id' => 'intro-text2', 'tag' => 'h2', 'class' => 'intro-text text-center', 'default' => 'Beautiful boxes to showcase your content'));
?>
                <hr>
                <?php 
echo ipBlock('main')->render();
?>
             </div>
        </div>
    </div>

</div>
<!-- /.container -->
<?php 
include_once 'modules/footer.php';
示例#5
0
<div id="footer">
    <div class="container">
        <div class="row">
            <div class="col-lg-4">
                <?php 
echo ipSlot('text', array('id' => 'text3', 'tag' => 'h4', 'default' => 'My Address'));
?>
               <?php 
echo ipSlot('text', array('id' => 'text4', 'default' => 'The default text'));
?>
            </div><!-- /col-lg-4 -->
<div class="col-lg-4">
                <p><?php 
echo ipBlock('block2')->asStatic()->render();
?>
</p>
            </div><!-- /col-lg-4 -->
 <div class="col-lg-4">

                <?php 
echo ipSlot('text', array('id' => 'text5', 'tag' => 'h4', 'default' => __('StanleyIP', 'Stanley', false), 'class' => ''));
?>
                <p>This cute theme was created to showcase your work in a simple way. Use it wisely.</p>
                <p><?php 
echo sprintf(__('Drag & drop with %s', 'Air'), '<a href="http://www.impresspages.org">ImpressPages</a>');
?>
</p>
 </div><!-- /col-lg-4 -->
 </div>
 </div>
</div>
示例#6
0
文件: home.php 项目: Umz/ImpressPages
<?php

echo ipView('_header.php')->render();
?>
    <div class="main col_12">
        <?php 
echo ipBlock('main')->exampleContent(' ');
?>
    </div>
    <div class="clear"></div>
<?php 
echo ipView('_footer.php')->render();
示例#7
0
 * Date: 9/25/14
 * Time: 8:43 PM
 */
echo ipView('_header.php')->render();
?>
<div id="white">
    <div class="container">
        <div class="row">
            <?php 
echo ipSlot('breadcrumb');
?>
            <div class="col-lg-8 col-lg-offset-2">
            <p><?php 
echo ipBlock('main')->render();
?>
</p>

            </div>
            <div class="col-lg-2">
                <p>Sidebar Goes Here</p>
                <p><?php 
echo ipBlock('side')->render();
?>
</p>
            </div>

        </div><!-- /row -->
    </div> <!-- /container -->
</div><!-- /white -->
<?php 
echo ipView('_footer.php')->render();
示例#8
0
>
            <?php 
// generate 2 - 7 levels submenu
// please note that it is possible to generate second level only if first level item is in breadcrumb
// $pages = \Ip\Menu\Helper::getMenuItems('menu1', 2, 7);
// echo ipSlot('menu', $pages);
//submenu of currently active menu item
//$pages = \Ip\Menu\Helper::getChildItems();
//echo ipSlot('menu', $pages);
echo ipSlot('menu', 'menu2');
?>
        </nav>
    </div>
    <div class="main col_12 col_md_12 col_lg_8 right">
        <?php 
echo ipSlot('breadcrumb');
?>
        <?php 
echo ipBlock('main')->render();
?>
    </div>
    <div class="side col_12 col_md_12 col_lg_3 left">
        <aside>
            <?php 
echo ipBlock('side1')->asStatic()->render();
?>
        </aside>
    </div>
    <div class="clear"></div>
<?php 
echo ipView('_footer.php')->render();
示例#9
0
<div class="_container ipsColsContainer">
<?php 
foreach ($cols as $i => $columnUniqueStr) {
    ?>
    <div class="ipsCol _col" style="width:<?php 
    echo $widths[$i];
    ?>
%;">
        <?php 
    $block = ipBlock($columnUniqueStr)->exampleContent(' ');
    if (!empty($static)) {
        $block->asStatic();
    }
    echo $block->render($revisionId);
    ?>
    </div>
<?php 
}
?>
</div>
 public function indexAction()
 {
     $this->initIp();
     $content = ipBlock('main')->render();
     return $this->render('ImpressPagesBundle:Default:index.html.twig', array('content' => $content));
 }