post_title; $id=$index; $title=apply_filters( 'the_title', $title, $id ); $content=$popup->post_content; remove_filter('the_content',array($editor,'addContentAnchor')); $content = apply_filters( 'the_content', $content ); $content = str_replace( ']]>', ']]>', $content ); $option=wp_parse_args($option,array( 'width'=>'', 'height'=>'', )); if(!is_array($option)) { $option = array(); } $popupData = array( 'position' => $option['position'], 'placement' => $option['placement'], 'offset' => array( 'top' => $option['top'], 'left' => $option['left'], 'right' => $option['right'], 'bottom' => $option['bottom'], ), 'size' => array( 'width' => intval($option['width']), 'height' => intval($option['height']), ), 'open' => $option['open'], 'delay' => $option['delay'], 'inactive' => absint($option['inactive']), ); $screen_width=ve_get_post_meta('screen_size',$popup->ID); $screen_width=absint($screen_width); if($screen_width<100){ $screen_width='1170'; } if($screen_width) { $screen_width = intval($screen_width) - 82; $popupData['size']['width'] = $screen_width; } $background_color=$popup->background_color; $background_image=$popup->background_image; $background_style=$popup->background_style; $background_opacity=$popup->background_opacity; $close_btn_style=$popup->close_btn_style; if(!$close_btn_style){ $close_btn_style='fa-times-circle'; } $close_btn_style='close-icon fa '.$close_btn_style; $close_btn_position=$popup->close_btn_position; if(!$close_btn_position){ $close_btn_position='right'; } $close_btn_position='close-'.$close_btn_position; $close_btn_offsets=array( 'top'=>$popup->close_btn_top, 'left'=>$popup->close_btn_left, 'right'=>$popup->close_btn_right, 'bottom'=>$popup->close_btn_bottom, ); $close_btn_offset=''; foreach($close_btn_offsets as $_offset=>$_value){ if($_value!==''){ $close_btn_offset.=$_offset.':'.$_value.';'; } } ?>