// unobtrusive JS - moved here from external e_css.php e107::getJs()->renderJs('header', 5); /* * Fire Event e107:loaded - Prototype only */ //\$('e-js-css').remove(); /* e107::js('inline'," document.observe('dom:loaded', function () { e107Event.trigger('loaded', null, document); }); ",'prototype',5); */ e107::getJs()->renderJs('header_inline', 5); echo "</head>\n<body" . $body_onload . ">\n"; echo getModal(); echo getAlert(); function getModal($caption = '', $type = '') { if (deftrue('BOOTSTRAP') === 3) { return ''; } if (e_PAGE == 'menus.php' && vartrue($_GET['configure'])) { return; } if (e_PAGE == "image.php") { // return; } return ' <div id="uiModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
$type = rwmb_meta("resource_type"); $resourceLink = rwmb_meta("resource_link"); $embed = rwmb_meta("resource_embed"); $resource = " <div class='col-xs-12'> <div class='resource text-center center-block'> <img class='stretch spc-btm' src='" . wp_get_attachment_image_src(get_post_thumbnail_id(), "full")[0] . "'/> <p class='white-color'>" . get_the_title() . "</p> <a class='btn btn-results'" . getLink($embed, $resourceLink) . ">" . $resourceButtonLabels[$type] . "</a> </div> </div> "; if($embed) $resource .= getModal($resourceLink); array_push($types[$type], $resource); } foreach($types as $key=>$type) { $columns = array_fill(0, 4, ""); $i = 0; foreach($type as $resource) { $columns[$i % 4] .= $resource; $i++; } echo " <div class='col-xs-12'>