Skip to content

Instantly share code, notes, and snippets.

@kraigh
Created September 11, 2012 19:49
Show Gist options
  • Save kraigh/3701542 to your computer and use it in GitHub Desktop.
Save kraigh/3701542 to your computer and use it in GitHub Desktop.
jnet5
function jnet5_preprocess_panels_pane(&$vars) {
$tgpath = '/tg'
$hrpath = '/hr'
$wcpath = '/wc'
$blpath = '/bl'
$visitmenu = '<div href="#" class="button radius dropdown">Visit A Church<ul><li><a href="' . $tgpath . '">Tower Grove</a></li><li><a href="' . $hrpath . '">Hanley Road</a></li><li><a href="' . $wcpath . '">West County</a></li><li><a href="' . $blpath . '">Belleville</a></li></ul></div>';
$vars['content'] = str_replace('[visit_a_church]', $visitmenu, $vars['content']);
$selectmenu = '<div href="#" class="button radius dropdown">Select A Church<ul><li><a href="' . $tgpath . '">Tower Grove</a></li><li><a href="' . $hrpath . '">Hanley Road</a></li><li><a href="' . $wcpath . '">West County</a></li><li><a href="' . $blpath . '">Belleville</a></li></ul></div>';
$vars['content'] = str_replace('[select_a_church]', $selectmenu, $vars['content']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment