本文整理汇总了PHP中Block::add_css_class方法的典型用法代码示例。如果您正苦于以下问题:PHP Block::add_css_class方法的具体用法?PHP Block::add_css_class怎么用?PHP Block::add_css_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block::add_css_class方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Block
<footer>
<div class="container">
<?php
$footer = new Block('be-theme-pro-footer');
?>
<?php
$footer->html('{elements}');
?>
<?php
$footer->set_global(true);
?>
<?php
$footer->set_resizable(false);
?>
<?php
$footer->add_css_class("row");
?>
<?php
$block1 = new Block('be-theme-pro-footer-col-1');
?>
<?php
$block1->set_global(true);
?>
<?php
$block1->set_size('span4');
?>
<?php
$block1->html('<div class="widget">{content}</div>');
?>
<?php
示例2: Block
$line2->add_block($block2);
?>
<?php
$line2->add_block($block3);
?>
<?php
$line2->add_block($block4);
?>
<!-- 3rd Line of Blocks -->
<?php
$line3 = new Block('business-commodore-1-theme-service-cta');
?>
<?php
$line3->add_css_class('row');
?>
<?php
$line3->add_css_class('cta');
?>
<?php
$line3->set_resizable(false);
?>
<?php
$line3->set_content('
<div class="span9">
<!-- First line -->
<p class="cbig">BuilderEngine - The HTML5 Website Builder & CMS Platform</p>
<!-- Second line -->
<p class="csmall">Design professional looking websites with our complete GUI controlled Design Builder that will revolutionize theme creation & updating with HTML5 / CSS3.</p>
</div>
示例3: Block
function add_block($parent, $type)
{
$page_path = $_POST['page_path'];
PC::page_paths($page_path);
$this->BuilderEngine->set_page_path($page_path);
//$this->blocks->set_page_path($this->blocks->get_page_path_of($parent));
$max_id = $this->blocks->get_max_block_id();
$new_id = $max_id + 1;
$new_block_name = "custom-block-" . $new_id;
$block = new Block($parent);
$block->load();
$new_block = new Block($new_block_name);
$new_block->set_type($type);
if (isset($_POST['data_class']) && $_POST['data_class'] != "") {
$new_block->add_css_class($_POST['data_class']);
}
if ($block->is_global()) {
$new_block->set_global(true);
}
$block->add_block_first($new_block);
$block->save();
$new_block->set_content("Your new block.");
$new_block->show();
}
示例4: Block
?>
<?php
$block2->add_css_class('resume');
?>
<?php
$holder->add_block($block2);
?>
<!-- 3rd Line of Blocks -->
<?php
$block3 = new Block('business-commodore-1-theme-resume-lower');
?>
<?php
$block3->add_css_class('row');
?>
<?php
$block3->add_css_class('cta');
?>
<?php
$block3->set_resizable(false);
?>
<?php
$block3->set_content('
<div class="span9">
<!-- First line -->
<p class="cbig">BuilderEngine - The HTML5 Website Builder & CMS Platform</p>
<!-- Second line -->
<p class="csmall">Design professional looking websites with our complete GUI controlled Design Builder that will revolutionize theme creation & updating with HTML5 / CSS3.</p>
</div>
示例5: Block
?>
<?php
$line2->add_block($block1);
?>
<?php
$line2->add_block($block2);
?>
<!-- 3rd Line of Blocks -->
<?php
$line3 = new Block("be-theme-pro-line-3");
?>
<?php
$line3->add_css_class('features');
?>
<?php
$line3->html('
<div class="row">
<!-- Features -->
<div class="ifeature">
<div class="ifeat">
{elements}
<div class="clearfix"></div>
</div>
</div>
</div>
');
?>
<?php
示例6: Block
<?php
$block1->set_size('span5');
?>
<?php
$block1->show();
?>
<?php
$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>
示例7: Block
$line2->add_block($block2);
?>
<?php
$line2->add_block($block3);
?>
<?php
$line2->add_block($block4);
?>
<!-- 3rd Line of Blocks -->
<?php
$line3 = new Block('business-commodore-1-theme-about-line3');
?>
<?php
$line3->add_css_class('cta');
?>
<?php
$line3->set_resizable(false);
?>
<?php
$line3->set_content('
<div class="span9">
<!-- First line -->
<p class="cbig">BuilderEngine - The HTML5 Website Builder & CMS Platform</p>
<!-- Second line -->
<p class="csmall">Design professional looking websites with our complete GUI controlled Design Builder that will revolutionize theme creation & updating with HTML5 / CSS3.</p>
</div>
<div class="span2">
<!-- Button -->
<div class="button"><a href="http://www.builderengine.com">Free Account</a></div>
示例8: Block
<div class="full-width">
<div class="row">
<div class="span12">
<!-- Full width -->
<?php
$holder = new Block("business-commodore-1-theme-blank-holder-" . $page->id);
?>
<?php
$holder->set_resizable(false);
?>
<?php
$holder->html('{elements}');
?>
<?php
$holder->add_css_class('row');
?>
<?php
$block = new Block("business-commodore-1-theme-blank-block-" . $page->id);
?>
<?php
$block->set_size('span12');
?>
<?php
$block->set_content('
<h1>Blank Page</h1>
<p>Edit this block or add an new block.</p>
');
?>