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


PHP ff_load_section_options函数代码示例

本文整理汇总了PHP中ff_load_section_options函数的典型用法代码示例。如果您正苦于以下问题:PHP ff_load_section_options函数的具体用法?PHP ff_load_section_options怎么用?PHP ff_load_section_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: getOptions

 public function getOptions()
 {
     $s = $this->_getOnestructurefactory()->createOneStructure('aaa');
     $s->startSection('general');
     $s->addElement(ffOneElement::TYPE_TABLE_START);
     ff_load_section_options('section-settings-block', $s);
     ff_load_section_options('section-background-block', $s);
     $s->startSection('page-title');
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Heading Title');
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'show-title', 'Show Title ', 1);
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'is-custom-title', 'Use custom   ', 0);
     $s->addOption(ffOneOption::TYPE_TEXT, 'title', '', 'Custom Page Title');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Subheading');
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'show-description', 'Show Description', 1);
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_SELECT, 'description-style', 'Description style', 'lead')->addSelectValue('Smaller', '')->addSelectValue('Bigger', 'lead');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_TEXTAREA, 'description', '', 'This is a sub-title placeholder, you can put your page description here.');
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->endSection();
     $s->startSection('breadcrumbs');
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Breadcrumbs');
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'show', 'Show', 1);
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_TEXT, 'before', 'Text before', 'You are here: ');
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->endSection();
     $s->addElement(ffOneElement::TYPE_TABLE_END);
     $s->endSection();
     return $s;
 }
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:35,代码来源:class.ffComponent_Theme_MetaboxPortfolio_TitleView.php

示例2: getOptions

 public function getOptions()
 {
     $s = $this->_getOnestructurefactory()->createOneStructure('aaa');
     $s->startSection('general');
     $s->addElement(ffOneElement::TYPE_TABLE_START);
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Front Image');
     $s->startSection('image');
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'fullwidth', 'Front image is fulwidth (overlays sidebar)', 0);
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->endSection();
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Sidebar');
     $s->startSection('sidebar');
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'show', 'Show sidebar', 1);
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->startSection('items', ffOneSection::TYPE_REPEATABLE_VARIABLE);
     $s->startSection('about', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'About');
     $s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'About Project');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $text = '<p>Culpa eu et pariatur tempor est aliquip qui anim enim culpa magna laboris sint aliqua ad excepteur mollit.</p>';
     $s->addOption(ffOneOption::TYPE_TEXTAREA, 'text', 'Text', $text);
     $s->endSection();
     $s->startSection('tools', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Tools');
     $s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'Tools Used');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->startSection('skills', ffOneSection::TYPE_REPEATABLE_VARIABLE);
     $s->startSection('one-skill', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'One Skill');
     $s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'Photoshop');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_TEXT, 'percentage', 'Percentage', '75');
     $s->endSection();
     $s->endSection();
     $s->endSection();
     $s->startSection('details', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Project Details');
     $s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'Project Details');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->startSection('details', ffOneSection::TYPE_REPEATABLE_VARIABLE);
     $s->startSection('one-detail', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'One Detail');
     $s->addOption(ffOneOption::TYPE_ICON, 'icon', 'Icon', '');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_TEXT, 'type', 'Type', 'Client');
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->addOption(ffOneOption::TYPE_TEXT, 'value', 'Value', 'Google, Inc');
     $s->endSection();
     $s->endSection();
     ff_load_section_options('buttons-block', $s);
     $s->endSection();
     $s->endSection();
     $s->endSection();
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Related Projects');
     $s->startSection('related-projects');
     $s->addOption(ffOneOption::TYPE_CHECKBOX, 'show', 'Show Related Projects', 1);
     $s->addElement(ffOneElement::TYPE_NEW_LINE);
     $s->endSection();
     $s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
     $s->addElement(ffOneElement::TYPE_TABLE_END);
     $s->endSection();
     return $s;
 }
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:60,代码来源:class.ffComponent_Theme_MetaboxPortfolio_SingleView.php

示例3: ff_get_section_preview_image_url

<?php

