/* Template Name: Film Detail Template */ $year = 2010; $feststartdate = "2010-02-26"; $equalize = true; //$schit = $_GET['schit']; include TEMPLATEPATH . '/header.php'; ?> <div class="container" id="equalize"> <?php $found_film = false; global $pods; $film_slug = pods_url_variable('last'); $film2 = $film = new Pod('film_info', $film_slug); if (!empty($film->data)) { $found_film = true; // set our variables $id = $film->get_field('id'); $name = $film->get_field('name'); $sliderstill = $film->get_field('sliderstill.guid'); $customposter = $film->get_field('customposter.guid'); $customimage480 = $film->get_field('customimage640.guid'); $image640 = $film->get_field('image640'); $threedee = $film->get_field('threedee'); $rating = $film->get_field('rating'); $length = $film->get_field('length'); $sr = $film->get_field('sr'); $copyright = $film->get_field('copyright');
<div class="col-lg-12 col-md-12 white"> <div class="row"> <div class='breadcrumbs'> <?php if (function_exists('bcn_display') && !is_front_page()) { bcn_display(); } ?> </div> </div> <h1>A to Z</h1> <ul class="pagination"> <?php $slug = pods_url_variable(-1); //fill the default a to z array $letters = range('a', 'z'); $letterlink = array(); $hasentries = array(); foreach ($letters as $l) { $letterlink[$l] = "<li class='disabled'><a>" . strtoupper($l) . "</a></li>"; } $terms = get_terms('atoz'); if ($terms) { foreach ((array) $terms as $taxonomy) { $letterlink[$taxonomy->slug] = "<li"; if (strtolower($slug) == strtolower($taxonomy->slug)) { $letterlink[$taxonomy->slug] .= " class='active'"; } $letterlink[$taxonomy->slug] .= "><a href='" . site_url() . "/atoz/" . $taxonomy->slug . "/'>" . strtoupper($taxonomy->name) . "</a></li>";
$TRACE_ENABLED = is_user_logged_in(); global $pods; /* URI: /media/objects/articles/<article-slug>[?lang=<language>] */ $pod_slug = get_post_meta($post->ID, 'pod_slug', true); if ($pod_slug) { $pod = new Pod('article', $pod_slug); $pod_from_page = true; } else { $pod = new Pod('article', pods_url_variable(3)); $pod_from_page = false; } global $pods_toplevel_ancestor; $pods_toplevel_ancestor = 309; global $nav_show_conferences; $nav_show_conferences = $pod_from_page; $lang = strtolower(pods_url_variable('lang', 'get')); $article_lang2 = $pod->get_field('language.slug'); $article_layout = $pod->get_field('layout'); global $publication_pod; $publication_pod = new Pod('publication_wrappers', $pod->get_field('in_publication.id')); // grab the image URI from the Pod $featured_image_uri = honor_ssl_for_attachments($pod->get_field('heading_image.guid')); if ($TRACE_ENABLED) { error_log('request_language: ' . $lang); } if ($TRACE_ENABLED) { error_log('article_lang2: ' . $article_lang2); } if (!empty($lang) && $lang == $article_lang2) { $article_title = $pod->get_field('title_lang2'); $article_subtitle = $pod->get_field('subtitle_lang2');
function oo_get_gallery_crumb() { global $gallery_crumb_done; if ($gallery_crumb_done) { return ''; } $slug = array(); $title = array(); $html = array(); $i = 0; $s = pods_url_variable($i); $url = ''; if ($s == "party-ideas") { while ($s != '') { $slug[$i] = $s; $page = get_page_by_path($page_slug); if ($page) { $title[$i] = get_the_title($page->ID); } else { $title[$i] = ucwords(strtolower(str_replace('-', ' ', $slug[$i]))); } $url .= "/" . $slug[$i]; $html[$i] = "<a href=\"{$url}\">{$title[$i]}</a>"; $i++; $s = pods_url_variable($i); } $crumb = implode(' / ', $html); $safe_crumb = base64_encode(serialize($crumb)); setcookie('crumb', $safe_crumb, 0, '/'); } else { $crumb = unserialize(base64_decode($_COOKIE['crumb'])); } $gallery_crumb_done = true; return '<p class="crumb">Back to: ' . $crumb . '</p>'; }
function my_colorful_tag_cloud($cat_id, $tc_tax, $tc_post_type) { $defaults = array('smallest' => 12, 'largest' => 24, 'unit' => 'pt', 'number' => 45, 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true); if (pods_url_variable(0) == 'tasks' || pods_url_variable(0) == 'how-do-i') { $defaults = array('smallest' => 12, 'largest' => 28, 'unit' => 'pt', 'number' => 90, 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true); } $args = wp_parse_args($args, $defaults); global $wpdb; if ($cat_id != "") { $tquery = $wpdb->prepare("SELECT DISTINCT terms2.term_id as term_id, terms2.name as name, terms2.slug as link, t2.count as count, t2.term_taxonomy_id as term_taxonomy_id, 0 as term_group, 'post_tag' as taxonomy FROM {$wpdb->posts} as p1 LEFT JOIN {$wpdb->term_relationships} as r1 ON p1.ID = r1.object_ID LEFT JOIN {$wpdb->term_taxonomy} as t1 ON r1.term_taxonomy_id = t1.term_taxonomy_id LEFT JOIN {$wpdb->terms} as terms1 ON t1.term_id = terms1.term_id, {$wpdb->posts} as p2 LEFT JOIN {$wpdb->term_relationships} as r2 ON p2.ID = r2.object_ID LEFT JOIN {$wpdb->term_taxonomy} as t2 ON r2.term_taxonomy_id = t2.term_taxonomy_id LEFT JOIN {$wpdb->terms} as terms2 ON t2.term_id = terms2.term_id WHERE ( t1.taxonomy = '%s' AND p1.post_status = 'publish' AND p1.post_type = '%s' AND terms1.term_id = '%s' AND t2.taxonomy = 'post_tag' AND p2.post_status = 'publish' AND p1.ID = p2.ID ) ORDER BY t2.count desc limit 90", $tc_tax, $tc_post_type, $cat_id); } else { $tquery = $wpdb->prepare("SELECT DISTINCT terms2.term_id as term_id, terms2.name as name, terms2.slug as link, t2.count as count, t2.term_taxonomy_id as term_taxonomy_id, 0 as term_group, 'post_tag' as taxonomy FROM {$wpdb->posts} as p1 LEFT JOIN {$wpdb->term_relationships} as r1 ON p1.ID = r1.object_ID LEFT JOIN {$wpdb->term_taxonomy} as t1 ON r1.term_taxonomy_id = t1.term_taxonomy_id LEFT JOIN {$wpdb->terms} as terms1 ON t1.term_id = terms1.term_id, {$wpdb->posts} as p2 LEFT JOIN {$wpdb->term_relationships} as r2 ON p2.ID = r2.object_ID LEFT JOIN {$wpdb->term_taxonomy} as t2 ON r2.term_taxonomy_id = t2.term_taxonomy_id LEFT JOIN {$wpdb->terms} as terms2 ON t2.term_id = terms2.term_id WHERE ( t1.taxonomy = '%s' AND p1.post_status = 'publish' AND p1.post_type = '%s' AND t2.taxonomy = 'post_tag' AND p2.post_status = 'publish' AND p1.ID = p2.ID ) ORDER BY t2.count desc limit 90", $tc_tax, $tc_post_type); } if ($tc_post_type == 'projects') { $tquery = "\n\t\t\t\t\t\tSELECT DISTINCT\n\t\t\t\t\t\t{$wpdb->terms}.term_id,\n\t\t\t\t\t\t{$wpdb->terms}.name,\n\t\t\t\t\t\t{$wpdb->terms}.slug,\n\t\t\t\t\t\t{$wpdb->term_taxonomy}.count,\n\t\t\t\t\t\t{$wpdb->term_taxonomy}.term_taxonomy_id,\n\t\t\t\t\t\t0 as term_group,\n\t\t\t\t\t\t'post_tag' as taxonomy\nFROM\t\t\t\t{$wpdb->posts}, {$wpdb->term_taxonomy}, {$wpdb->term_relationships}, {$wpdb->terms}\nWHERE\t\t\t\t{$wpdb->posts}.post_type = 'projects' AND\n\t\t\t\t\t{$wpdb->posts}.post_status = 'publish' AND\n\t\t\t\t\t{$wpdb->posts}.id = {$wpdb->term_relationships}.object_id AND\n\t\t\t\t\t{$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id AND\n\t\t\t\t\t{$wpdb->term_taxonomy}.taxonomy = 'post_tag' AND\n\t\t\t\t\t{$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id AND\n\t\t\t\t\t{$wpdb->term_taxonomy}.count > 0\n\t\t\t\t\tlimit 45\n\t\t\t\t\t\n\t\t\t\t\t\t"; } if ($tc_post_type == 'vacancies') { $tquery = "\n\t\t\t\t\t\tSELECT DISTINCT\n\t\t\t\t\t\t{$wpdb->terms}.term_id,\n\t\t\t\t\t\t{$wpdb->terms}.name,\n\t\t\t\t\t\t{$wpdb->terms}.slug,\n\t\t\t\t\t\t{$wpdb->term_taxonomy}.count,\n\t\t\t\t\t\t{$wpdb->term_taxonomy}.term_taxonomy_id,\n\t\t\t\t\t\t0 as term_group,\n\t\t\t\t\t\t'post_tag' as taxonomy\nFROM\t\t\t\t{$wpdb->posts}, {$wpdb->term_taxonomy}, {$wpdb->term_relationships}, {$wpdb->terms}\nWHERE\t\t\t\t{$wpdb->posts}.post_type = 'vacancies' AND\n\t\t\t\t\t{$wpdb->posts}.post_status = 'publish' AND\n\t\t\t\t\t{$wpdb->posts}.id = {$wpdb->term_relationships}.object_id AND\n\t\t\t\t\t{$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id AND\n\t\t\t\t\t{$wpdb->term_taxonomy}.taxonomy = 'post_tag' AND\n\t\t\t\t\t{$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id AND\n\t\t\t\t\t{$wpdb->term_taxonomy}.count > 0\n\t\t\t\t\tlimit 45\n\t\t\t\t\t\n\t\t\t\t\t\t"; } if ($tc_post_type == 'event') { $tquery = "\n\t\t\t\t\t\tSELECT DISTINCT\n\t\t\t\t\t\t{$wpdb->terms}.term_id,\n\t\t\t\t\t\t{$wpdb->terms}.name,\n\t\t\t\t\t\t{$wpdb->terms}.slug,\n\t\t\t\t\t\t{$wpdb->term_taxonomy}.count,\n\t\t\t\t\t\t{$wpdb->term_taxonomy}.term_taxonomy_id,\n\t\t\t\t\t\t0 as term_group,\n\t\t\t\t\t\t'post_tag' as taxonomy\nFROM\t\t\t\t{$wpdb->posts}, {$wpdb->term_taxonomy}, {$wpdb->term_relationships}, {$wpdb->terms}\nWHERE\t\t\t\t{$wpdb->posts}.post_type = 'event' AND\n\t\t\t\t\t{$wpdb->posts}.post_status = 'publish' AND\n\t\t\t\t\t{$wpdb->posts}.id = {$wpdb->term_relationships}.object_id AND\n\t\t\t\t\t{$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id AND\n\t\t\t\t\t{$wpdb->term_taxonomy}.taxonomy = 'post_tag' AND\n\t\t\t\t\t{$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id AND\n\t\t\t\t\t{$wpdb->term_taxonomy}.count > 0\n\t\t\t\t\tlimit 45\n\t\t\t\t\t\n\t\t\t\t\t\t"; } $tags = $wpdb->get_results($tquery); // $tags = get_terms( $args['taxonomy'], array_merge( $args, array( 'orderby' => 'count', 'order' => 'DESC' ) ) ); // Always query top tags //print_r($tags); if (empty($tags) || is_wp_error($tags)) { return; } foreach ($tags as $key => $tag) { $link = get_term_link(intval($tag->term_id), $tag->taxonomy); if (is_wp_error($link)) { return false; } $tags[$key]->link = $link; $tags[$key]->id = $tag->term_id; } $defaults = array('smallest' => 12, 'largest' => 24, 'unit' => 'pt', 'number' => 0, 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'topic_count_text_callback' => 'default_topic_count_text', 'topic_count_scale_callback' => 'default_topic_count_scale', 'filter' => 1); if (!isset($args['topic_count_text_callback']) && isset($args['single_text']) && isset($args['multiple_text'])) { $body = 'return sprintf ( _n(' . var_export($args['single_text'], true) . ', ' . var_export($args['multiple_text'], true) . ', $count), number_format_i18n( $count ));'; $args['topic_count_text_callback'] = create_function('$count', $body); } $args = wp_parse_args($args, $defaults); extract($args); if (empty($tags)) { return; } $tags_sorted = apply_filters('tag_cloud_sort', $tags, $args); if ($tags_sorted != $tags) { // the tags have been sorted by a plugin $tags = $tags_sorted; unset($tags_sorted); } else { if ('RAND' == $order) { shuffle($tags); } else { // SQL cannot save you; this is a second (potentially different) sort on a subset of data. if ('name' == $orderby) { uasort($tags, '_wp_object_name_sort_cb'); } else { uasort($tags, '_wp_object_count_sort_cb'); } if ('DESC' == $order) { $tags = array_reverse($tags, true); } } } if ($number > 0) { $tags = array_slice($tags, 0, $number); } $counts = array(); $real_counts = array(); // For the alt tag foreach ((array) $tags as $key => $tag) { $real_counts[$key] = $tag->count; $counts[$key] = $topic_count_scale_callback($tag->count); } $min_count = min($counts); $spread = max($counts) - $min_count; if ($spread <= 0) { $spread = 1; } $font_spread = $largest - $smallest; if ($font_spread < 0) { $font_spread = 1; } $font_step = $font_spread / $spread; $a = array(); $colors = 6; foreach ($tags as $key => $tag) { $count = $counts[$key]; $real_count = $real_counts[$key]; $pstyp = ''; if (pods_url_variable(1) == 'projects') { $pstyp = '?posttype=projects'; } if (pods_url_variable(1) == 'vacancies') { $pstyp = '?posttype=vacancies'; } if (pods_url_variable(0) == 'task-by-category') { $pstyp = '?posttype=task'; } if (pods_url_variable(0) == 'news-by-category') { $pstyp = '?posttype=news'; } if (pods_url_variable(0) == 'tasks') { $pstyp = '?posttype=task'; } if (pods_url_variable(0) == 'how-do-i') { $pstyp = '?posttype=task'; } if (pods_url_variable(0) == 'newspage') { $pstyp = '?posttype=news'; } $tag_link = '#' != $tag->link ? esc_url($tag->link) . $pstyp : '#'; $tag_id = isset($tags[$key]->id) ? $tags[$key]->id : $key; $tag_name = $tags[$key]->name; $min_color = "#5679b9"; $max_color = "#af1410"; $color = round($smallest + ($count - $min_count) * $font_step - ($smallest - 1)); $basecol = HTMLToRGB('#3a6f9e'); $scolor = ChangeLuminosity($basecol, 60 - $color * 3.3); $scolor = RGBToHTML($scolor); $class = 'color-' . round($smallest + ($count - $min_count) * $font_step - ($smallest - 1)); $tag_link = explode("/", $tag_link); $tag_link = $tag_link[4]; $a[] = "<a href='" . site_url() . "/tagged/?tag=" . $tag_link . "' style='font-size: " . str_replace(',', '.', $smallest + ($count - $min_count) * $font_step) . "{$unit}; color: " . $scolor . ";'>{$tag_name}</a>"; } $return = join($separator, $a); return apply_filters('wp_generate_tag_cloud', $return, $tags, $args); }
?> </ol> </nav> </div> </div> <div class="col-lg-6"> <div class="chapters"> <nav role="navigation" class="page-navigation"> <ol start='<?php echo $k; ?> '> <?php } echo "<li "; if (pods_url_variable(-1) == $chapt->post_name) { echo "class='active'"; $current_chapter = $k; } echo ">"; $chapname = govintranetpress_custom_title($chapt->post_title); $chapslug = $chapt->post_name; $carray[$k]['chapter_number'] = $k; $carray[$k]['slug'] = $chapslug; $carray[$k]['name'] = $chapname; if ($chapt['ID'] == $current_task) { echo "<span class='part-label part-title'>{$chapname}</span>"; } else { echo "<a href='" . site_url() . "/project/{$chapslug}'><span class='part-label part-title'>{$chapname}</span></a>"; } echo "</li>";
$img = str_replace('.png', '.jpg', $img); $img = str_replace('.tif', '.jpg', $img); $img = str_replace('.tiff', '.jpg', $img); } if ($img != "" || file_exists(ABSPATH . $img)) { if (!is_dir("{$img_dst_logo}/{$xpid}")) { mkdir("{$img_dst_logo}/{$xpid}", 0755); } echo "<p>{$xname}<br />{$img_base_path}{$img}<br />{$img_dst_logo}/{$xpid}/logo.jpg</p>"; copy($img_base_path . $img, "{$img_dst_logo}/{$xpid}/logo.jpg"); } } get_footer(); exit; } if (pods_url_variable(3) == 'pa') { get_header(); $profile = new Pod('vendor_profiles'); $active_user_id = get_active_user_id(); $profile->findRecords('id', -1, "t.id = '{$pid}' AND t.vendor = {$active_user_id}"); //$profile->findRecords( 'id', -1, "t.id = '$pid'"); $total = $profile->getTotalRows(); if ($total > 0) { $profile->fetchRecord(); $a = get_vendorfields($profile); load_vendorimages($profile, $a); } else { exit; } // first make our directories if (!is_dir("{$img_dst_source}/{$a['id']}")) {
* * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ ?> <?php /** * Pods initialization * URI: /media/objects/events/ */ global $pods; $TRACE_PODS_EVENTS_FRONTPAGE = true; // check if we are getting called via Pods (pods_url_variable is set) $pod_slug = pods_url_variable(3); if ($pod_slug) { $pod = new Pod('event', $pod_slug); } else { $pod_slug = get_post_meta($post->ID, 'pod_slug', true); $pod = new Pod('conference', $pod_slug); } if ($TRACE_PODS_EVENTS_FRONTPAGE) { error_log('pod_slug: ' . $pod_slug); } $button_links = $pod->get_field('links'); $slider = $pod->get_field('slider'); if (!$slider) { $featured_image_uri = get_the_post_thumbnail($post->ID, array(960, 367)); } ?>
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $show_modified_date = $instance['show_modified_date']; $show_published_date = $instance['show_published_date']; $show_author = $instance['show_author']; $showabout = false; if (is_single() || is_page()) { $showabout = true; } if (is_page() && pods_url_variable(0) == 'about') { $showabout = false; } if (pods_url_variable(0) == 'about' && pods_url_variable(1)) { $showabout = false; } if (pods_url_variable(0) == 'about' && pods_url_variable(2)) { $showabout = true; } if (pods_url_variable(0) == 'forum') { $showabout = false; } if (pods_url_variable(0) == 'topic') { $showabout = false; } if (pods_url_variable(0) == 'reply') { $showabout = false; } if (pods_url_variable(0) == 'task-by-category') { $showabout = false; } if (pods_url_variable(0) == 'news-by-category') { $showabout = false; } if (pods_url_variable(0) == 'newspage') { $showabout = false; } if (pods_url_variable(0) == 'how-do-i') { $showabout = false; } if (pods_url_variable(0) == 'tasks') { $showabout = false; } if (pods_url_variable(0) == 'events') { $showabout = false; } if (pods_url_variable(0) == 'tagged') { $showabout = false; } if ($showabout) { echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } $tzone = get_option('timezone_string'); date_default_timezone_set($tzone); if ($show_modified_date == 'on') { $sdate = human_time_diff_plus(get_the_modified_time('U')); if ($sdate == "0 mins") { $sdate = " just now"; } else { $sdate = $sdate . " ago"; } echo "Updated <time datetime='" . $sdate . "'>" . $sdate . "</time><br>"; } if ($show_published_date == 'on') { $sdate = date("j M Y", strtotime(get_the_date())); $sdate = human_time_diff_plus(get_the_time('U')); if ($sdate == "0 mins") { $sdate = " just now"; } else { $sdate = $sdate . " ago"; } echo "Published <time datetime='" . $sdate . "'>" . $sdate . "</time><br>"; } if ($show_author == 'on') { $useremail = get_the_author_meta('user_email'); echo "<a href='mailto:" . $useremail . "'>"; the_author(); echo "</a>"; } echo $after_widget; } }
</ol> </nav> </div> </div> <div class="col-lg-6 col-md-6"> <div class="chapters"> <nav role="navigation" class="page-navigation"> <ol start='<?php echo $k; ?> '> <?php } echo "<li "; if (pods_url_variable(-1) == $chapt['post_name']) { echo "class='active'"; $current_chapter = $k; } echo ">"; $chapname = govintranetpress_custom_title($chapt['post_title']); $chapslug = $chapt['post_name']; $carray[$k]['chapter_number'] = $k; $carray[$k]['slug'] = $chapslug; $carray[$k]['name'] = $chapname; if ($chapt['ID'] == $current_task) { echo "<span class='part-label part-title'>{$chapname}</span>"; } else { echo "<a href='" . site_url() . "/task/{$chapslug}'><span class='part-label part-title'>{$chapname}</span></a>"; } echo "</li>";
<?php /* Template Name: Vendor Guide */ include_once 'guide-functions.php'; ao_set_in_guide(true); // get our category from the URL //$guide = pods_url_variable(0); << will always be "atlanta" for now $cur_cat = pods_url_variable(1); $sub_cat = pods_url_variable(2); $sub_cat_name = ''; if ($cur_cat == '') { $cur_cat = 'home'; } // if there is no category default to the venue guide, redirect there. //if (!in_array($cur_cat, array('venues','dining', 'services', 'search')) ) { //if (($cur_cat == '') || ($cur_cat == 'services')) { // header('Location: http://www.atlantaoccasions.com/atlanta/venues'); // exit; //} if ($cur_cat == 'search') { // descriptions and SEO stuff normally comes from the database, but if it was a search, then // set the SEO titles here. $cur_title = 'Search Results for Professional Wedding and Event Vendors - OccasionsOnline.com'; $cur_head = 'Search Results'; $cur_desc = ''; } elseif ($cur_cat == 'home') { $cur_title = 'Atlanta Wedding, Atlanta Wedding Receptions, Atlanta Event Venues, Atlanta Wedding Photographers, Atlanta Caterers | Occasions Magazine - OccasionsOnline.com'; $cur_head = 'Search Results'; $cur_desc = ''; } else { // get our category meta infomation from the database
</li> <li><a href="/event-planning">Event Elements</a> <ul><?php echo preg_replace("/[\t\n\r\f\v]/", "", wp_list_categories('hide_empty=false&child_of=12&title_li=&echo=0')); ?> </ul> </li> <li><a href="/from-the-editor">Editor's Diary</a> <ul><li><a href="/from-the-editor">Editor's Blog</a></li><li><a href="http://pinterest.com/occasionsmag/" target="_blank">Follow us on Pinterest</a></li><li><a href="/weekend-guide">Weekend Guide</a></li><li><a href="/calendar">Recommended Events</a></li></ul> </li></ul></div> <!-- menubar --> <div id="submenubar"> <?php $section = pods_url_variable(0); $subsection = pods_url_variable(1); $subsubsection = pods_url_variable(2); if (!$section || array_search($section, array('x', 'atlanta', 'profile', 'party-ideas', 'events', 'featured-events', 'event-planning', 'from-the-editor', 'weekend-guide', 'calendar'))) { setcookie('AO3_SECTION', $section, time() + 60 * 60 * 24 * 30, '/'); setcookie('AO3_SUBSECTION', $subsection, time() + 60 * 60 * 24 * 30, '/'); } else { $section = $_COOKIE['AO3_SECTION']; $subsection = $_COOKIE['AO3_SUBSECTION']; } if ($section == 'atlanta' && $subsection == 'venues') { $submenu = array(array('title' => 'Types of Venues'), array('title' => 'Hotel Ballrooms', 'url' => '/atlanta/venues/hotel'), array('title' => 'Country Clubs', 'url' => '/atlanta/venues/country-club'), array('title' => 'Antebellum Homes', 'url' => '/atlanta/venues/antebellum-home'), array('title' => 'Outdoor', 'url' => '/atlanta/venues/outdoor'), array('title' => 'Rooftop', 'url' => '/atlanta/venues/rooftop'), array('title' => 'More . . .', 'url' => '/atlanta')); } elseif ($section == 'atlanta' || $section == 'profile') { $submenu = array(array('title' => 'Atlanta Vendors'), array('title' => 'Venues', 'url' => '/atlanta/venues'), array('title' => 'Photographers', 'url' => '/atlanta/photographers'), array('title' => 'Caterers', 'url' => '/atlanta/caterers'), array('title' => 'Planners', 'url' => '/atlanta/wedding-planners'), array('title' => 'Invitations', 'url' => '/atlanta/invitations'), array('title' => 'DJs', 'url' => '/atlanta/djs'), array('title' => 'Bands', 'url' => '/atlanta/bands'), array('title' => 'More . . .', 'url' => '/atlanta')); } elseif ($section == 'events' || $section == 'featured-events' || $section == 'party-ideas' && $subsubsection == 'baby-shower-ideas-party-themes' || $section == 'party-ideas' && $subsubsection == 'birthday-party-ideas') { $submenu = array(array('title' => 'Real Events'), array('title' => 'Real Weddings', 'url' => '/events/real-weddings'), array('title' => 'Real Mitzvahs', 'url' => '/events/real-mitzvahs'), array('title' => 'Real Baby Showers', 'url' => '/party-ideas/party-themes/baby-shower-ideas-party-themes'), array('title' => 'Real Birthday Parties', 'url' => '/party-ideas/party-themes/birthday-party-ideas'), array('title' => 'Featured in Print', 'url' => '/featured-events')); } elseif ($section == 'party-ideas') { $submenu = array(array('title' => 'Get Inspired'), array('title' => 'Search by Color', 'url' => '/party-ideas/colors'), array('title' => 'Search by Theme', 'url' => '/party-ideas/party-themes'), array('title' => 'Search by Event', 'url' => '/party-ideas/event-elements'));
if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="page" id="post-<?php the_ID(); ?> "> <div class="ruled left"><span class="head2 ruled-text-left"><?php the_title(); ?> </span></div> <?php $s1 = pods_url_variable(0); $s2 = pods_url_variable(1); $s3 = pods_url_variable(2); if ($s1 == 'party-ideas' && $s2 != '' && $s3 == '') { echo oo_get_gallery_crumb(); } ?> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div>
<?php /* Template Name: Vendor Profile */ include_once 'guide-functions.php'; require_once 'vendor_access/recaptchalib.php'; ao_set_in_guide(true); ao_set_in_profle(true); $slug = pods_url_variable(1); $cmd = pods_url_variable(2); $goto = pods_url_variable(3); $redirect_url = pods_url_variable(4); $err = array(); $profile = new Pod('vendor_profiles'); if ($cmd == 'go') { // if we are redirecting traffic then we really don't care if they are a current advertiser // because we don't want to break the blog which has a lot of historical entries that should // still be valid redirects. $profile->findRecords('id', -1, "t.slug = '{$slug}'"); } else { // if we ARE NOT redirecting, then we need make sure their are a valid active profile. $profile->findRecords('id', -1, "t.slug = '{$slug}' and t.profile_type = 'platinum'"); } $total = $profile->getTotalRows(); if ($total > 0) { $profile->fetchRecord(); $a = get_vendorfields($profile); } else { header("Location: http://www.occasionsonline.com/atlanta/"); exit; } // ====================================================================
<?php /** * Template Name: Media Archive item (JSON) * Description: The template used to return a JSON view of a Media Archive object's metadata * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ /** * Pods initialization * URI: /media/search/?search=<search_string> */ $search = get_post_meta($post->ID, 'pod_slug', true) || pods_url_variable('search', 'get'); $TRACE_ENABLED = is_user_logged_in(); $PODS_BASEURI_MEDIA_ARCHIVE_SEARCH = '/media/search/'; if ($TRACE_ENABLED) { error_log('pod_slug: ' . $pod_slug); } $pod = new Pod('media_item'); $params = array(); $params['where'] = 't.name LIKE "%' . $search . '%"'; $pod->findRecords($params); $media_item = array(); $media_item['id'] = $pod->get_field('slug'); $media_item['title'] = $pod->get_field('name'); $media_item['date'] = $pod->get_field('date'); $media_item['youtube_uri'] = $pod->get_field('youtube_uri'); $media_item['video_uri'] = $pod->get_field('video_uri'); $media_item['audio_uri'] = $pod->get_field('audio_uri');
<?php /** * @package WordPress * @subpackage Default_Theme */ /* Template Name: Gallery Tags */ get_header(); $slug = strtolower(pods_url_variable(2)); $slug .= ",{$slug}\\-2"; if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="page" id="post-<?php the_ID(); ?> "> <div class="ruled left"><span class="head2 ruled-text-left"><?php the_title(); ?> </span></div> <div class="entry"> <?php echo do_shortcode('[nggtags gallery=' . $slug . ']'); ?> </div> </div>
<?php /* Template Name: Redirect Utility */ // added by Ben Kaplan - 10/28/11 - prints out dev or www depending upon environment $subdomain = print_subdomain(); $url .= pods_url_variable(1); $i = 1; while ($i < 20) { $i++; $dir = pods_url_variable($i); if ($dir) { $url .= '/' . $dir; } } if (!$url) { header("Location: http://{$subdomain}.occasionsonline.com/"); exit; } if (substr($url, 0, 4) != "http") { $url = 'http://' . $url; } $len = strlen($url); $action = ''; $target = ''; $sql = "SELECT * FROM wp_pod_tbl_vendor_profiles WHERE\nweb_url LIKE '{$url}%' \nOR blog_url LIKE '{$url}%' \nOR facebook_url LIKE '{$url}%' \nOR linkedin_url LIKE '{$url}%' \nOR twitter_url LIKE '{$url}%' \nOR ad_url LIKE '{$url}%' \n"; $result = pod_query($sql); $row = mysql_fetch_assoc($result); if ($row) { $id = $row['id']; if ($url == substr($row['web_url'], 0, $len)) { $action = 'click_web';
<?php /* Template Name: Vendor Profile 5 */ include_once 'guide-functions.php'; require_once 'vendor_access/recaptchalib.php'; ao_set_in_guide(true); $slug = pods_url_variable(1); $cmd = pods_url_variable(2); $goto = pods_url_variable(3); $err = array(); $profile = new Pod('vendor_profiles'); $profile->findRecords('id', -1, "t.slug = '{$slug}'"); $total = $profile->getTotalRows(); if ($total > 0) { $profile->fetchRecord(); $a = get_vendorfields($profile); } else { get_header(); ?> <div class="post"> <h1>Vendor Not Found</h1> <p>We apologize for the mixup but we were not able to find this vendor.</p> <p>Go to the <a href="javascript:history.back();">Occasions Magazine home page</a> or <a href="javascript:history.back();">back to the page that sent you here</a>.</p> </div> <?php get_footer(); } // ==================================================================== // REDIRECT TRACKING // ==================================================================== if ($cmd == 'go') {
<?php /* Template Name: Event Profile */ if (!is_advertiser() && !checkAdmin()) { header("Location: " . PAGE_HOME); exit; } // let all of WP know that we are in the guide area ao_set_in_guide(true); // this is the profile ID $eid = pods_url_variable(2); // this is the "effective" user id, which is not neccessarily the user that is logged in, in the // case of admins, wo are able to mascarade as other users. $active_user_id = get_active_user_id(); // array to hold our profile fields $a = array(); // ******************************************************************* // INITIALIZATION, so to speak // ******************************************************************* // Basically, if we have a $eid, go ahead an get the data from the database, We might end up // replacing that data with data the user is trying to save .. a good baseline, so to speak if ($eid != '' && $eid != 'new') { $event = new Pod('events'); $event->findRecords('id', -1, "t.id = '{$eid}' and t.vendor = {$active_user_id}"); $total = $event->getTotalRows(); if ($total > 0) { $event->fetchRecord(); $a = get_eventfields($event); } $title = 'Edit Event'; } else {
global $img_dst_logosource; global $img_dst_video; global $img_web_source; global $img_web_large; global $img_web_thumb; global $img_web_logo; global $img_web_logosource; global $img_web_video; global $twitter_cache; //if ($_SERVER['REMOTE_ADDR'] != '76.17.3.14' // ben // && $_SERVER['REMOTE_ADDR'] != '173.14.216.154' // davdi christensen // && $_SERVER['REMOTE_ADDR'] != '74.232.88.126' ) { //heather // header("Location: http://www.atlantaoccasions.com/"); //} $slug = pods_url_variable(1); $cmd = pods_url_variable(2); ao_set_in_vendorarea(true); if ($slug == '') { $slug = 'home'; } include_once 'vendor_access/dbc.php'; include_once 'guide-functions.php'; if (in_array($slug, array('checkuser', 'do'))) { include "vendor_access/{$slug}.php"; exit; } if (in_array($slug, array('doimage', 'logout'))) { //page_protect(); include "vendor_access/{$slug}.php"; exit; }
* This can be overridden in child themes with loop.php or * loop-template.php, where 'template' is the loop context * requested by a template. For example, loop-index.php would * be used if it exists and we ask for the loop with: * <code>get_template_part( 'loop', 'index' );</code> * * @package WordPress */ ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php $pageslug = pods_url_variable(0); if (!have_posts()) { echo "<h1>"; _e('Not found', 'twentyten'); echo "</h1>"; echo "<p>"; _e('There\'s nothing to show.', 'govintranetpress'); echo "</p>"; get_search_form(); } while (have_posts()) { the_post(); //echo $post->post_type; $post_type = ucwords($post->post_type); $post_cat = get_the_category(); $title_context = '';