'; return [ 'id' => uniqid(), 'type' => self::$type, 'name' => __( 'Hook', 'yaymail' ), 'icon' => self::$icon, 'group' => 'woocommerce', 'available' => true, 'position' => 210, 'data' => [ 'padding' => [ 'value_path' => 'padding', 'component' => 'Spacing', 'title' => __( 'Padding', 'yaymail' ), 'default_value' => isset( $attributes['padding'] ) ? $attributes['padding'] : [ 'top' => '15', 'right' => '50', 'bottom' => '15', 'left' => '50', ], 'type' => 'style', ], 'background_color' => [ 'value_path' => 'background_color', 'component' => 'Color', 'title' => __( 'Background color', 'yaymail' ), 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : '#fff', 'type' => 'style', ], 'text_color' => [ 'value_path' => 'text_color', 'component' => 'Color', 'title' => __( 'Text color', 'yaymail' ), 'default_value' => isset( $attributes['text_color'] ) ? $attributes['text_color'] : YAYMAIL_COLOR_TEXT_DEFAULT, 'type' => 'style', ], 'hook_shortcode' => [ 'value_path' => 'hook_shortcode', 'component' => 'HookSelector', 'title' => __( 'Hook shortcode', 'yaymail' ), 'default_value' => isset( $attributes['rich_text'] ) ? $attributes['hook_shortcode'] : '[yaymail_custom_hook hook="woocommerce_email_before_order_table"]', 'type' => 'content', ], 'font_family' => [ 'value_path' => 'font_family', 'component' => 'FontFamilySelector', 'title' => __( 'Font family', 'yaymail' ), 'default_value' => isset( $attributes['font_family'] ) ? $attributes['font_family'] : YAYMAIL_DEFAULT_FAMILY, 'type' => 'style', ], ], ]; } }