當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。