'; $outputEnd = '
'; $front_css = ' {{row-class}}{ background-image: url({{row_background_image}}); background-repeat: no-repeat; background-size: cover; height: auto; background-position:{{align_type}}; } {{row-class}}.amppb-fluid{width:{{fluid-width}};} {{row-class}}.amppb-fluid .col{margin:0 auto;max-width:{{fluid-wrapper}}; } {{row-class}}.amppb-fixed .col {max-width:{{content-width}};width:{{fixed-width}};margin: 0 auto;} {{row-class}}{ {{if_condition_check_for_brdr==1}} border-width:{{border_sz}}; border-color: {{border_clr_pkr}}; border-style: solid; {{ifend_condition_check_for_brdr_1}} color: {{font_color_picker}}; background-color: {{color_picker}}; {{if_selected_gradient}}{{selected_gradient}};{{ifend_selected_gradient}} margin: {{margin_css}}; padding:{{padding_css}}; {{shadow}} } @media(max-width:768px){ {{row-class}}.amppb-fluid{width:100%;} {{row-class}}.amppb-fluid .col{max-width:90%;} } @media(max-width:425px){ {{row-class}}{ {{if_condition_check_for_pdng==1}} padding:{{res_pdng}}; {{ifend_condition_check_for_pdng_1}} {{if_condition_check_for_mrgn==1}} margin: {{res_mrgn}}; {{ifend_condition_check_for_mrgn_1}} } } '; $front_common_css = '.amppb-fluid .col{margin:0 auto;max-width:{{fluid-width}}; } .amppb-fixed .col {max-width: {{fixed-width}};width:1125px;margin: 0 auto;}'; /*border-size: {{border_css}}; border-style:{{border_type}};*/ $containerCommonSettings = array( 'label' => 'Row Settings', 'settingType' =>'row', 'default_tab'=> 'customizer', 'tabs' => array( 'customizer'=>'Basic', 'container_css'=>'Advance', ), 'fields' => array( array( 'type' =>'text', 'name' =>"row_label", 'label' =>'Row label', 'tab' =>'container_css', 'default' =>'', 'content_type'=>'html', ), array( 'type' =>'text', 'name' =>"row_class", 'label' =>'Row class', 'tab' =>'container_css', 'default' =>'', 'content_type'=>'html', ), array( 'type' =>'radio', 'name' =>"grid_type", 'label' =>'Grid type', 'tab' =>'customizer', 'default' =>'amppb-fluid', 'options' =>array( array( 'label'=>'Fixed', 'value'=>'amppb-fixed', ), array( 'label'=>'Fluid', 'value'=>'amppb-fluid', ), ), 'content_type'=>'html', ), array( 'type' =>'text', 'name' =>"fixed-width", 'label' =>'Width', 'tab' =>'customizer', 'default' =>'1100px', 'content_type'=>'css', 'required' => array('grid_type'=>'amppb-fixed') ), array( 'type' =>'text', 'name' =>"content-width", 'label' =>'Content Width', 'tab' =>'customizer', 'default' =>'95%', 'content_type'=>'css', 'required' => array('grid_type'=>'amppb-fixed') ), array( 'type' =>'text', 'name' =>"fluid-width", 'label' =>'Width', 'tab' =>'customizer', 'default' =>'100%', 'content_type'=>'css', 'required' => array('grid_type'=>'amppb-fluid') ), array( 'type' =>'text', 'name' =>"fluid-wrapper", 'label' =>'Wrapper', 'tab' =>'customizer', 'default' =>'90%', 'content_type'=>'css', 'required' => array('grid_type'=>'amppb-fluid') ), array( 'type' =>'color-picker', 'name' =>"font_color_picker", 'label' =>'Text Font', 'tab' =>'customizer', 'default' =>'#000', 'content_type'=>'css', 'output_format'=>"color: %default%" ), array( 'type' =>'select', 'name' =>"background_type", 'label' =>"Background Type", 'tab' =>'customizer', 'default' =>'color', 'options_details'=>array( 'color'=>'Color', 'gradient'=>'Gradient', 'image'=>'Background Image' ), 'content_type'=>'css', 'output_format'=>'' ), array( 'type' =>'select', 'name' =>'align_type', 'label' =>"Background Position", 'tab' =>'customizer', 'default' =>'center', 'options_details'=>array( 'center' =>'Center', 'left' =>'Left', 'right' =>'Right', ), 'content_type'=>'css', 'required' => array('background_type'=>'image') ), array( 'type' =>'upload', 'name' =>"row_background_image", 'label' =>"Select Image", 'tab' =>'customizer', 'default' =>'', 'content_type'=>'css', 'required' => array('background_type'=>'image') ), array( 'type' =>'color-picker', 'name' =>"color_picker", 'label' =>'Background Color', 'tab' =>'customizer', 'default' =>'', 'content_type'=>'css', 'output_format'=>"background: %default%", 'required' => array('background_type'=>'color') ), array( 'type' =>'gradient-selector', 'name' =>"selected_gradient", 'label' =>'Background Gradient', 'tab' =>'customizer', 'default' =>'', 'content_type'=>'css', 'output_format'=>"%default%", 'required' => array('background_type'=>'gradient') ), /*array( 'type' =>'checkbox', 'name' =>"want_border", 'label' =>'Border', 'tab' =>'customizer', 'default' =>array(), 'options' =>array( array( 'label'=>'Enable', 'value'=>1, ), ), 'content_type'=>'css', 'output_format'=>'' ), array( 'type' =>'spacing', 'name' =>"border_css", 'label' =>'Set Border', 'tab' =>'customizer', 'default' =>array( 'left'=>0, 'right'=>0, 'top'=>0, 'bottom'=>0 ), 'content_type'=>'css', 'required' => array('want_border'=>1), ), array( 'type' =>'select', 'name' =>"border_type", 'label' =>"Select border type", 'tab' =>'customizer', 'default' =>'none', 'options_details'=>array( 'dotted'=>'Dotted', 'dashed'=>'dashed', 'solid'=>'solid', 'double'=>'double', 'groove'=>'groove', 'ridge'=>'ridge', 'inset'=>'inset', 'outset'=>'outset', 'none'=>'none', 'hidden'=>'hidden', ), 'content_type'=>'css', 'output_format'=>'border-style: %default%', 'required' => array('want_border'=>1), ),*/ array( 'type' =>'checkbox', 'name' =>"shadow", 'label' =>'Shadow', 'tab' =>'customizer', 'default' =>array(), 'options' =>array( array( 'label'=>'Enable', 'value'=>'box-shadow:-5px 2px 32px 0 rgba(61,69,74,.12);z-index: 10;position: relative;', ), ), 'content_type'=>'css', 'output_format'=>'%default%' ), array( 'type' =>'spacing', 'name' =>"margin_css", 'label' =>'Set Margin', 'tab' =>'container_css', 'default' => array( 'top'=>'0px', 'right'=>'auto', 'bottom'=>'0px', 'left'=>'auto', ), 'content_type'=>'css', ), array( 'type' =>'spacing', 'name' =>"padding_css", 'label' =>'Set Padding', 'tab' =>'container_css', 'default' =>array( 'top'=>'20px', 'right'=>'0px', 'bottom'=>'20px', 'left'=>'0px' ), 'content_type'=>'css', 'output_format'=>"padding: %left% %right% %top% %bottom%" ), array( 'type' =>'checkbox_bool', 'name' =>"check_for_brdr", 'label' => 'Border', 'tab' =>'container_css', 'default' =>0, 'options' =>array( array( 'label'=>'Yes', 'value'=>1, ) ), 'content_type'=>'css', ), array( 'type' =>'spacing', 'name' =>"border_sz", 'label' =>'Border width', 'tab' =>'container_css', 'default' =>array( 'top'=>'0px', 'right'=>'0px', 'bottom'=>'0px', 'left'=>'0px' ), 'required' => array('check_for_brdr'=>1), 'content_type'=>'css', ), array( 'type' =>'color-picker', 'name' =>"border_clr_pkr", 'label' =>'Border Color', 'tab' =>'container_css', 'default' =>'#ccc', 'required' => array('check_for_brdr'=>1), 'content_type'=>'css', ), array( 'type' =>'checkbox_bool', 'name' =>"check_for_pdng", 'label' => 'Responsive Padding', 'tab' =>'container_css', 'default' =>0, 'options' =>array( array( 'label'=>'Yes', 'value'=>1, ) ), 'content_type'=>'css', ), array( 'type' =>'spacing', 'name' =>"res_pdng", 'label' =>'Set Padding', 'tab' =>'container_css', 'default' =>array( 'top'=>'0px', 'right'=>'0px', 'bottom'=>'0px', 'left'=>'0px' ), 'content_type'=>'css', 'required' => array('check_for_pdng'=>1), ), array( 'type' =>'checkbox_bool', 'name' =>"check_for_mrgn", 'label' => 'Responsive Margin', 'tab' =>'container_css', 'default' =>0, 'options' =>array( array( 'label'=>'Yes', 'value'=>1, ) ), 'content_type'=>'css', ), array( 'type' =>'spacing', 'name' =>"res_mrgn", 'label' =>'Set Margin', 'tab' =>'container_css', 'default' => array( 'top'=>'0px', 'right'=>'auto', 'bottom'=>'0px', 'left'=>'auto', ), 'content_type'=>'css', 'required' => array('check_for_mrgn'=>1), ), ), 'front_template_start'=>$output, 'front_template_end'=>$outputEnd, 'front_css'=>$front_css, 'front_common_css' => $front_common_css, );