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


PHP Block::set_size方法代码示例

本文整理汇总了PHP中Block::set_size方法的典型用法代码示例。如果您正苦于以下问题:PHP Block::set_size方法的具体用法?PHP Block::set_size怎么用?PHP Block::set_size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Block的用法示例。


在下文中一共展示了Block::set_size方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Block

                                 <div class="serv">
                                    <div class="simg">
                                       <i class="icon-bullhorn"></i>
                                    </div>
                                    <h4>Service #3</h4>
                                    <p>Fusce imperdiet, risus eget viverra faucibus, diam mi vestibulum libero, tellus magna nec enim. Nunc dapibus varius interdum.</p>
                                 </div>
                              </div>
						   ');
?>
						   
						<?php 
$block4 = new Block('business-commodore-1-theme-service-line2-col4');
?>
                        <?php 
$block4->set_size('span6');
?>
                        <?php 
$block4->set_content('
							<div class="serv-a">
                                 <div class="serv">
                                    <div class="simg">
                                       <i class="icon-cloud"></i>
                                    </div>
                                    <h4>Service #4</h4>
                                    <p>Fusce imperdiet, risus eget viverra faucibus, diam mi vestibulum libero, tellus magna nec enim. Nunc dapibus varius interdum.</p>
                                 </div>
                              </div>
						   ');
?>
						
开发者ID:hscale,项目名称:builder-engine,代码行数:30,代码来源:service.php

示例2: Block

      <?php 
$block3->set_content('            
        <h4>Developers</h4>
       <img alt="" class="footer-logo" src="/themes/pro/img/footer-logo.png" />
');
?>


      <?php 
$block4 = new Block('be-theme-pro-footer-col-4');
?>
      <?php 
$block4->set_global(true);
?>
      <?php 
$block4->set_size('span12');
?>
      <?php 
$block4->html('{content}');
?>
      <?php 
$block4->set_content('<hr />                  
        <p class="copy">
        <!-- Copyright Bar -->
        Copyright &copy; <a href="/index.php">Your Site</a> | Powered by <a href="http://www.builderengine.com">BuilderEngine</a> | <a href="/admin">Edit this website</a>
        </p>
      ');
?>


      
开发者ID:hscale,项目名称:builder-engine,代码行数:28,代码来源:footer.php

示例3: Block

                     <div class="hero">
                      {content}
                     </div>
               </div>
            </div>
            ');
?>
            <?php 
$line2->set_content('                 <!-- Title. -->
                        <h3><span>FAQ</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>
');
?>
            <?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 
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:faq.php

示例4: Block

$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">
                                     <address>
                                        <!-- Company name -->
                                        <strong>BuilderEngine</strong><br>
                                        <!-- Address -->
                                        Fairgreen, Eyre Square,<br>
                                        Galway City, Ireland.<br>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:contact.php

示例5: get_footer

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

示例6: Block

       
         <?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 -->

    <div class="navbar">
      <div class="navbar-inner">
        <div class="container">
开发者ID:hscale,项目名称:builder-engine,代码行数:29,代码来源:header.php

示例7: Block

?>
                        <?php 
$block5->set_size('span6');
?>
                        <?php 
$block5->set_content('
                              <h4>Fusce imperdiet ornare</h4>
                              <p>Fusce imperdiet ornare dignissim. Donec aliquet convallis tortor, et placerat quam posuere posuere. Morbi tincidunt posuere turpis eu laoreet.</p>
                              <div class="button"><a href="#">Learn More</a></div>
                              ');
?>
                        <?php 
$block6 = new Block('business-commodore-1-theme-features-line4-col2');
?>
                        <?php 
$block6->set_size('span6');
?>
                        <?php 
$block6->set_content('<img src="' . get_theme_path() . 'img/beland3.jpg" alt="" />');
?>
                        <?php 
$line4->add_block($block5);
?>
                        <?php 
$line4->add_block($block6);
?>

<!-- 5th Line of Blocks -->
         
                        <?php 
$line5 = new Block('business-commodore-1-theme-features-cta');
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:features.php

示例8: Block

                              </div>
                           </div>');
?>
                        <?php 
$block43->set_content('
                              <i class="icon-home"></i>
                              <h4>Option #2</h4>
                              <p>Praesent at tellus porttitor  sagittis. Mauris tempor nulla. Ut tempus interdum mauris vel vehicula. </p>
                           ');
?>

                        <?php 
$block44 = new Block("business-commodore-1-theme-projects-line4-col4");
?>
                        <?php 
$block44->set_size('span3');
?>
                        <?php 
$block44->html('
                           <div class="afeature">
                              <div class="afmatter">
                                 {content}
                              </div>
                           </div>');
?>
                        <?php 
$block44->set_content('
                                  <i class="icon-user"></i>
                                 <h4>Option #4</h4>
                                 <p>Praesent at tellus porttitor  sagittis. Mauris tempor nulla. Ut tempus interdum mauris vel vehicula. </p>
                           ');
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:projects.php

示例9: Block

                                         </div>
                                       </div>
                                       <div class="form-actions">
                                         <button type="submit" class="btn">Submit</button>
                                         <button type="reset" class="btn">Reset</button>
                                       </div>
                                   </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 = "";
?>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:blog_entry.php


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