示例#1
0
 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);
     break;
 case 'hubs':
     $title = "SubLite – Meet and Socialize with Students Working in Your City";
     Metatags::bothTitles($title);
     Metatags::ogImage("https://sublite.net/app/assets/gfx/socialmain.jpg");
     Metatags::ogDescription("Get your questions answered and make new friends this summer!");
     Metatags::ogImageWidth(1677);