?> <?php $block2 = new Block('be-theme-pro-footer-col-2'); ?> <?php $block2->set_global(true); ?> <?php $block2->set_size('span4'); ?> <?php $block2->html('{content}'); ?> <?php $block2->set_type('links'); ?> <?php $block3 = new Block('be-theme-pro-footer-col-3'); ?> <?php $block3->set_global(true); ?> <?php $block3->set_size('span4'); ?> <?php $block3->html('<div class="widget">{content}</div>'); ?> <?php
<p>Duis a risus sed dolor placerat semper quis in urna. Nam risus magna, fringilla sit amet blandit viverra, dignissim eget est. Ut commodo ullamcorper risus nec mattis. Donec aliquet convallis tortor, et placerat quam posuere posuere. Morbi tincidunt posuere turpis eu laoreet. Nulla facilisi. Aenean at massa leo. Vestibulum in varius arcu.</p> <hr /> <!-- Resume --> '); ?> <?php $holder->add_block($block1); ?> <!-- 2nd Line of Blocks --> <?php $block2 = new Block('business-commodore-1-theme-resume-content'); ?> <?php $block2->set_type('resume'); ?> <?php $block2->set_resizable(false); ?> <?php $block2->add_css_class('resume'); ?> <?php $holder->add_block($block2); ?> <!-- 3rd Line of Blocks --> <?php
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(); }
?> <?php $line3->add_css_class('row'); ?> <?php $block31 = new Block('business-commodore-1-theme-contact-line3-col1'); ?> <?php $block31->set_size('span6'); ?> <?php $block31->html('<div class="cwell">{content}</div>'); ?> <?php $block31->set_type('contact_form'); ?> <?php $block32 = new Block('business-commodore-1-theme-contact-line3-col2'); ?> <?php $block32->set_size('span6'); ?> <?php $block32->html('<div class="cwell">{content}</div>'); ?> <?php $block32->set_content(' <h5>Address</h5> <hr /> <div class="address">
<!-- 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> '); ?> <?php $line2->set_size('span12'); ?> <!-- 2nd Line of Blocks --> <!-- FAQ --> <?php $line3 = new Block('business-commodore-1-theme-page-faq-content'); ?> <?php $line3->set_type('faq'); ?> <!-- 3rd Line of Blocks --> <?php $line4 = new Block('business-commodore-1-theme-faq-lower'); ?> <?php $line4->add_css_class('row'); ?> <?php $line4->add_css_class('cta'); ?> <?php $line4->set_resizable(false);
<?php $block2->set_content(' <img src="' . get_theme_path() . 'img/beland1.jpg" alt="" /> '); ?> <?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 $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> <!-- Navigation Starts -->
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); $block->add_block($new_block); $block->save(); $new_block->set_content("Your new block."); $new_block->show(); }