當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Fields::choose_color方法代碼示例

本文整理匯總了PHP中Fields::choose_color方法的典型用法代碼示例。如果您正苦於以下問題:PHP Fields::choose_color方法的具體用法?PHP Fields::choose_color怎麽用?PHP Fields::choose_color使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Fields的用法示例。


在下文中一共展示了Fields::choose_color方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Fields

 /**
  *
  * Layout: Post List
  *
  * @author Michael W. Delaney
  * @since 1.0
  *
  * List of posts
  */
 function post_list()
 {
     $FCBFields = new Fields(__FUNCTION__);
     $FCBRepeaters = new Repeaters(__FUNCTION__);
     $FCBFlexibleContent = new FlexibleContent(__FUNCTION__);
     return array('order' => '500', 'layout' => array('key' => $this->key . __FUNCTION__, 'name' => 'post_list', 'label' => 'Post List', 'display' => 'block', 'sub_fields' => array($FCBFields->title(), $FCBFields->navigation_title(), $FCBFields->tab_content(), $FCBFields->content(), $FCBFields->tab_post_list(), $FCBFields->posts_per_page(), $FCBFields->show_author(), $FCBFields->show_date(), $FCBFields->show_featured_image(), $FCBFields->category(), $FCBFields->tab_background(), $FCBFields->background_image(), $FCBFields->background_color(), $FCBFields->background_color_placeholder(), $FCBFields->theme_color(), $FCBFields->choose_color(), $FCBFields->tab_cta(), $FCBFlexibleContent->cta(), $FCBFields->tab_dev(), $FCBFields->dev_block_message(), $FCBRepeaters->block_data_attributes(), $FCBFields->block_classes(), $FCBFields->tab_endpoint())));
 }
開發者ID:mwdelaney,項目名稱:acf-flexible-content-blocks,代碼行數:16,代碼來源:class-acffcb-layouts.php

示例2: slides

 /**
  *
  * Repeater: Slides
  *
  * @author Michael W. Delaney
  * @since 1.0
  *
  * Repeater field for slides
  */
 function slides()
 {
     $FCBRepeaterFields = new Fields($this->layout, __FUNCTION__);
     $FCBRepeaterFlexibleContent = new FlexibleContent(__FUNCTION__);
     return array('key' => $this->key . __FUNCTION__, 'label' => 'Slides', 'name' => 'slides', 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array('width' => '', 'class' => '', 'id' => ''), 'collapsed' => 'field_573b50b3ebf4d', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Slide', 'sub_fields' => array($FCBRepeaterFields->title(), $FCBRepeaterFields->tab_content(), $FCBRepeaterFields->content(), $FCBRepeaterFields->tab_cta(), $FCBRepeaterFlexibleContent->cta('slide'), $FCBRepeaterFields->tab_media(), $FCBRepeaterFlexibleContent->media(), $FCBRepeaterFields->tab_background(), $FCBRepeaterFields->background_image(), $FCBRepeaterFields->background_color(), $FCBRepeaterFields->background_color_placeholder(), $FCBRepeaterFields->theme_color(), $FCBRepeaterFields->choose_color()));
 }
開發者ID:mwdelaney,項目名稱:acf-flexible-content-blocks,代碼行數:15,代碼來源:class-acffcb-repeaters.php


注:本文中的Fields::choose_color方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。