本文整理汇总了PHP中SPBMap::layout方法的典型用法代码示例。如果您正苦于以下问题:PHP SPBMap::layout方法的具体用法?PHP SPBMap::layout怎么用?PHP SPBMap::layout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SPBMap
的用法示例。
在下文中一共展示了SPBMap::layout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/*
*
* Swift Page Builder - Default Config Map
* ------------------------------------------------
* Swift Framework
* Copyright Swift Ideas 2013 - http://www.swiftideas.net
*
*/
/* LAYOUT CONFIG
================================================== */
SPBMap::layout(array('id' => 'row', 'title' => 'Row'));
SPBMap::layout(array('id' => 'column_12', 'title' => '1/2'));
SPBMap::layout(array('id' => 'column_12-12', 'title' => '1/2 + 1/2'));
SPBMap::layout(array('id' => 'column_13', 'title' => '1/3'));
SPBMap::layout(array('id' => 'column_13-13-13', 'title' => '1/3 + 1/3 + 1/3'));
SPBMap::layout(array('id' => 'column_13-23', 'title' => '1/3 + 2/3'));
SPBMap::layout(array('id' => 'column_23-13', 'title' => '2/3 + 1/3'));
SPBMap::layout(array('id' => 'column_14', 'title' => '1/4'));
SPBMap::layout(array('id' => 'column_12-14-14', 'title' => '1/2 + 1/4 + 1/4'));
SPBMap::layout(array('id' => 'column_14-12-14', 'title' => '1/4 + 1/2 + 1/4'));
SPBMap::layout(array('id' => 'column_14-14-12', 'title' => '1/4 + 1/4 + 1/2'));
SPBMap::layout(array('id' => 'column_14-14-14-14', 'title' => '1/4 + 1/4 + 1/4 + 1/4'));
SPBMap::layout(array('id' => 'column_11', 'title' => '1/1'));
示例2:
<?php
/* LAYOUT CONFIG
================================================== */
SPBMap::layout(array('id' => 'row', 'title' => 'Row'));
SPBMap::layout(array('id' => 'column_12', 'title' => '1/2 Column'));
SPBMap::layout(array('id' => 'column_12-12', 'title' => '1/2 + 1/2 Columns'));
SPBMap::layout(array('id' => 'column_13', 'title' => '1/3 Column'));
SPBMap::layout(array('id' => 'column_13-13-13', 'title' => '1/3 + 1/3 + 1/3 Columns'));
SPBMap::layout(array('id' => 'column_13-23', 'title' => '1/3 + 2/3 Columns'));
SPBMap::layout(array('id' => 'column_23-13', 'title' => '2/3 + 1/3 Columns'));
SPBMap::layout(array('id' => 'column_14', 'title' => '1/4 Column'));
SPBMap::layout(array('id' => 'column_12-14-14', 'title' => '1/2 + 1/4 + 1/4 Columns'));
SPBMap::layout(array('id' => 'column_14-12-14', 'title' => '1/4 + 1/2 + 1/4 Columns'));
SPBMap::layout(array('id' => 'column_14-14-12', 'title' => '1/4 + 1/4 + 1/2 Columns'));
SPBMap::layout(array('id' => 'column_14-14-14-14', 'title' => '1/4 + 1/4 + 1/4 + 1/4 Column'));
SPBMap::layout(array('id' => 'column_11', 'title' => '1/1 Column'));
SPBMap::layout(array('id' => 'column_16', 'title' => '1/6 Column'));