本文整理汇总了PHP中Block::html方法的典型用法代码示例。如果您正苦于以下问题:PHP Block::html方法的具体用法?PHP Block::html怎么用?PHP Block::html使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block::html方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Block
<!-- Inner Container end -->
</div></div>
<!-- Footer -->
<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');
?>
示例2: Block
?>
<!-- Content starts -->
<div class="content">
<div class="container">
<div class="row">
<div class="span12">
<?php
$holder = new Block('business-commodore-1-theme-page-faq-holder');
?>
<?php
$holder->set_resizable(false);
?>
<?php
$holder->html("{elements}");
?>
<!-- 1st Line of Blocks -->
<?php
$line2 = new Block('business-commodore-1-theme-page-faq-top');
?>
<?php
$line2->html('
<div class="faq">
<div class="row">
<div class="hero">
{content}
</div>
</div>
示例3: Block
<div class="container">
<div class="row">
<div class="span12">
<!-- Service starts -->
<div class="row">
<div class="span12">
<?php
$holder = new Block('business-commodore-1-theme-service-holder');
?>
<?php
$holder->set_resizable(false);
?>
<?php
$holder->html('{elements}');
?>
<!-- 1st Line of Blocks -->
<?php
$line1 = new Block('business-commodore-1-theme-service-line1');
?>
<?php
$line1->set_resizable(false);
?>
<?php
$line1->set_content('
<div class="row">
<div class="hero span12">
<!-- Title -->
<h3><span>Service</span></h3>
<!-- para -->
示例4: Block
<!-- 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
$line3->set_resizable(false);
?>
<?php
$block1 = new Block('be-theme-pro-home-line-3-col-1');
?>
<?php
$block1->set_size('span6');
?>
示例5: Block
</head>
<body>
<!-- Header starts -->
<header>
<div class="container">
<div class="row">
<?php
$block1 = new Block('be-theme-pro-header-sitename');
?>
<?php
$block1->set_global(true);
?>
<?php
$block1->html('<div class="logo">{content}</div>');
?>
<?php
$block1->set_content('<h1><a href="/">Default Theme</a></h1>');
?>
<?php
$block1->set_size('span5');
?>
<?php
$block1->show();
?>
<?php
$block2 = new Block('be-theme-pro-header-social');
?>
示例6: Block
</form>
</div>
</div>
</div>
<?php
$right = new Block('be-module-blog-entry-right');
?>
<?php
$right->set_size('span4');
?>
<?php
$right->html('
<div class="sidebar" style="float: left">
<div class="row">
{elements}
</div>
</div>
');
?>
<?php
$recent_posts = "";
?>
<?php
foreach ($recent as $entry) {
?>
<?php
$recent_posts .= "<li><a href='" . base_url('/blog/' . $entry->id) . "'>{$entry->title}</a></li>";
?>
示例7: Block
<div class="row">
<div class="span12">
<!-- About starts -->
<div class="about">
<div class="row">
<div class="span12">
<?php
$holder = new Block("business-commodore-1-theme-about-holder");
?>
<?php
$holder->set_resizable(false);
?>
<?php
$holder->html('<div class="row">{elements}</div>');
?>
<!-- 1st Line of Blocks -->
<?php
$line1 = new Block("business-commodore-1-theme-about-line1");
?>
<?php
$line1->set_content('
<!-- About hero -->
<div class="about-hero">
<p>BuilderEngine CMS is an amazing new HTML5 platform for building Websites.</p>
</div>
');
?>
示例8: Block
<?php
$holder = new Block("business-commodore-1-theme-portfolio-holder");
?>
<?php
$holder->html("{elements");
?>
<?php
$holder->set_resizable(false);
?>
<?php
$line1 = new Block("business-commodore-1-theme-portfolio-line1");
?>
<?php
$line1->html("{content}");
?>
<?php
$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 -->
');