SHARE
TWEET

Untitled

a guest Jan 19th, 2018 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /************ Home slider meta post ****************/
  3. add_action('admin_init','wallstreet_init');
  4. function wallstreet_init()
  5.     {
  6.        
  7.         add_meta_box('home_slider_meta', __('Slider Details','wallstreet'), 'wallstreet_meta_slider', 'wallstreet_slider', 'normal', 'high');
  8.         add_meta_box('home_service_meta', __('Service Details','wallstreet'), 'wallstreet_meta_service', 'wallstreet_service', 'normal', 'high');
  9.         add_meta_box('home_portfolio_meta', __('Portfolio Details','wallstreet'), 'wallstreet_meta_portfolio', 'wallstreet_portfolio', 'normal', 'high');
  10.         add_meta_box('home_portfolio_meta_details', __('Portfolio Featured Details','wallstreet'), 'wallstreet_meta_portfolio_details', 'wallstreet_portfolio', 'normal', 'high');
  11.        
  12.         //add_meta_box('wallstreet_page', 'Page Info', 'page_layout_meta', 'page', 'normal', 'high');
  13.         //add_meta_box('wallstreet_post', 'Post Info', 'post_layout_meta', 'post', 'normal', 'high');
  14.         add_meta_box('wallstreet_testi', __('Testimonial Detail','wallstreet'), 'wallstreet_meta_testimonial', 'wallstreet_testi', 'normal', 'high');
  15.         add_meta_box('wallstreet_team', __('Team Details','wallstreet'), 'wallstreet_meta_team', 'wallstreet_team', 'normal', 'high');
  16.         add_meta_box('wallstreet_client', __('Client Details','wallstreet'), 'wallstreet_meta_client', 'wallstreet_client', 'normal', 'high');
  17.        
  18.         add_action('save_post','wallstreet_meta_save');
  19.        
  20.        
  21.     }  
  22.     function post_layout_meta()
  23.     {
  24.         global $post ;
  25.         $post_description =( get_post_meta( get_the_ID(), 'post_description', true ));
  26.         $content_post_layout=( get_post_meta( get_the_ID(), 'content_post_layout', true ));
  27.         if(!$content_post_layout) { $content_post_layout= "fullwidth"; }
  28.         ?>
  29.         <p><label><?php _e('Description','wallstreet');?></label></p>
  30.         <p><input class="inputwidth"  name="post_description" id="post_description" style="width: 480px" placeholder="<?php _e('Description','wallstreet'); ?> " type="text" value="<?php if (!empty($post_description)) echo esc_attr($post_description);?>"></input></p>
  31.         <p>
  32.         <input id="radio1"  <?php if($content_post_layout == "fullwidth") { echo "checked"; } ?> type="radio" name="content_post_layout" value="fullwidth">
  33.         <label for="radio1" <?php if($content_post_layout == "fullwidth") { echo "checked"; } ?> ><img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/full-width.png"></label>
  34.         <input  id="radio2" <?php if($content_post_layout == "fullwidth_left") { echo "checked"; } ?> type="radio" name="content_post_layout" value="fullwidth_left">
  35.         <label for="radio2" <?php if($content_post_layout == "fullwidth_left") { echo "checked"; } ?> ><img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/left-sidebar.png"></label>
  36.         <input  id="radio3" <?php if($content_post_layout == "fullwidth_right") { echo "checked"; } ?> type="radio" name="content_post_layout" value="fullwidth_right">
  37.         <label for="radio3" <?php if($content_post_layout == "fullwidth_right") { echo "checked"; } ?> ><img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/right-sidebar1.png"></label>
  38.         </p>           
  39.         <?php
  40.     }
  41.     function page_layout_meta()
  42.     {
  43.         global $post ;
  44.         $page_description =( get_post_meta( get_the_ID(), 'page_description', true ));
  45.         $content_page_layout=( get_post_meta( get_the_ID(), 'content_page_layout', true ));
  46.         if(!$content_page_layout) { $content_page_layout= "fullwidth"; }
  47.         ?>
  48.         <p><label><?php _e('Page Description','wallstreet');?></label></p>
  49.         <p><input class="inputwidth"  name="page_description" id="page_description" style="width: 480px" placeholder="<?php _e('Enter page description','wallstreet');?>" type="text" value="<?php if (!empty($page_description)) echo esc_attr($page_description);?>"> </input></p>       
  50.         <p><label><?php _e('Page Layout','wallstreet');?></label></p>
  51.         <p>
  52.             <input id="radio1"  <?php if($content_page_layout == "fullwidth") { echo "checked"; } ?> type="radio" name="content_page_layout" value="fullwidth">
  53.             <label for="radio1" <?php if($content_page_layout == "fullwidth") { echo "checked"; } ?> ><img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/full-width.png"></label>
  54.             <input  id="radio2" <?php if($content_page_layout == "fullwidth_left") { echo "checked"; } ?> type="radio" name="content_page_layout" value="fullwidth_left">
  55.             <label for="radio2" <?php if($content_page_layout == "fullwidth_left") { echo "checked"; } ?> ><img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/left-sidebar.png"></label>
  56.             <input  id="radio3" <?php if($content_page_layout == "fullwidth_right") { echo "checked"; } ?> type="radio" name="content_page_layout" value="fullwidth_right">
  57.             <label for="radio3" <?php if($content_page_layout == "fullwidth_right") { echo "checked"; } ?> ><img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/right-sidebar1.png"></label>
  58.         <p/>
  59.         <?php
  60.     }
  61.    
  62.     // code for slider banner description
  63.     function wallstreet_meta_slider()
  64.     {   global $post ;
  65.         $slider_title = ( get_post_meta( get_the_ID(), 'slider_title', true ));
  66.         $slider_description = ( get_post_meta( get_the_ID(), 'slider_description', true ));
  67.         $slider_button_text = ( get_post_meta( get_the_ID(), 'slider_button_text', true ));
  68.         $slider_button_link = ( get_post_meta( get_the_ID(), 'slider_button_link', true ));
  69.         $slider_button_target = ( get_post_meta( get_the_ID(), 'slider_button_target', true ));
  70.         ?> 
  71.         <p><h4 class="heading"><?php _e('Title','wallstreet');?></h4></p>
  72.         <p><input class="inputwidth"  name="slider_title" id="slider_title" style="width: 480px" placeholder="<?php _e('Title','wallstreet');?> " type="text" value="<?php if (!empty($slider_title)) echo esc_attr($slider_title);?>"> </input></p>       
  73.         <p><h4 class="heading"><?php _e('Description','wallstreet'); ?> </h4>
  74.         <p><input class="inputwidth"  name="slider_description" id="slider_description" style="width: 480px" placeholder="<?php _e('Description','wallstreet'); ?>" type="text" value="<?php if (!empty($slider_description)) echo esc_attr($slider_description);?>"> </input></p> 
  75.         <p><h4 class="heading"><?php _e('Button Text','wallstreet'); ?> </h4>
  76.         <p><input class="inputwidth"  name="slider_button_text" id="slider_button_text" style="width: 480px" placeholder="<?php _e('Text','wallstreet'); ?>" type="text" value="<?php if (!empty($slider_button_text)) echo esc_attr($slider_button_text);?>"> </input></p>
  77.         <p><h4 class="heading"><?php _e('Button Link','wallstreet');?></h4>
  78.         <p><input class="inputwidth"  name="slider_button_link" id="slider_button_link" style="width: 480px" placeholder="<?php _e('Link','wallstreet'); ?>" type="text" value="<?php if (!empty($slider_button_link)) echo esc_attr($slider_button_link);?>"> </input></p>
  79.         <p><input type="checkbox" id="slider_button_target" name="slider_button_target" <?php if($slider_button_target) echo "checked"; ?> ><?php _e('Open link in new tab','wallstreet'); ?></p>
  80.         <?php
  81.     }
  82.  
  83.     // code for service description
  84.     function wallstreet_meta_service()
  85.     {   global $post ;     
  86.         $service_icon_image =( get_post_meta( get_the_ID(), 'service_icon_image', true ));
  87.         $service_icon_target =( get_post_meta( get_the_ID(), 'service_icon_target', true ));
  88.         $meta_service_link =( get_post_meta( get_the_ID(), 'meta_service_link', true ));
  89.         $meta_service_target =( get_post_meta( get_the_ID(), 'meta_service_target', true ));
  90.         $service_description_text =( get_post_meta( get_the_ID(), 'service_description_text', true ));
  91.         $service_readmore_text =( get_post_meta( get_the_ID(), 'service_readmore_text', true ));
  92.     ?> 
  93.         <p><h4 class="heading"><?php _e('Icon','wallstreet'); echo " (Using font awesome icons name) like: fa-rub.";?> <label style="margin-left:10px;"><a target="_blank" href="http://fontawesome.io/icons/"> <?php _e('Get your Font Awesome icons.','wallstreet') ;?></a></label></h4>
  94.         <p><input type="checkbox" id="service_icon_target" name="service_icon_target" <?php if($service_icon_target) echo "checked"; ?> ><?php _e('To enable service icon check mark the checkbox','wallstreet'); ?></p>
  95.         <p><input class="inputwidth"  name="service_icon_image" id="service_icon_image" style="width: 480px" placeholder="<?php _e('Icon','wallstreet'); ?>" type="text" value="<?php if (!empty($service_icon_image)) echo esc_attr($service_icon_image);?>"> </input></p>
  96.         <p><h4 class="heading"><?php _e('Link','wallstreet'); ?></h4>
  97.         <p><input class="inputwidth"  name="meta_service_link" id="meta_service_link" style="width: 480px" placeholder="<?php _e('Link','wallstreet'); ?>" type="text" value="<?php if (!empty($meta_service_link)) echo esc_attr($meta_service_link);?>"> </input></p>
  98.         <p><input type="checkbox" id="meta_service_target" name="meta_service_target" <?php if($meta_service_target) echo "checked"; ?> ><?php _e('Open link in new tab','wallstreet'); ?></p>
  99.         <p><h4 class="heading"><?php _e('Description','wallstreet'); ?></h4>
  100.         <p><textarea name="service_description_text" id="service_description_text" style="width: 480px; height: 56px; padding: 0px;" placeholder="<?php _e('Description','wallstreet'); ?>"  rows="3" cols="10" ><?php if (!empty($service_description_text)) echo esc_textarea( $service_description_text ); ?></textarea></p>
  101.         <p><h4 class="heading"><?php _e('Button Text','wallstreet'); ?></h4>
  102.         <p><input class="inputwidth"  name="service_readmore_text" id="service_readmore_text" style="width: 480px" placeholder="<?php _e('Button Text','quality'); ?>" type="text" value="<?php if (!empty($service_readmore_text)) echo esc_attr($service_readmore_text);?>"> </input></p>
  103. <?php }
  104.  
  105. // code for project description
  106.     function wallstreet_meta_portfolio()
  107.     {   global $post ;     
  108.         $meta_project_target =( get_post_meta( get_the_ID(), 'meta_project_target', true ));
  109.         $portfolio_project_summary =( get_post_meta( get_the_ID(), 'portfolio_project_summary', true ));
  110.         $meta_project_link =( get_post_meta( get_the_ID(), 'meta_project_link', true ));
  111.        
  112.     ?>
  113.     <p><h4 class="heading"><?php _e('Link','wallstreet');?></h4>
  114.     <p><input class="inputwidth"  name="meta_project_link" id="meta_project_link" style="width: 480px" placeholder="<?php _e('Link','wallstreet'); ?>" type="text" value="<?php if (!empty($meta_project_link)) echo esc_attr($meta_project_link);?>"> </input></p>
  115.     <p><input type="checkbox" id="meta_project_target" name="meta_project_target" <?php if($meta_project_target) echo "checked"; ?> ><?php _e('Open link in new tab','wallstreet'); ?></p>
  116.     <p><h4 class="heading"><?php _e('Page Info','wallstreet');?></h4>
  117.     <p><input class="inputwidth"  name="portfolio_project_summary" id="portfolio_project_summary" style="width: 480px" placeholder="<?php _e('Page Info','wallstreet');?>" type="text" value="<?php if (!empty($portfolio_project_summary)) echo esc_attr($portfolio_project_summary);?>"> </input></p>
  118.    
  119. <?php }
  120.     function wallstreet_meta_portfolio_details()
  121.     {   global $post ;
  122.         $portfolio_client_project_title =( get_post_meta( get_the_ID(), 'portfolio_client_project_title', true ));
  123.         $portfolio_project_visit_site =( get_post_meta( get_the_ID(), 'portfolio_project_visit_site', true ));
  124.         $portfolio_project_button_text =( get_post_meta( get_the_ID(), 'portfolio_project_button_text', true ));
  125.         $meta_button_link =( get_post_meta( get_the_ID(), 'meta_button_link', true ));
  126.         $meta_button_target =( get_post_meta( get_the_ID(), 'meta_button_target', true ));
  127.     ?>
  128.     <p><h4 class="heading"><?php _e('Clients','wallstreet');?></h4>
  129.     <p><input class="inputwidth"  name="portfolio_client_project_title" id="portfolio_client_project_title" style="width: 480px" placeholder="<?php _e("Clients","wallstreet"); ?>" type="text" value="<?php if (!empty($portfolio_client_project_title)) echo esc_attr($portfolio_client_project_title);?>"> </input></p> 
  130.     <p><h4 class="heading"><?php _e('Website','wallstreet');?></h4>
  131.     <p><input class="inputwidth"  name="portfolio_project_visit_site" id="portfolio_project_visit_site" style="width: 480px"
  132.     placeholder="<?php _e("Website","wallstreet");?>: http://webriti.com" type="text" value="<?php if (!empty($portfolio_project_visit_site)) echo esc_attr($portfolio_project_visit_site);?>"> </input></p>
  133.     <p><h4 class="heading"><?php _e('Button Text','wallstreet');?></h4>
  134.     <p><input class="inputwidth"  name="portfolio_project_button_text" id="portfolio_project_button_text" style="width: 480px"
  135.     placeholder="<?php _e('Button Text','wallstreet'); ?>" type="text" value="<?php if (!empty($portfolio_project_button_text)) echo esc_attr($portfolio_project_button_text);?>"> </input></p>
  136.     <p><h4 class="heading"><?php _e('Button Link','wallstreet');?></h4>
  137.     <p><input class="inputwidth"  name="meta_button_link" id="meta_button_link" style="width: 480px" placeholder="<?php _e('Button Link','wallstreet'); ?>" type="text" value="<?php if (!empty($meta_button_link)) echo esc_attr($meta_button_link);?>"> </input></p> 
  138.     <p><input type="checkbox" id="meta_button_target" name="meta_button_target" <?php if($meta_button_target) echo "checked"; ?> ><?php _e('Open link in new tab','wallstreet'); ?></p>
  139.     <?php      
  140.     }
  141. //Meta boxes for testimonials*/
  142.     function wallstreet_meta_testimonial()
  143.     {   global $post ;
  144.         $testimonial_description_text=( get_post_meta( get_the_ID(), 'testimonial_description_text', true ));  
  145.         ?> 
  146.         <p><label><?php _e('Description','wallstreet');?></label>   </p>
  147.         <p><textarea name="testimonial_description_text" id="testimonial_description_text" style="width: 550px; height: 100px; padding: 0px;" placeholder="<?php _e('Description','wallstreet');?>"  rows="3" cols="10" ><?php if (!empty($testimonial_description_text)){ echo esc_textarea( $testimonial_description_text ); } ?></textarea></p>
  148.     <?php
  149.     }
  150.    
  151.     function wallstreet_meta_team()
  152.     {
  153.         global $post;
  154.         $designation_meta_save = ( get_post_meta( get_the_ID(), 'designation_meta_save', true ));
  155.         $description_meta_save = ( get_post_meta( get_the_ID(), 'description_meta_save', true ));
  156.         $fb_meta_save = ( get_post_meta( get_the_ID(), 'fb_meta_save', true ));
  157.         $fb_meta_save_chkbx = ( get_post_meta( get_the_ID(), 'fb_meta_save_chkbx', true ));
  158.         $skype_meta_save = ( get_post_meta( get_the_ID(), 'skype_meta_save', true ));
  159.         $skype_meta_save_chkbx = ( get_post_meta( get_the_ID(), 'skype_meta_save_chkbx', true ));
  160.         $google_meta_save = ( get_post_meta( get_the_ID(), 'google_meta_save', true ));
  161.         $google_meta_save_chkbx = ( get_post_meta( get_the_ID(), 'google_meta_save_chkbx', true ));
  162.         $rss_meta_save = ( get_post_meta( get_the_ID(), 'rss_meta_save', true ));
  163.         $rss_meta_save_chkbx = ( get_post_meta( get_the_ID(), 'rss_meta_save_chkbx', true ));
  164.         $lnkd_meta_save = ( get_post_meta( get_the_ID(), 'lnkd_meta_save', true ));
  165.         $lnkd_meta_save_chkbx = ( get_post_meta( get_the_ID(), 'lnkd_meta_save_chkbx', true ));
  166.         $twt_meta_save = ( get_post_meta( get_the_ID(), 'twt_meta_save', true ));
  167.         $twt_meta_save_chkbx = ( get_post_meta( get_the_ID(), 'twt_meta_save_chkbx', true ));
  168.     ?>
  169.     <p><h4 class="heading"><?php _e('Designation','wallstreet');?></h4></p>
  170.     <p><input class="inputwidth"  name="designation_meta_save" id="designation_meta_save" style="width: 480px" placeholder="<?php _e("Designation","wallstreet"); ?>" type="text" value="<?php if (!empty($designation_meta_save)) echo esc_attr($designation_meta_save);?>"></input></p>
  171.     <p><h4 class="heading"><?php _e('Description','wallstreet');?></h4></p>
  172.     <p><textarea name="description_meta_save" id="description_meta_save" style="width: 480px; height: 56px; padding: 0px;"
  173.     placeholder="<?php _e("Description","wallstreet"); ?>"  rows="3" cols="10" ><?php if (!empty($description_meta_save)) echo esc_textarea( $description_meta_save ); ?></textarea></p>   
  174.    
  175.     <p><h4 class="heading"><span><?php _e('Social Media Settings','wallstreet');?></span></h4>
  176.    
  177.     <p><h4 class="heading"><label><?php _e('Facebook URL','wallstreet');?></label></h4>
  178.     <input style="width:70%;padding: 10px;"  name="fb_meta_save" id="fb_meta_save" placeholder="<?php _e("Facebook URL","wallstreet"); ?>" value="<?php if(!empty($fb_meta_save)) echo esc_attr($fb_meta_save); ?>"/>
  179.     <input type="checkbox" name="fb_meta_save_chkbx" id="fb_meta_save_chkbx" <?php if($fb_meta_save_chkbx){echo "checked";}?> /><?php _e('Open link in new tab','wallstreet'); ?></p>
  180.    
  181.     <p><h4 class="heading"><label><?php _e('Skype URL','wallstreet');?></label></h4>
  182.     <input style="width:70%;padding: 10px;"  name="skype_meta_save" id="skype_meta_save" placeholder="<?php _e("Skype URL","wallstreet"); ?>" value="<?php if(!empty($skype_meta_save)) echo esc_attr($skype_meta_save); ?>"/>
  183.     <input type="checkbox" name="skype_meta_save_chkbx" id="skype_meta_save_chkbx" <?php if($skype_meta_save_chkbx){echo "checked";}?> /><?php _e('Open link in new tab','wallstreet'); ?></p>
  184.    
  185.     <p><h4 class="heading"><label><?php _e('GooglePlus URL','wallstreet');?></label></h4>
  186.     <input style="width:70%; padding: 10px;"  name="google_meta_save" id="google_meta_save" placeholder= "<?php _e("GooglePlus URL","wallstreet"); ?>" value="<?php if(!empty($google_meta_save)) echo esc_attr($google_meta_save); ?>"/>
  187.     <input type="checkbox" name="google_meta_save_chkbx" id="google_meta_save_chkbx" <?php if($google_meta_save_chkbx){echo "checked";}?> /><?php _e('Open link in new tab','wallstreet'); ?></p>
  188.    
  189.     <p><h4 class="heading"><label><?php _e('RSS URL','wallstreet');?></label></h4>
  190.     <input style="width:70%; padding: 10px;"  name="rss_meta_save" id="rss_meta_save" placeholder="<?php _e("RSS URL","wallstreet"); ?>" value="<?php if(!empty($rss_meta_save)) echo esc_attr($rss_meta_save); ?>"/>
  191.     <input type="checkbox" name="rss_meta_save_chkbx" id="rss_meta_save_chkbx" <?php if($rss_meta_save_chkbx){echo "checked";}?> /><?php _e('Open link in new tab','wallstreet'); ?></p>
  192.    
  193.     <p><h4 class="heading"><label><?php _e('LinkedIn URL','wallstreet');?></label></h4>
  194.     <input style="width:70%;padding: 10px;"  name="lnkd_meta_save" id="lnkd_meta_save" placeholder="<?php _e("LinkedIn URL","wallstreet"); ?>" value="<?php if(!empty($lnkd_meta_save)) echo esc_attr($lnkd_meta_save); ?>"/>
  195.     <input type="checkbox" name="lnkd_meta_save_chkbx" id="lnkd_meta_save_chkbx" <?php if($lnkd_meta_save_chkbx){echo "checked";}?> /><?php _e('Open link in new tab','wallstreet'); ?></p>
  196.    
  197.     <p><h4 class="heading"><?php _e('Twitter URL','wallstreet')?></h4>   
  198.      <p><input style="width:70%; padding: 10px;"  name="twt_meta_save" id="twt_meta_save" placeholder="<?php _e("Twitter URL","wallstreet"); ?>"  value="<?php if(!empty($twt_meta_save)) echo esc_attr($twt_meta_save); ?>"/> 
  199.     <input type="checkbox" name="twt_meta_save_chkbx" id="twt_meta_save_chkbx" <?php if($twt_meta_save_chkbx){echo "checked";}?> /><?php _e('Open link in new tab','wallstreet'); ?></p>
  200.     <?php
  201.     }
  202.         function wallstreet_meta_client()
  203.     {
  204.        global $post;
  205.         $client_link = ( get_post_meta( get_the_ID(), 'clientstrip_link', true ));
  206.         $meta_client_target =( get_post_meta( get_the_ID(), 'meta_client_target', true )); 
  207.     ?>
  208.         <p><h4 class="heading"><?php _e('Link','wallstreet');?></h4>
  209.     <p><input class="inputwidth"  name="client_link" id="client_link" style="width: 480px" placeholder="<?php _e('Link','wallstreet'); ?>"
  210.     type="text" value="<?php if (!empty($client_link)) echo esc_attr($client_link);?>"></input></p>
  211.     <p><input type="checkbox" id="meta_client_target" name="meta_client_target" <?php if($meta_client_target) echo "checked"; ?> > <?php _e('Open link in new tab','wallstreet'); ?></p>   
  212.    
  213.    
  214.         <p><label><?php _e('Upload client image using feature image. Best fit scenario is using 130 X 130 px image.','wallstreet'); ?></label></p>
  215.     <?php
  216.     }
  217.    
  218.  
  219. function wallstreet_meta_save($post_id)
  220. {  
  221.     if((defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) || (defined('DOING_AJAX') && DOING_AJAX) || isset($_REQUEST['bulk_edit']))
  222.         return;
  223.        
  224.     if ( ! current_user_can( 'edit_page', $post_id ) )
  225.     {     return ;  }      
  226.     if(isset($_POST['post_ID']))
  227.     {  
  228.         $post_ID = $_POST['post_ID'];              
  229.         $post_type=get_post_type($post_ID);
  230.         if($post_type=='wallstreet_slider'){       
  231.             update_post_meta($post_ID, 'slider_title', ($_POST['slider_title']));
  232.             update_post_meta($post_ID, 'slider_description', ($_POST['slider_description']));
  233.             update_post_meta($post_ID, 'slider_button_text', ($_POST['slider_button_text']));
  234.             update_post_meta($post_ID, 'slider_button_link', ($_POST['slider_button_link']));
  235.             update_post_meta($post_ID, 'slider_button_target', ($_POST['slider_button_target']));
  236.         }
  237.         else if($post_type=='wallstreet_service'){                         
  238.             update_post_meta($post_ID, 'service_icon_image', ($_POST['service_icon_image']));
  239.             update_post_meta($post_ID, 'service_icon_target', ($_POST['service_icon_target']));
  240.             update_post_meta($post_ID, 'meta_service_link', ($_POST['meta_service_link']));
  241.             update_post_meta($post_ID, 'meta_service_target', ($_POST['meta_service_target']));
  242.             update_post_meta($post_ID, 'service_description_text', ($_POST['service_description_text']));
  243.             update_post_meta($post_ID, 'service_readmore_text', ($_POST['service_readmore_text']));
  244.            
  245.         }      
  246.         else if($post_type=='wallstreet_portfolio'){       
  247.             update_post_meta($post_ID, 'portfolio_client_project_title', ($_POST['portfolio_client_project_title']));
  248.             update_post_meta($post_ID, 'meta_project_target', ($_POST['meta_project_target']));
  249.             update_post_meta($post_ID, 'meta_project_link', ($_POST['meta_project_link']));
  250.             update_post_meta($post_ID, 'portfolio_project_visit_site', ($_POST['portfolio_project_visit_site']));
  251.             update_post_meta($post_ID, 'portfolio_project_button_text', ($_POST['portfolio_project_button_text']));
  252.             update_post_meta($post_ID, 'portfolio_project_summary', ($_POST['portfolio_project_summary']));
  253.             update_post_meta($post_ID, 'meta_button_target', ($_POST['meta_button_target']));
  254.             update_post_meta($post_ID, 'meta_button_link', ($_POST['meta_button_link']));
  255.              
  256.         }      
  257.         else if($post_type=='page'){
  258.             update_post_meta($post_ID, 'page_description', ($_POST['page_description']));
  259.             update_post_meta($post_ID, 'content_page_layout', ($_POST['content_page_layout']));
  260.         }
  261.         elseif($post_type=='post'){
  262.             update_post_meta($post_ID, 'post_description', ($_POST['post_description']));
  263.             update_post_meta($post_ID, 'content_post_layout', ($_POST['content_post_layout']));
  264.         }
  265.         else if($post_type=='wallstreet_testi') {
  266.             update_post_meta($post_ID, 'testimonial_description_text', ($_POST['testimonial_description_text']));
  267.         }
  268.         else if($post_type=='wallstreet_team') {
  269.             update_post_meta($post_ID, 'designation_meta_save', ($_POST['designation_meta_save']));
  270.             update_post_meta($post_ID, 'description_meta_save', ($_POST['description_meta_save']));
  271.             update_post_meta($post_ID, 'fb_meta_save', ($_POST['fb_meta_save']));
  272.             update_post_meta($post_ID, 'fb_meta_save_chkbx', ($_POST['fb_meta_save_chkbx']));
  273.             update_post_meta($post_ID, 'skype_meta_save', ($_POST['skype_meta_save']));
  274.             update_post_meta($post_ID, 'skype_meta_save_chkbx', ($_POST['skype_meta_save_chkbx']));
  275.             update_post_meta($post_ID, 'google_meta_save', ($_POST['google_meta_save']));
  276.             update_post_meta($post_ID, 'google_meta_save_chkbx', ($_POST['google_meta_save_chkbx']));
  277.             update_post_meta($post_ID, 'rss_meta_save', ($_POST['rss_meta_save']));
  278.             update_post_meta($post_ID, 'rss_meta_save_chkbx', ($_POST['rss_meta_save_chkbx']));
  279.             update_post_meta($post_ID, 'lnkd_meta_save', ($_POST['lnkd_meta_save']));
  280.             update_post_meta($post_ID, 'lnkd_meta_save_chkbx', ($_POST['lnkd_meta_save_chkbx']));          
  281.             update_post_meta($post_ID, 'twt_meta_save', ($_POST['twt_meta_save']));
  282.             update_post_meta($post_ID, 'twt_meta_save_chkbx', ($_POST['twt_meta_save_chkbx']));
  283.             }
  284.            
  285.         elseif($post_type=='wallstreet_client'){   
  286.                 update_post_meta($post_ID, 'clientstrip_link', ($_POST['client_link']));
  287.                 update_post_meta($post_ID, 'meta_client_target', ($_POST['meta_client_target']));
  288.                 }  
  289.     }          
  290. }
  291. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top