Ejemplo n.º 1
0
 /**
  * Actually generate the dynamic CSS specified by the Post Options
  * @return string
  */
 static function get_post_options_css()
 {
     ob_start();
     global $post;
     if ($post) {
         $hide_subheader = get_post_meta($post->ID, '_peach_hide_subheader', true);
         if ($hide_subheader) {
             echo 'header.jumbotron {display: none;}';
         }
         //add page background
         $hide_subheader = get_post_meta($post->ID, '_peach_hide_subheader', true);
         AdapThemeOptions::page_background();
     }
     $ret_val = ob_get_contents();
     ob_end_clean();
     return $ret_val;
 }