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


PHP Block::add_css_class方法代码示例

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


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

示例1: Block

<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');
?>
      <?php 
$block1->html('<div class="widget">{content}</div>');
?>
      <?php 
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:footer.php

示例2: Block

$line2->add_block($block2);
?>
						<?php 
$line2->add_block($block3);
?>
						<?php 
$line2->add_block($block4);
?>
					 
<!-- 3rd Line of Blocks -->					 

                     <?php 
$line3 = new Block('business-commodore-1-theme-service-cta');
?>
                        <?php 
$line3->add_css_class('row');
?>
                        <?php 
$line3->add_css_class('cta');
?>
                        <?php 
$line3->set_resizable(false);
?>
                        <?php 
$line3->set_content('
                           <div class="span9">
                              <!-- First line -->
                              <p class="cbig">BuilderEngine - The HTML5 Website Builder & CMS Platform</p>
                              <!-- Second line -->
                              <p class="csmall">Design professional looking websites with our complete GUI controlled Design Builder that will revolutionize theme creation & updating with HTML5 / CSS3.</p>
                           </div>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:service.php

示例3: Block

 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();
 }
开发者ID:hyrmedia,项目名称:builderengine,代码行数:24,代码来源:ajax.php

示例4: Block

?>
            <?php 
$block2->add_css_class('resume');
?>
            
            <?php 
$holder->add_block($block2);
?>

<!-- 3rd Line of Blocks -->
            
            <?php 
$block3 = new Block('business-commodore-1-theme-resume-lower');
?>
            <?php 
$block3->add_css_class('row');
?>
            <?php 
$block3->add_css_class('cta');
?>
            <?php 
$block3->set_resizable(false);
?>
            <?php 
$block3->set_content('
               <div class="span9">
                  <!-- First line -->
                  <p class="cbig">BuilderEngine - The HTML5 Website Builder & CMS Platform</p>
                  <!-- Second line -->
                  <p class="csmall">Design professional looking websites with our complete GUI controlled Design Builder that will revolutionize theme creation & updating with HTML5 / CSS3.</p>
               </div>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:resume.php

示例5: Block

?>

            <?php 
$line2->add_block($block1);
?>
            <?php 
$line2->add_block($block2);
?>
			
<!-- 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 
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:home.php

示例6: Block

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

示例7: Block

$line2->add_block($block2);
?>
                           <?php 
$line2->add_block($block3);
?>
                           <?php 
$line2->add_block($block4);
?>
                           
<!-- 3rd Line of Blocks -->						   
						   
                           <?php 
$line3 = new Block('business-commodore-1-theme-about-line3');
?>
                           <?php 
$line3->add_css_class('cta');
?>
                           <?php 
$line3->set_resizable(false);
?>
                           <?php 
$line3->set_content('
                             <div class="span9">
                                <!-- First line -->
                                <p class="cbig">BuilderEngine - The HTML5 Website Builder & CMS Platform</p>
                                <!-- Second line -->
                                <p class="csmall">Design professional looking websites with our complete GUI controlled Design Builder that will revolutionize theme creation & updating with HTML5 / CSS3.</p>
                             </div>
                             <div class="span2">
                                <!-- Button -->
                                <div class="button"><a href="http://www.builderengine.com">Free Account</a></div>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:about.php

示例8: Block

            <div class="full-width">
               <div class="row">
                  <div class="span12">
                  
                     <!-- Full width -->
                     <?php 
$holder = new Block("business-commodore-1-theme-blank-holder-" . $page->id);
?>
                     <?php 
$holder->set_resizable(false);
?>
                     <?php 
$holder->html('{elements}');
?>
                     <?php 
$holder->add_css_class('row');
?>


                     <?php 
$block = new Block("business-commodore-1-theme-blank-block-" . $page->id);
?>
                     <?php 
$block->set_size('span12');
?>
                     <?php 
$block->set_content('
                        <h1>Blank Page</h1>
                        <p>Edit this block or add an new block.</p>
                        ');
?>
开发者ID:hscale,项目名称:builder-engine,代码行数:31,代码来源:blank.php


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