public static function generateHtml() { $menus = self::getMenus(); $menuHtml = array(); foreach ($menus as $menu) { $slotHtml = ipSlot('menu', $menu['alias']); if ($slotHtml && $menu['title']) { $menuItem['title'] = $menu['title']; $menuItem['html'] = $slotHtml; $menuHtml[] = $menuItem; } } $data['menus'] = $menuHtml; $html = ipView('view/sitemap.php', $data)->render(); return $html; }
echo $item->getBlank() ? 'target="_blank"' : ''; ?> > <?php if (!empty($data['icon']['enable'])) { ?> <?php if (ipIsManagementState()) { $defaultImage = "http://dummyimage.com/{$data['icon']['width']}x{$data['icon']['height']}/f5f5f5/888"; } elseif (!empty($data['icon']['empty'])) { $defaultImage = ipFileUrl('Plugin/AsdMenuWidget/Widget/Menu/assets/empty.png'); } else { $defaultImage = ''; } $title = $item->getTitle(); $image = ipSlot('image', array('id' => "asd-menu-item-image-{$data['menu']['name']}-{$item->getId()}", 'pageId' => $data['menu']['pageId'], 'height' => $data['icon']['height'], 'width' => $data['icon']['width'], 'default' => $defaultImage, 'alt' => $title, 'title' => $title)); ?> <?php if (!empty($image)) { ?> <span class="icon-place"><?php echo $image; ?> </span> <?php } ?> <?php if (!empty($data['icon']['text'])) { ?> <?php
<?php echo ipView('_header.php')->render(); ?> <div id="white"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 centered"> <?php $options = array('id' => 'contact', 'width' => '155', 'height' => '155', 'class' => 'cssclass(optional)', 'default' => ipThemeUrl('assets/img/user.png')); echo ipSlot('image', $options); ?> <h1>About</h1> <p><?php echo ipSlot('text', array('id' => 'contactText', 'default' => 'The default text')); ?> </p> </div> </div> </div> </div> <?php echo ipView('_footer.php')->render(); ?>
?> <html<?php echo ipHtmlAttributes(); ?> > <head> <?php ipAddCss('Ip/Internal/Core/assets/ipContent/ipContent.css'); // include default CSS for widgets ipAddCss('assets/theme.css'); echo ipHead(); ?> </head> <body> <div class="topmenu"> <?php echo ipSlot('menu', 'menu1'); ?> </div> <div class="content"> <?php echo ipBlock('main')->render(); ?> </div> <?php ipAddJs('assets/theme.js'); echo ipJs(); ?> </body> </html>
<?php echo ipSlot('image', array('id' => 'imgTeam1', 'width' => '350', 'height' => '210', 'class' => 'img-responsive', 'default' => 'http://placehold.it/750x450')); ?> <?php echo ipSlot('text', array('id' => 'jtitle1', 'tag' => 'h3', 'default' => 'John Smith Job Title')); ?> </div> <div class="col-sm-4 text-center"> <?php echo ipSlot('image', array('id' => 'imgTeam2', 'width' => '350', 'height' => '210', 'class' => 'img-responsive', 'default' => 'http://placehold.it/750x450')); ?> <?php echo ipSlot('text', array('id' => 'jtitle2', 'tag' => 'h3', 'default' => 'John Smith Job Title')); ?> </div> <div class="col-sm-4 text-center"> <?php echo ipSlot('image', array('id' => 'imgTeam3', 'width' => '350', 'height' => '210', 'class' => 'img-responsive', 'default' => 'http://placehold.it/750x450')); ?> <?php echo ipSlot('text', array('id' => 'jtitle3', 'tag' => 'h3', 'default' => 'John Smith Job Title')); ?> </div> <div class="clearfix"></div> </div> </div> </div> <!-- /.container --> <?php include_once 'modules/footer.php';
"> <div class="wrapper clearfix"> <header class="clearfix col_12"> <?php echo ipSlot('logo'); ?> <div class="right"> <span class="currentPage"><?php echo esc(ipContent()->getCurrentPage() ? ipContent()->getCurrentPage()->getTitle() : ''); ?> </span> <a href="#" class="topmenuToggle"> </a> <div class="topmenu"> <?php echo ipSlot('menu', 'menu1'); ?> <?php if (count(ipContent()->getLanguages()) > 1) { ?> <div class="languages"> <?php echo ipSlot('languages'); ?> </div> <?php } ?> </div> </div> </header>
echo ipView('_header.php')->render(); ?> <div id="ww"> <div class="container"> <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>
<?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';
<?php echo ipSlot('AddThis', true);
<?php ipAddCss('Ip/Internal/Core/assets/admin/admin.css'); ?> <?php echo ipHead(); ?> </head> <body class="ip ipAdminBody"> <?php if (!empty($submenu)) { ?> <div class="ipAdminSubmenu"> <?php echo ipSlot('menu', $submenu); ?> </div> <?php } ?> <?php if (empty($removeAdminContentWrapper)) { ?> <div class="ipsAdminAutoHeight ipAdminContentWrapper clearfix<?php if (!empty($submenu)) { ?> _hasSubmenu<?php } ?>
<?php /** * Created by PhpStorm. * User: Marijus * Date: 5/29/14 * Time: 10:15 AM */ echo ipSlot('Sitemap');
<footer> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <?php echo ipSlot('text', array('id' => 'copyright', 'tag' => 'p', 'default' => 'Copyright © Your Website 2014')); ?> </div> </div> </div> </footer> <?php ipAddJs('../assets/js/bootstrap.min.js'); echo ipJs(); ?> <!-- Script to Activate the Carousel --> <script> $('.carousel').carousel({ interval: 5000 //changes the speed }) </script> </body> </html>
public function verifyEmail($name = '') { //$params = array('name' => $name, 'mail'=> $mail); return ipSlot('veryEmail', $name); }
<?php echo ipSlot('text', array('id' => 'email', 'tag' => 'p', 'default' => 'Email:name@example.com')); ?> <?php echo ipSlot('text', array('id' => 'address', 'tag' => 'p', 'default' => 'Address:3481 Melrose Place Beverly Hills, CA 90210')); ?> </div> <div class="clearfix"></div> </div> </div> <div class="row"> <div class="box"> <div class="col-lg-12"> <hr> <?php echo ipSlot('text', array('id' => 'intro-c2', 'tag' => 'h2', 'class' => 'intro-text text-center', 'default' => 'Contact form')); ?> <hr> <?php echo ipContent()->generateBlock('contact-form')->asStatic()->render(); ?> </div> </div> </div> </div> <!-- /.container --> <?php include_once 'modules/footer.php';
<?php /** * Created by PhpStorm. * User: x64 * 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>
<?php include_once 'modules/header.php'; ?> <div class="container blog"> <div class="row"> <div class="box"> <div class="col-lg-12"> <hr> <?php echo ipSlot('text', array('id' => 'intro-b1', 'tag' => 'h2', 'class' => 'intro-text text-center', 'default' => 'Company blog')); ?> <hr> <?php echo ipContent()->generateBlock('blog')->render(); ?> </div> </div> </div> </div> <?php include_once 'modules/footer.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> <?php if (!ipAdminId()) { echo ipAddJs('assets/js/bootstrap.min.js'); } echo ipJs();
<?php /** * Plugin: Comments * Author: Carlos A.K. Arguilar * Copyright 2015 by: Carlos A.K. Arguilar * This software is not for free. This source code cannot be sold or even transfered for free without written * permission by the author and copyright owner. * The buyer only hold the right of personal use of this source code without right of include it in any * derivative product destined to 3rd party. */ echo ipSlot('showComments'); ?> <div class="containerForm"> <?php echo '<div class="coFormTitle">' . __('Write a comment', 'Comments') . '</div>'; ?> <div class="commentSuccess input-group hidden"> <div id="cCloseBtn" class="commentCloseBtn"><?php echo __('Close', 'Comments'); ?> </div> <div><?php echo __('Your comment has been sent and it is awaiting moderation. Thank you.', 'Comments'); ?> </div> </div> <?php if (ipGetOption('Comments.requireLogin') == 'Yes') { if (ipUser()->loggedIn()) { echo $form->render();
</div> </div> <div class="row"> <div class="small-12 column mobileMenuButton"><?php echo __('Menu', 'Glara'); ?> </div> <?php if (count(ipContent()->getLanguages()) > 1) { ?> <div class="small-12 column"> <nav class="languages"> <?php echo ipSlot('languages'); ?> </nav> </div> <?php } ?> <div class="small-12 column"> <nav class="main_nav"> <?php $items = \Ip\Menu\Helper::getMenuItems('menu1', 1, 2); echo ipSlot('menu', array('items' => $items, 'view' => ipThemeFile('view/menu.php'))); ?> </nav> </div> </div> </header> <div class="row content">
</div> <footer> <div class="row"> <div class="medium-12 column right-col"> <?php echo ipSlot('text', array('id' => 'copyright', 'tag' => 'div', 'default' => "<p>2014 Copyright. Powered by ImpressPages and iPy Theme</p>", 'class' => 'copyright')); ?> </div> </div> </footer> </div> </div> </div> <?php //for Gallery3 - 1: //ipAddJs('//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'); ipAddJs('assets/js/jquery.min.copy.js'); //ImpressPages ipAddJs('assets/js/foundation.min.js'); ipAddJs('assets/js/wow.min.js'); ipAddJs('assets/js/scroll.js'); ipAddJs('assets/js/slick.js'); ipAddJs('assets/site.js'); //for Gallery3 - 2: ipAddJs('assets/gallery3code/klass.min.js'); ipAddJs('assets/gallery3code/code.photoswipe.jquery-3.0.4.min.js'); ipAddJs('assets/gallery3code/jquery.ba-hashchange.min.js'); ipAddJs('assets/gallery3code/jquery.colorbox-min.js'); ipAddJs('assets/gallery3code/media.template.js'); ipAddJs('assets/gallery3code/g3.rest.2.0.js'); ipAddJs('assets/gallery3code/jquery.config.gallery3.js');
<?php echo ipSlot('Twitter');
</style> </head> <body> <!-- Static navbar --> <div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"> <?php echo ipSlot('logo'); ?> </a> </div> <div class="navbar-collapse collapse "> <?php $menuOption = array('items' => 'menu1', 'attributes' => array('class' => 'nav navbar-nav navbar-right')); echo ipSlot('menu', $menuOption); ?> </div> <!--/.nav-collapse --> </div> </div>