当前位置: 首页>>代码示例>>PHP>>正文


PHP Block::html方法代码示例

本文整理汇总了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');
?>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:footer.php

示例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>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:faq.php

示例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 -->
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:service.php

示例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');
?>
开发者ID:hscale,项目名称:builder-engine,代码行数:30,代码来源:home.php

示例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');
?>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:header.php

示例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>";
    ?>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:blog_entry.php

示例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>
                     ');
?>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:about.php

示例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 -->
                     ');
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:portfolio.php


注:本文中的Block::html方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。