예제 #1
0
 public static function render_html()
 {
     self::init_fields();
     DLN_Blocks::block_load_frontend_assets();
     self::load_frontend_assets();
     DLN_Blocks::block_get_template('add-product-item.php', array('fields' => self::$fields, 'fashion_id' => self::$fashion_id));
 }
예제 #2
0
 public static function render_html()
 {
     self::init_fields();
     DLN_Blocks::block_load_frontend_assets();
     DLN_Block_Photo_Submit::load_frontend_assets();
     DLN_Blocks::block_get_template('photo-submit.php', array('fields' => self::$fields));
 }
 public static function get_field($group_field = '', $field_id = '', $value = array())
 {
     if (empty(self::$fields)) {
         self::init_fields();
     }
     if (empty(self::$fields[$group_field])) {
         return null;
     }
     $group_fields = self::$fields[$group_field];
     $field_return = null;
     foreach ($group_fields as $i => $field) {
         if ($field_id == $field['id']) {
             $field_return = $field;
             if (!empty($value)) {
                 $field_return['value'] = $value;
             }
         }
     }
     DLN_Blocks::block_get_template('views/fields/' . $field_return['type'] . '-field.php', array('field' => $field_return));
 }
예제 #4
0
 public static function render_html()
 {
     DLN_Blocks::block_load_frontend_assets();
     self::load_frontend_assets();
     DLN_Blocks::block_get_template('profile-edit.php', array('fields' => ''));
 }
 public static function render_html()
 {
     self::load_frontend_assets();
     wp_print_styles('dln-block-modal-photo-select-css');
     DLN_Blocks::block_get_template('modals/photo-select.php', array('fields' => null));
 }