<ul id="ads-between-posts"> <li class="adspace"><?php iinclude_page(8689); ?> </li> <li class="adspace"><?php iinclude_page(8694); ?> </li> </ul> <div class="fix"></div>
ec3_get_events2('100', '<div class="entry"> <h3 class="entrytitle"><a rel="bookmark" href="%LINK%" title="%TITLE%">%TITLE%</a></h3> <div class="entrybody"> <div class="event_datetime">%DATE%%TIME%</div> </div> </div>', ''); } // ec3_get_events2 ?> </div> <div class="sb-about"> <h2>About</h2> <?php if (function_exists('iinclude_page')) { iinclude_page('sidebar-about-us'); } ?> </div> <!-- [sb-about] --> <div id="sidebar1"> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) { ?> <h2><?php _e('Categories'); ?> </h2>
/** * Manage WP Shortcode API */ function shortcode_handler($atts, $content = null) { global $post; if (!function_exists('add_shortcode')) { return false; } $out = ''; $params = array(); // Parsing parameters other than ID foreach ($atts as $name => $value) { // WP transforms all attributes in lowercase // re-setting normal case switch ($name) { case 'displaystyle': $name = 'displayStyle'; break; case 'displaytitle': $name = 'displayTitle'; if ($value == "false") { $value = false; } break; case 'titlebefore': $name = 'titleBefore'; break; case 'titleafter': $name = 'titleAfter'; break; case 'allowstatus': $name = 'allowStatus'; break; case 'allowtype': $name = 'allowType'; break; default: continue; } // end switch if ($name != 'id') { $params[] .= $name . '=' . html_entity_decode($value); } // end if $out .= "{$name} = {$value} "; } // end foreach // Call IIP only with a valid ID if (!empty($atts['id']) && $post->ID != $atts['id']) { // Fix type of page ID (thanks to Mike Woods) $page_id = $atts['id']; if (is_numeric($atts['id'])) { $page_id = (int) $atts['id']; } $out = iinclude_page($page_id, implode('&', $params), true); } else { $out = ''; } // end if return $out; }