本文整理汇总了PHP中Block::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Block::show方法的具体用法?PHP Block::show怎么用?PHP Block::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block::show方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Block
function get_block($block_name)
{
$page_path = $_POST['page_path'];
PC::page_paths($page_path);
$this->BuilderEngine->set_page_path($page_path);
$this->versions->load_page_blocks();
$block = new Block($block_name);
$block->show();
}
示例2: get_theme_path
<?php
$footer->add_block($block1);
?>
<?php
$footer->add_block($block2);
?>
<?php
$footer->add_block($block3);
?>
<?php
$footer->add_block($block4);
?>
<?php
$footer->show();
?>
</div>
</footer>
</div>
</div>
<!-- JS -->
<script src="<?php
echo get_theme_path();
?>
js/bootstrap.js"></script>
<script src="<?php
echo get_theme_path();
?>
示例3: get_footer
<div class="button"><a href="http://www.builderengine.com">Free Account</a></div>
</div>
');
?>
<?php
$holder->add_block($line1);
?>
<?php
$holder->add_block($line2);
?>
<?php
$holder->add_block($line3);
?>
<?php
$holder->show();
?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Content ends -->
<?php
echo get_footer();
示例4: Block
<?php
/***********************************************************
* BuilderEngine v3.1.0
* ---------------------------------
* BuilderEngine CMS Platform - Radian Enterprise Systems Limited
* Copyright Radian Enterprise Systems Limited 2012-2015. All Rights Reserved.
*
* http://www.builderengine.com
* Email: info@builderengine.com
* Time: 2015-08-31 | File version: 3.1.0
*
***********************************************************/
$block = new Block("module-builderengine-page-" . $page->id);
$block->set_default("Put your page content here.");
$block->show();
?>
示例5: get_footer
');
?>
<?php
$line3->add_block($block2);
?>
<!-- 4th Line of Blocks -->
<?php
$line4 = new Block("rpost-test");
?>
<?php
$line4->set_type('pro_rpost');
?>
<?php
$line4->set_size('span12');
$content_holder->add_block($line1);
$content_holder->add_block($line2);
$content_holder->add_block($line3);
$content_holder->add_block($line4);
$content_holder->show();
?>
</div>
</div>
</div>
</div>
<!-- Content ends -->
<?php
echo get_footer();
示例6: Block
$block2 = new Block('be-theme-pro-header-social');
?>
<?php
$block2->set_global(true);
?>
<?php
$block2->add_css_class('offset3');
?>
<?php
$block2->set_type('social_links');
?>
<?php
$block2->set_size('span4');
?>
<?php
$block2->show();
?>
</div>
</div>
</header>
<!-- Navigation Starts -->
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
Menu
</a>
示例7: javascript
<?php
/**
* @author Matthew McNaney <mcnaney at gmail dot com>
* @version $Id$
*/
Block::show();
if (Current_User::allow('block')) {
$key = Key::getCurrent();
if (Key::checkKey($key) && javascriptEnabled()) {
javascript('jquery');
javascript('ckeditor');
$js_address = PHPWS_SOURCE_HTTP . 'mod/block/javascript/addblock/script.js';
Layout::addJSHeader('<script src="' . $js_address . '" type="text/javascript"></script>', 'addblock');
$modal = new \Modal('block-form-modal', '<div id="block-form-dialog"></div>', 'Add block here');
$modal->sizeLarge();
$save_button = '<button class="btn btn-success" id="save-block">Save</button>';
$modal->addButton($save_button);
Layout::add((string) $modal);
MiniAdmin::add('block', '<a style="cursor:pointer" data-auth-key="' . Current_User::getAuthKey() . '" data-key-id="' . $key->id . '" id="add-block"><i class="fa fa-plus"></i> Add block here</a>');
}
}
示例8: Block
?>
<?php
$block2 = new Block('be-module-blog-entry-right-about');
?>
<?php
$block2->set_size('span4');
?>
<?php
$block2->set_default("\n <div class=\"widget\">\n <h4>About</h4>\n <p>Nulla facilisi. Sed justo dui, id erat. Morbi auctor adipiscing tempor. Phasellus condimentum rutrum aliquet. Quisque eu consectetur erat. Proin rutrum, erat eget posuere semper, <em>arcu mauris posuere tortor</em>,velit at <a href=\"#\">magna sollicitudin cursus</a> ac ultrices magna. Aliquam consequat, purus vitae auctor ullamcorper, sem velit convallis quam, a pharetra justo nunc et mauris. </p>\n </div>");
?>
<?php
$right->add_block($block1);
?>
<?php
$right->add_block($block2);
?>
<?php
$right->show();
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
示例9:
$line1->set_resizable(false);
?>
<?php
$line1->set_content('
<!-- Portfolio hero -->
<div class="hero">
<!-- Title -->
<h3><span>Portfolio</span></h3>
<!-- para -->
<p>Praesent at tellus porttitor nisl porttitor sagittis. Mauris in massa ligula, a tempor nulla. Ut tempus interdum mauris vel vehicula. Nulla ullamcorper tortor commodo in sagittis est accumsan.</p>
</div>
<!-- Portfolio -->
');
?>
<?php
$line1->show();
?>
<p>
<!-- Add filter names inside "data-filter". For example ".web-design", ".seo", etc., Filter names are used to filter the below images. -->
<div class="button">
<ul id="filters">
<li><a href="#" data-filter="*" >All</a></li>
<li><a href="#" data-filter=".one" >One</a></li>
<li><a href="#" data-filter=".two" >Two</a></li>
<li><a href="#" data-filter=".three" >Three</a></li>
<li><a href="#" data-filter=".four" >Four</a></li>
<li><a href="#" data-filter=".five" >Five</a></li>
</ul>
</div>
</p>