/**********************************************************************************************************************/
/* Twitter sections
/**********************************************************************************************************************/
$s->startSection('twitter', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Twitter')->addParam('hide-default', true)->addParam('advanced-picker-menu-title', 'Common')->addParam('advanced-picker-menu-id', 'common')->addParam('advanced-picker-section-image', ff_get_section_preview_image_url('twitter'));
$s->addElement(ffOneElement::TYPE_TABLE_START);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Preview');
$s->addElement(ffOneElement::TYPE_HTML, '', '<img src="' . ff_get_section_preview_image_url('twitter') . '" width="250">');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
//
ff_load_section_options('section-settings-block', $s);
//
//		ff_load_section_options( '/templates/onePage/blocks/section-background-block.php', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Twitter');
$s->startSection('fw_twitter');
$s->addOption(ffOneOption::TYPE_TEXT, 'username', 'Username', '_freshface');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'number-of-tweets', 'Number of Tweets', '5');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'caching-time-in-minutes', 'Caching time in minutes', '60');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
// $this->_auth['consumerKey'], $this->_auth['consumerSecret'], $this->_auth['accessToken'], $this->_auth['accessTokenSecret']
$s->addOption(ffOneOption::TYPE_TEXT, 'consumer-key', 'Consumer Key');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'consumer-secret', 'Consumer Secret');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'access-token', 'Access Token');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'access-token-secret', 'Access Token Secret');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:31,代码来源:twitter-section.php

示例4: Message

$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'validation-message-minlength', 'Validation Message (minlength)', 'At least {0} characters required');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'message-send-ok', 'Message has been sent', 'Your message was successfully sent!');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'message-send-wrong', 'Message has NOT been sent', 'There was an error sending the message!');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Description');
$s->startSection('description');
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'show', 'Show', 1);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->startSection('description-boxes', ffOneSection::TYPE_REPEATABLE_VARIABLE);
$s->startSection('one-box', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'One Box');
ff_load_section_options('bootstrap-columns-block', $s, array('sm' => 4));
$s->startSection('lines', ffOneSection::TYPE_REPEATABLE_VARIABLE);
$s->startSection('one-heading', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'One Heading');
$s->addOption(ffOneOption::TYPE_TEXT, 'text', 'Text', 'Address');
$s->endSection();
$s->startSection('one-line', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'One Text Line');
$s->addOption(ffOneOption::TYPE_TEXT, 'text', 'Text', '1713 Hide A Way Road');
$s->endSection();
$s->startSection('one-email', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'One Email');
$s->addOption(ffOneOption::TYPE_TEXT, 'text', 'Text', 'your@email.com');
$s->endSection();
$s->endSection();
$s->endSection();
$s->endSection();
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:31,代码来源:contact-form-2-section.php

示例5: top

