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


PHP Block::set_global方法代码示例

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


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

    function _integrate_builderengine_styles()
    {
        ?>
            <script src="<?php 
        echo home_url("/builderengine/public/js/jquery.js");
        ?>
"></script>
            <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet" />
            <link href="http://vitalets.github.io/angular-xeditable/dist/css/xeditable.css" rel="stylesheet" />
            <link rel='stylesheet' id='font-awesome-4-css'  href="<?php 
        echo base_url('/builderengine/public/css/font-awesome.css?ver=4.0.3');
        ?>
" type='text/css' media='all' />

            <?php 
        if (is_installed()) {
            ?>
            <?php 
            $block = new Block('be_body_styler_' . $this->BuilderEngine->get_option('active_frontend_theme'));
            $block->set_global(true);
            if (!$block->load()) {
                $block->save();
            }
            ?>
            
            <style>
            body
            {
                <?php 
            echo $block->build_style(true);
            ?>
            }
            <?php 
        }
        ?>
            #virtual-block-holder{
                position: absolute;
                z-index:999;
            }
            .area {
                position: relative;
                display: inline-block;
                min-width: 50px;
                min-height: 25px;
            }

                #admin-window {
                    z-index: 999999 !important;
                }
                .block-children {
                    /*min-height: 20px;*/
                    position:relative;
                    /*display: inline-block;*/
                    /*float: left;*/
                }
                .block {
                    position: relative;
                    /*float: left;*/
                    /*display: inline-block;*/
                }
                .placeholder {
                    border: 1px dotted #888;
                    
                    -webkit-box-shadow: 0px 0px 10px #888;
                    -moz-box-shadow: 0px 0px 10px #888;
                    box-shadow: 0px 0px 10px #888;
                }
                .ui-sortable-placeholder {
                    border: 2px dotted #333;
                    -webkit-box-shadow: 0px 0px 10px #888;
                    -moz-box-shadow: 0px 0px 10px #888;
                    box-shadow: 0px 0px 10px #888;
                    visibility: visible !important;
                }
            </style>

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

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


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