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