init
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
Flatsome_Option::add_panel( 'style', array(
|
||||
'title' => __( 'Style', 'flatsome-admin' ),
|
||||
) );
|
||||
|
||||
Flatsome_Option::add_section( 'custom-css', array(
|
||||
'title' => __( 'Custom CSS', 'flatsome-admin' ),
|
||||
'panel' => 'style',
|
||||
) );
|
||||
|
||||
Flatsome_Option::add_field( 'option', array(
|
||||
'type' => 'code',
|
||||
'settings' => 'html_custom_css',
|
||||
'label' => __( 'Custom CSS', 'flatsome-admin' ),
|
||||
'section' => 'custom-css',
|
||||
'transport' => $transport,
|
||||
'placeholder' => '.add-css-here{}',
|
||||
'choices' => array(
|
||||
'language' => 'css',
|
||||
),
|
||||
));
|
||||
|
||||
Flatsome_Option::add_field( 'option', array(
|
||||
'type' => 'code',
|
||||
'settings' => 'html_custom_css_tablet',
|
||||
'label' => __( 'Custom Tablet CSS', 'flatsome-admin' ),
|
||||
'section' => 'custom-css',
|
||||
'default' => '',
|
||||
'placeholder' => '.add-css-here{}',
|
||||
'transport' => $transport,
|
||||
'choices' => array(
|
||||
'language' => 'css',
|
||||
),
|
||||
));
|
||||
|
||||
Flatsome_Option::add_field( 'option', array(
|
||||
'type' => 'code',
|
||||
'settings' => 'html_custom_css_mobile',
|
||||
'label' => __( 'Custom Mobile CSS', 'flatsome-admin' ),
|
||||
'section' => 'custom-css',
|
||||
'default' => '',
|
||||
'placeholder' => '.add-css-here{}',
|
||||
'transport' => $transport,
|
||||
'choices' => array(
|
||||
'language' => 'css',
|
||||
),
|
||||
));
|
||||
Reference in New Issue
Block a user