File Editor
Directories:
.. (Back)
attribute
display-conditions
template
Files:
Base.php
Border.php
BoxShadow.php
DisplayConditions.php
Divider.php
Factory.php
Height.php
MarginPadding.php
MaxWidth.php
Overflow.php
Position.php
Scroll.php
Sticky.php
TextShadow.php
Transform.php
Create New File
Create
Edit File: Factory.php
<?php class ET_Builder_Module_Fields_Factory { protected static $fields = array(); /** * @param $fields_type * * @return ET_Builder_Module_Field_Base */ public static function get( $fields_type ) { if ( ! isset( self::$fields[ $fields_type ] ) ) { $file = implode( DIRECTORY_SEPARATOR, array( ET_BUILDER_DIR, 'module', 'field', "$fields_type.php" ) ); $instance = file_exists( $file ) ? require_once $file : null; self::$fields[ $fields_type ] = $instance instanceof ET_Builder_Module_Field_Base ? $instance : null; } return self::$fields[ $fields_type ]; } }
Save Changes
Rename File
Rename