/**********************************************************************************************************************/
$s->startSection('boxed');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Boxed Wrapper');
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'apply', 'Apply settings below', 0);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'width-type', 'Width Value', 'from-input')->addSelectValue('Fullwidth', 'fullwidth')->addSelectValue('Set Below', 'from-input');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'maxwidth', 'Max-width in px', '1170');
$s->addElement(ffOneElement::TYPE_HTML, '', ' <span class="description">Max width of the boxed div, default is 1170</span>');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'padding-top', 'Padding top (px)', 'default')->addSelectValue('Default', 'default')->addSelectValue('0', '0')->addSelectNumberRange(5, 250, 5);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'padding-bottom', 'Padding bottom (px)', 'default')->addSelectValue('Default', 'default')->addSelectValue('0', '0')->addSelectNumberRange(5, 250, 5);
$s->addElement(ffOneElement::TYPE_HEADING, '', 'Background');
$s->startSection('background');
ff_load_section_options('section-background-block', $s);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->endSection();
$s->startSection('container');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Container Wrapper');
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'apply', 'Apply settings below', 0);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'type', 'Type', 'not')->addSelectValue('Container', 'not')->addSelectValue('Container Fluid', 'fluid')->addSelectValue('Container Fullwidth', 'fullwidth');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'is-fulscreen', 'Is Fullscreen section', 0);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_END);
$s->addElement(ffOneElement::TYPE_TOGGLE_BOX_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:31,代码来源:section-settings-block.php

示例6: ff_get_section_preview_image_url

<?php

/** @var $s ffOneStructure */
################################################################################
# PRICING MODELS START
################################################################################
$s->startSection('heading', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Heading')->addParam('hide-default', false)->addParam('advanced-picker-menu-title', 'Common')->addParam('advanced-picker-menu-id', 'common')->addParam('advanced-picker-section-image', ff_get_section_preview_image_url('heading'));
$s->addElement(ffOneElement::TYPE_TABLE_START);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Preview');
$s->addElement(ffOneElement::TYPE_HTML, '', '<img src="' . ff_get_section_preview_image_url('heading') . '" width="250">');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
ff_load_section_options('section-settings-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'General');
$s->startSection('heading');
ff_load_section_options('heading-wrapped-block', $s);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_END);
$s->endSection();
################################################################################
# PRICING MODELS END
################################################################################
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:22,代码来源:heading-section.php

示例7: ff_get_section_preview_image_url

/** @var ffOneStructure $s  */
$s->startSection('blog-archive-masonry', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Blog Archive Masonry')->addParam('hide-default', true)->addParam('advanced-picker-menu-title', 'Blog')->addParam('advanced-picker-menu-id', 'blog')->addParam('advanced-picker-section-image', ff_get_section_preview_image_url('blog-archive-masonry'));
$s->addElement(ffOneElement::TYPE_TABLE_START);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Preview');
$s->addElement(ffOneElement::TYPE_HTML, '', '<img src="' . ff_get_section_preview_image_url('blog-archive-masonry') . '" width="250">');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
ff_load_section_options('section-settings-block', $s);
//
//		ff_load_section_options( '/templates/onePage/blocks/section-settings-block.php', $s);
//
//		ff_load_section_options( '/templates/onePage/blocks/section-background-block.php', $s);
ff_load_section_options('blog-meta-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'General');
$s->addOption(ffOneOption::TYPE_SELECT, 'number-of-columns', 'Number of columns', 3)->addSelectNumberRange(1, 5);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'number-of-posts', 'Number of posts', '0');
$s->addElement(ffOneElement::TYPE_DESCRIPTION, '', 'Set how many posts should be rendered. This does not influence WP loop (use our Fresh Custom Loops plugin for that)');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'readmore-show', 'Show Read More', 1);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'readmore-trans', 'Read More', 'Read More');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Categories');
ff_load_section_options('loop-influence-post-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Pagination');
ff_load_section_options('pagination-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_END);
$s->endSection();
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:31,代码来源:blog-archive-masonry-section.php

示例8: ff_load_section_options

$s->startSection('box-left');
ff_load_section_options('animation-block', $s);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_ICON, 'icon', 'Icon', '');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'Developement');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'url', 'Url', '#');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXTAREA, 'description', 'Description', 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Box with icons on the right side');
$s->startSection('box-right');
ff_load_section_options('animation-block', $s);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_ICON, 'icon', 'Icon', '');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'Developement');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'url', 'Url', '#');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXTAREA, 'description', 'Description', 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_END);
$s->endSection();
################################################################################
# BOXES WITH ICONS END
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:31,代码来源:boxes-with-icons-section.php

示例9: ff_get_section_preview_image_url

<?php

