getPost(); $positionOptions=$editor->getVeManager()->getPopupManager()->positionOptions; $appearanceOptions=array( ''=>'Default', 'center'=>'Center', ); $placementOptions=array( ''=>'None', 'all'=>'Whole site', 'post'=>'All posts', 'page'=>'All pages', 'category'=>'By Category', ); $openOptions=array( ''=>'Not open automatically', 'open_on_mouse_out'=>'Open when mouse out of page', 'open_with_delay'=>'Open after page loaded', ); function getBackgroundStyleOptions($current_value) { $output = ''; $styles = array( __( "Cover", 'visual_editor' ) => 'cover', __( 'Contain', 'visual_editor' ) => 'contain', __( 'No Repeat', 'visual_editor' ) => 'no-repeat', __( 'Repeat', 'visual_editor' ) => 'repeat' ); foreach ( $styles as $name => $style ) { $output .= ''; } return $output; }; $poptions = get_post_meta($post->ID,'_ve_poptions',true); if(!is_array($poptions)) { $poptions = array(); } ?> Popup Setting