Пример #1
0
<?php

/**
 * ICE API: option extensions, enable/disable radio class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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));
    }
}
Пример #2
0
<?php

/**
 * ICE API: option extensions, tag class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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();
Пример #3
0
<?php

/**
 * ICE API: option extensions, WP blog description class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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.');
Пример #4
0
<?php

/**
 * ICE API: option extensions, CSS pixels slider class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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;
Пример #5
0
<?php

/**
 * Infinity Theme: option extensions, CSS overlay image class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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);
Пример #6
0
<?php

/**
 * ICE API: option extensions, CSS border color picker class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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/colorpicker');
/**
 * CSS Border Color Picker
 *
 * @package ICE-extensions
 * @subpackage options
 */
class ICE_Ext_Option_Css_Border_Color extends ICE_Ext_Option_Colorpicker
{
    protected function init()
    {
        parent::init();
        // initialize directives
        $this->title = 'Border Color';
        $this->description = 'Choose a color for the border';
        $this->style_property = 'border-color';
    }
}
Пример #7
0
<?php

/**
 * ICE API: option extensions, generic input class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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
{
}
Пример #8
0
<?php

/**
 * ICE API: option extensions, "off" checkbox class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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));
    }
}
Пример #9
0
<?php

/**
 * ICE API: option extensions, CSS border width slider class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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';
    }
}
Пример #10
0
<?php

/**
 * ICE API: option extensions, css background image class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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);
Пример #11
0
<?php

/**
 * ICE API: option extensions, UI overlay picker class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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');
Пример #12
0
<?php

/**
 * ICE API: option extensions, UI font picker class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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' ) ) {
Пример #13
0
<?php

/**
 * ICE API: option extensions, checkbox class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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');
    }
}
Пример #14
0
<?php

/**
 * ICE API: option extensions, css class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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');
    }
    /**
Пример #15
0
<?php

/**
 * ICE API: feature extensions, BuddyPress Joyride tour class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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');
Пример #16
0
<?php

/**
 * ICE API: option extensions, nxt page on front class file
 *
 * @author Marshall Sorenson <*****@*****.**>
 * @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');