示例#1
0
     Metatags::ogImage($photo);
     Metatags::ogImageType('image/jpeg');
     Metatags::ogImageWidth($width);
     Metatags::ogImageHeight($height);
     Metatags::ogDescription("Apply to the {$title} position on SubLite!");
     Metatags::title("{$title} at {$name} – SubLite");
     break;
 case 'companyprofile':
     $name = View::get('name');
     $photo = View::get('logophoto');
     if (!$photo) {
         $photo = 'https://sublite.net/app/assets/gfx/defaultpic.png';
     }
     list($width, $height) = getimagesize($photo);
     $desc = View::get('desc');
     Metatags::ogTitle("Check out {$name} on SubLite!");
     Metatags::ogImageSecureUrl($photo);
     Metatags::ogImage($photo);
     Metatags::ogImageType('image/jpeg');
     Metatags::ogImageWidth($width);
     Metatags::ogImageHeight($height);
     Metatags::ogDescription($desc);
     Metatags::title("{$name} – Company profile on SubLite");
     break;
 case '/employers':
     $title = "SubLite – Your One-Stop Shop for a Great Summer!";
     Metatags::bothTitles($title);
     Metatags::ogImage("https://sublite.net/app/assets/gfx/studentmain.jpg");
     Metatags::ogDescription("Attract the New Generation Talent with your Company's Unique Personality.");
     Metatags::ogImageWidth(1677);
     Metatags::ogImageHeight(1118);