/** @var $s ffOneStructure */
################################################################################
# PRICING MODELS START
################################################################################
$s->startSection('project-box', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Project box')->addParam('hide-default', true)->addParam('advanced-picker-menu-title', 'Common')->addParam('advanced-picker-menu-id', 'common')->addParam('advanced-picker-section-image', ff_get_section_preview_image_url('project-box'));
$s->addElement(ffOneElement::TYPE_TABLE_START);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Preview');
$s->addElement(ffOneElement::TYPE_HTML, '', '<img src="' . ff_get_section_preview_image_url('project-box') . '" width="250">');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
ff_load_section_options('section-settings-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'General');
$s->addOption(ffOneOption::TYPE_IMAGE, 'image', 'Main section image');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Content');
$s->startSection('content');
ff_load_section_options('heading-content-block', $s);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_END);
$s->endSection();
################################################################################
# PRICING MODELS END
################################################################################
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:25,代码来源:project-box-section.php

示例10: ff_load_section_options

<?php

$s->addElement(ffOneElement::TYPE_TABLE_START);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Icon');
$s->addOption(ffOneOption::TYPE_ICON, 'icon', '', '');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
ff_load_section_options('color-attr', $s, array('name' => 'icon-background', 'title' => 'Background', 'default' => 'blue'));
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'icon-size', 'Size', '')->addSelectValue('Small', 'small')->addSelectValue('Default', '')->addSelectValue('Medium', 'medium')->addSelectValue('Large', 'large');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'shape', 'Shape', 'circle')->addSelectValue('No Shape, just icon', '')->addSelectValue('Circle', 'circle')->addSelectValue('Square', 'square');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Text');
$s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'Global Company')->addParam('class', 'edit-repeatable-item-title');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_SELECT, 'title-size', 'Title Size', '4')->addSelectValue('Small h5', '5')->addSelectValue('Default h4', '4')->addSelectValue('Medium h3', '3')->addSelectValue('Large h2', '2');
$s->addOption(ffOneOption::TYPE_TEXTAREA, 'description', 'Description', 'Lorem ipsum Eu tempor anim Excepteur consectetur cillum tempor id exercitation nostrud do consequat sunt in consectetur commodo in exercitation.');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Button');
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'show-button', 'Show button', 1);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
ff_load_section_options('button-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_END);
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:23,代码来源:text-with-icon-block.php

示例11: ff_get_section_preview_image_url

/**********************************************************************************************************************/
/** @var ffOneStructure $s  */
$s->startSection('blog-single', ffOneSection::TYPE_REPEATABLE_VARIATION)->addParam('section-name', 'Blog Single')->addParam('hide-default', true)->addParam('advanced-picker-menu-title', 'Blog')->addParam('advanced-picker-menu-id', 'blog')->addParam('advanced-picker-section-image', ff_get_section_preview_image_url('blog-single'));
$s->addElement(ffOneElement::TYPE_TABLE_START);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Preview');
$s->addElement(ffOneElement::TYPE_HTML, '', '<img src="' . ff_get_section_preview_image_url('blog-single') . '" width="250">');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
//
//		ff_load_section_options( '/templates/onePage/blocks/section-settings-block.php', $s);
//
//		ff_load_section_options( '/templates/onePage/blocks/section-background-block.php', $s);
ff_load_section_options('blog-meta-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Author Box');
$s->startSection('author-box');
$s->addOption(ffOneOption::TYPE_CHECKBOX, 'show', 'Show author box', 1);
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->addOption(ffOneOption::TYPE_TEXT, 'title', 'Title', 'About the Author');
$s->addElement(ffOneElement::TYPE_NEW_LINE);
$s->endSection();
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Sidebar');
$s->addOption(ffOneOption::TYPE_SELECT, 'sidebar', 'Sidebar', 'right')->addSelectValue('None', 'none')->addSelectValue('Left', 'left')->addSelectValue('Right', 'right');
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Comments List');
ff_load_section_options('comments-list-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_START, '', 'Comments Form');
ff_load_section_options('comments-form-block', $s);
$s->addElement(ffOneElement::TYPE_TABLE_DATA_END);
$s->addElement(ffOneElement::TYPE_TABLE_END);
$s->endSection();
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:31,代码来源:blog-single-section.php

示例12: ff_load_section_options

////////////////////////////////////////////////////////////////////////////////////////////////
ff_load_section_options('navigation-section', $s);
ff_load_section_options('revslider-section', $s);
ff_load_section_options('title-and-breadcrumbs-section', $s);
////////////////////////////////////////////////////////////////////////////////////////////////
// Blog
////////////////////////////////////////////////////////////////////////////////////////////////
ff_load_section_options('blog-archive-classic-section', $s);
ff_load_section_options('blog-archive-masonry-section', $s);
ff_load_section_options('blog-single-section', $s);
ff_load_section_options('blog-archive-columns-section', $s);
////////////////////////////////////////////////////////////////////////////////////////////////
// Portfolio
////////////////////////////////////////////////////////////////////////////////////////////////
ff_load_section_options('portfolio-archive-classic-section', $s);
ff_load_section_options('portfolio-archive-filterable-1-section', $s);
ff_load_section_options('portfolio-archive-filterable-2-section', $s);
ff_load_section_options('portfolio-archive-parallax-section', $s);
////////////////////////////////////////////////////////////////////////////////////////////////
// Footer
////////////////////////////////////////////////////////////////////////////////////////////////
ff_load_section_options('footer-social-section', $s);
ff_load_section_options('footer-widgets-section', $s);
ff_load_section_options('footer-bottom-section', $s);
////////////////////////////////////////////////////////////////////////////////////////////////
// Special
////////////////////////////////////////////////////////////////////////////////////////////////
ff_load_section_options('page-not-found-section', $s);
ff_load_section_options('page-section', $s);
ff_load_section_options('html-section', $s);
开发者ID:migumuno,项目名称:nordicainteriores,代码行数:30,代码来源:sectionIncluding.php


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