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


PHP ICE_Loader::load_ext方法代码示例

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


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

示例1: load_field_options

<?php

/**
 * ICE API: option extensions, enable/disable radio class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/radio');
/**
 * Enable/Disable radio option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Toggle_Enable_Disable extends ICE_Ext_Option_Radio implements ICE_Option_Auto_Field
{
    /**
     */
    public function load_field_options()
    {
        return array(true => __('Enable', infinity_text_domain), false => __('Disable', infinity_text_domain));
    }
}
开发者ID:shads196770,项目名称:cbox-theme,代码行数:29,代码来源:class.php

示例2: load_field_options

<?php

/**
 * ICE API: option extensions, tag class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/select');
/**
 * Tag option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Tag extends ICE_Ext_Option_Select implements ICE_Option_Auto_Field
{
    /**
     */
    public function load_field_options()
    {
        $args = array('hide_empty' => false);
        // get all tags
        $tags = get_tags($args);
        // field options
        $options = array();
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:class.php

示例3: init

<?php

/**
 * ICE API: option extensions, WP blog description class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/text');
/**
 * WP blog description option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Wp_Blogdescription extends ICE_Ext_Option_Text
{
    /**
     */
    protected function init()
    {
        // run parent
        parent::init();
        // init directives
        $this->title = __('Tagline');
        $this->description = __('In a few words, explain what this site is about.');
开发者ID:shads196770,项目名称:cbox-theme,代码行数:31,代码来源:class.php

示例4: init

<?php

/**
 * ICE API: option extensions, CSS pixels slider class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/ui/slider');
/**
 * CSS Pixels Slider
 *
 * This option is an extension of the slider for selecting pixels
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Css_Length_Px extends ICE_Ext_Option_Ui_Slider
{
    protected function init()
    {
        parent::init();
        // initialize directives
        $this->description = 'Select the number of pixels by moving the slider';
        $this->max = 5;
        $this->min = 0;
开发者ID:nathan929,项目名称:infinity,代码行数:31,代码来源:class.php

示例5: init

<?php

/**
 * Infinity Theme: option extensions, CSS overlay image class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package Infinity-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/ui/overlay-picker');
/**
 * CSS overlay image
 *
 * @package Infinity-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Css_Overlay_Image extends ICE_Ext_Option_Ui_Overlay_Picker
{
    /**
     */
    protected function init()
    {
        // run parent
        parent::init();
        // init directives
        $this->title = __('Overlay Image', infinity_text_domain);
        $this->description = __('Select a texture to use as the background overlay', infinity_text_domain);
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:class.php

示例6:

<?php

/**
 * ICE API: option extensions, generic input class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/input');
/**
 * Input element base class
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Input_Group extends ICE_Ext_Option_Input
{
}
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:23,代码来源:class.php

示例7: load_field_options

<?php

/**
 * ICE API: option extensions, "off" checkbox class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/checkbox');
/**
 * Off checkbox option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Toggle_Off extends ICE_Ext_Option_Checkbox implements ICE_Option_Auto_Field
{
    /**
     */
    public function load_field_options()
    {
        // this is true because you would be testing if "was `off` checked?"
        return array(true => __('Off', infinity_text_domain));
    }
}
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:30,代码来源:class.php

示例8: init

<?php

/**
 * ICE API: option extensions, CSS border width slider class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/css/length-px');
/**
 * CSS Border Width Slider
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Css_Border_Width extends ICE_Ext_Option_Css_Length_Px
{
    protected function init()
    {
        parent::init();
        // initialize directives
        $this->title = 'Border Width';
        $this->description = 'Select the width of the border by moving the slider';
        $this->style_property = 'border-width';
    }
}
开发者ID:shads196770,项目名称:cbox-theme,代码行数:31,代码来源:class.php

示例9: init

<?php

/**
 * ICE API: option extensions, css background image class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/upload');
/**
 * CSS background image option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Css_Bg_Image extends ICE_Ext_Option_Upload
{
    /**
     */
    protected function init()
    {
        // run parent
        parent::init();
        // init directives
        $this->title = __('Background Image', infinity_text_domain);
        $this->description = __('Upload an image to use as the background', infinity_text_domain);
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:class.php

示例10: init_styles

<?php

/**
 * ICE API: option extensions, UI overlay picker class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/ui/image-picker');
/**
 * UI Overlay Picker
 *
 * This option is an extension of the image picker for handling image overlays
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Ui_Overlay_Picker extends ICE_Ext_Option_Ui_Image_Picker
{
    /**
     */
    public function init_styles()
    {
        parent::init_styles();
        // add bg image style callback
        $this->style()->cache('bgimage-gen', 'bg_image_style');
开发者ID:nathan929,项目名称:infinity,代码行数:31,代码来源:class.php

示例11: configure

<?php

/**
 * ICE API: option extensions, UI font picker class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load('utils/webfont');
ICE_Loader::load_ext('options/ui/scroll-picker');
/**
 * UI Font Picker
 *
 * This option is an extension of the scroll picker for handling font selection
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Ui_Font_Picker extends ICE_Ext_Option_Ui_Scroll_Picker
{
    /**
    *
    	public function configure()
    	{
    		// file directory
    		if ( $this->config()->contains( 'file_directory' ) ) {
开发者ID:nathan929,项目名称:infinity,代码行数:31,代码来源:class.php

示例12: init

<?php

/**
 * ICE API: option extensions, checkbox class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/input-group');
/**
 * Checkbox option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Checkbox extends ICE_Ext_Option_Input_Group
{
    /**
     */
    protected function init()
    {
        parent::init();
        $this->input_type('checkbox');
    }
}
开发者ID:shads196770,项目名称:cbox-theme,代码行数:30,代码来源:class.php

示例13: init_styles

<?php

/**
 * ICE API: option extensions, css class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/textarea');
/**
 * CSS option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Css_Custom extends ICE_Ext_Option_Textarea
{
    /**
     */
    public function init_styles()
    {
        parent::init_styles();
        // add css injection callback
        $this->style()->cache('custom', 'inject_css');
    }
    /**
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:class.php

示例14: init

<?php

/**
 * ICE API: feature extensions, BuddyPress Joyride tour class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage features
 * @since 1.0
 */
ICE_Loader::load_ext('features/scripts/joyride');
/**
 * BuddyPress tour feature
 *
 * @package ICE-extensions
 * @subpackage features
 */
class ICE_Ext_Feature_Bp_Tour extends ICE_Ext_Feature_Scripts_Joyride
{
    /**
     */
    protected function init()
    {
        // run parent
        parent::init();
        // set property defaults
        $this->title = __('BuddyPress Tour');
        $this->description = __('Gives users a tour of the BuddyPress activity stream');
开发者ID:shads196770,项目名称:cbox-theme,代码行数:31,代码来源:class.php

示例15: init

<?php

/**
 * ICE API: option extensions, nxt page on front class file
 *
 * @author Marshall Sorenson <marshall@presscrew.com>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Marshall Sorenson
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package ICE-extensions
 * @subpackage options
 * @since 1.0
 */
ICE_Loader::load_ext('options/page');
/**
 * nxt page on front option
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_nxt_Page_On_Front extends ICE_Ext_Option_Page
{
    /**
     */
    protected function init()
    {
        // run parent
        parent::init();
        // init directives
        $this->title = __('Front page displays');
        $this->description = __('Select the page to show on the front page');
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:class.php


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