static function ModifyPostTitle($title, $id)
 {
     if (is_feed()) {
         return $title;
     }
     $sth = current_theme_supports('menus');
     if (self::$navMenuBegin && $sth) {
         return '<span class="gfcustomizedmenuitem ' . self::$navMenuClass . '">' . $title . "</span>";
     }
     $post = get_post($id);
     if ($post->post_type != 'post' && $post->post_type != 'page') {
         return $title;
     }
     $force = (bool) get_option('gf_title_live_preview_' . get_current_user_id(), true);
     if (is_front_page() || is_page() || is_single() || $force && self::$changeTitle) {
         $ctf = get_post_meta($id, 'gf_custom_title_font');
         $ctfs = get_post_meta($id, 'gf_custom_title_font_size');
         $ctfb = get_post_meta($id, 'gf_custom_title_font_bold');
         $ctfi = get_post_meta($id, 'gf_custom_title_font_italic');
         $ctfc = get_post_meta($id, 'gf_custom_title_font_color');
         $ctfu = get_post_meta($id, 'gf_custom_title_font_underline');
         $ctfsv = get_post_meta($id, 'gf_custom_title_font_shadow_vertical');
         $ctfsh = get_post_meta($id, 'gf_custom_title_font_shadow_horizontal');
         $ctfsb = get_post_meta($id, 'gf_custom_title_font_shadow_blur');
         $ctfsc = get_post_meta($id, 'gf_custom_title_font_shadow_color');
         $ctf = isset($ctf[0]) ? $ctf[0] : "";
         $ctfs = isset($ctfs[0]) ? $ctfs[0] : "";
         $ctfb = isset($ctfb[0]) ? $ctfb[0] : "";
         $ctfi = isset($ctfi[0]) ? $ctfi[0] : "";
         $ctfc = isset($ctfc[0]) ? $ctfc[0] : "";
         $ctfu = isset($ctfc[0]) ? $ctfu[0] : "";
         $ctfsv = isset($ctfsv[0]) ? intval($ctfsv[0]) : "0";
         $ctfsh = isset($ctfsh[0]) ? intval($ctfsh[0]) : "0";
         $ctfsb = isset($ctfsb[0]) ? intval($ctfsb[0]) : "0";
         $ctfsc = isset($ctfsc[0]) ? $ctfsc[0] : $ctfc;
         $style = self::BuildTitleStyles($ctf, $ctfs, $ctfc, $ctfb, $ctfi, $ctfu, $ctfsv, $ctfsh, $ctfsb, $ctfsc, '', false);
         if ($style != '') {
             $title = sprintf("<span style=\"%s\" class=\"gfcustomized\">%s</span>", $style, $title);
         } else {
             if (self::$defaultTitlePreset === false) {
                 $d = GFontsDB::GetDefaultTitlePreset();
                 self::$defaultTitlePreset = $d;
             }
             if (self::$defaultTitlePreset !== null) {
                 $d = self::$defaultTitlePreset;
                 $ctf = $d->font != '' ? $d->font : "";
                 $ctfs = $d->title_size != '' ? $d->title_size : "";
                 $ctfb = $d->title_bold != '' ? $d->title_bold : "";
                 $ctfi = $d->title_italic != '' ? $d->title_italic : "";
                 $ctfc = $d->title_color != '' ? $d->title_color : "";
                 $ctfu = $d->title_underline != '' ? $d->title_underline : "";
                 $ctfsv = $d->title_shadow_vertical != '' ? $d->title_shadow_vertical : "0";
                 $ctfsh = $d->title_shadow_horizontal != '' ? $d->title_shadow_horizontal : "0";
                 $ctfsb = $d->title_shadow_blur != '' ? $d->title_shadow_blur : "0";
                 $ctfsc = $d->title_shadow_color != '' ? $d->title_shadow_color : "0";
                 $ctfc;
                 $style = self::BuildTitleStyles($ctf, $ctfs, $ctfc, $ctfb, $ctfi, $ctfu, $ctfsv, $ctfsh, $ctfsb, $ctfsc, '', false);
                 if ($style != '') {
                     $title = sprintf("<span style=\"%s\" class=\"gfcustomized\">%s</span>", $style, $title);
                 }
             }
         }
     }
     //
     return $title;
 }