* @package Questions/Elements * @version 2015-04-16 * @since 1.0.0 * @license GPL 2 * Copyright 2015 awesome.ug (support@awesome.ug) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ if ( ! defined( 'ABSPATH' ) ) { exit; } class Questions_Elements extends Questions_Component { /** * Initializes the Component. * @since 1.0.0 */ public function __construct() { $this->name = 'QuestionsElements'; $this->title = esc_attr__( 'Elements', 'questions-locale' ); $this->description = esc_attr__( 'Base Elements to put into surveys', 'questions-locale' ); $this->turn_off = FALSE; $this->slug = 'surveyelements'; parent::__construct(); } // end constructor /** * Including files of component */ public function includes() { // Base class for elements include( QUESTIONS_COMPONENTFOLDER . '/elements/class-element.php' ); // Base elements include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/text.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/textarea.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/onechoice.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/multiplechoice.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/dropdown.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/separator.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/splitter.php' ); include( QUESTIONS_COMPONENTFOLDER . '/elements/base-elements/description.php' ); } } $Questions_Elements = new Questions_Elements();