Skip to content

Instantly share code, notes, and snippets.

@jaspertandy
Created December 2, 2011 11:44
Show Gist options
  • Save jaspertandy/1422956 to your computer and use it in GitHub Desktop.
Save jaspertandy/1422956 to your computer and use it in GitHub Desktop.
case "casestudy":
$meta = getmeta($info->id, 'casestudy');
$title = $meta->meta_title;
$link = "casestudy/".$info->url;
$backtrace .= ' &gt; <a href="/casestudies-hub/">Case Studies</a>';
break;
case "faq":
$title = $info->question;
$link = "faq/";
$backtrace .= ' &gt; <a href="/faq/">FAQs</a>';
break;
case "manufacturers":
$meta = getmeta($info->id, 'manufacturer');
$title = $meta->meta_title;
$link = "product-manufacturer/".$info->url;
$backtrace .= ' &gt; <a href="/products-hub/">Products</a>';
break;
case "news":
$meta = getmeta($info->id, 'news');
$title = $meta->meta_title;
$link = "news-article/".$info->url;
$backtrace .= ' &gt; <a href="/news/">News</a>';
break;
case "pages":
$meta = getmeta($info->id, 'page');
$title = $meta->meta_title;
$link = $info->url;
$backtrace .= ' &gt; <a href="/'.$info->url.'">'.$info->name.'</a>';
break;
case "products":
$title = $info->name;
$link = "product-manufacturer/".$info->manufacturer."/".$info->id;
$backtrace .= ' &gt; <a href="/products-hub/">Products</a>';
break;
case "resources":
$meta = getmeta($info->id, 'resources');
$title = $meta->meta_title;
$link = "resources";
$backtrace .= ' &gt; <a href="/resources/">Resources</a>';
break;
case "sectors":
$meta = getmeta($info->id, 'sector');
$title = $meta->meta_title;
$area = $db->getRow("SELECT `area_name` FROM `area` WHERE `id` = ".$info->area);
$link = "sectors/".strtolower($area->area_name)."/".$info->url;
$backtrace .= ' &gt; <a href="/sector-hub/">Sectors</a>';
break;
case "team":
$meta = getmeta($info->id, 'team');
$title = $meta->meta_title;
$link = "team-profile/".$info->id;
$backtrace .= ' &gt; <a href="/team-hub/">Our Team</a>';
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment