' . tabler('c',750,0,'','',0,''); v_spacer(20); // Heading $r .= '' . scriber_td($ann['title'],'announcement_hdr1',0,0,0,0,2,0,40,'m','c') . '' . v_spacer(20); // Table for 2 columns $r .= '' . tabler('c',750,0,'','',0,'') . ''; // Picture, if any, in left column if ( (is($ann['picture'],1)) && (file_exists(PD_EVENT_IMAGES.$ann['picture'])) ) { $r .= '' . '' . ''; } // All info in right column which takes remainder of table width $r .= '' . tabler('c',0,0,'','',0,'') . scriber_trtd($ann['subtitle'],'item_hdrtext1',0,0,0,0,0,0,30,'m','l') . scriber_trtd($ann['date'],'item_hdrtext2',0,0,0,0,0,0,0,'','l') . scriber_trtd($ann['time'],'item_hdrtext2',0,0,0,0,0,0,0,'','l') . v_spacer(15) . scriber_trtd($ann['teaser'],'item_text3',0,0,0,0,0,0,0,'','l') . scriber_trtd($ann['body'],'item_text3',0,0,0,0,0,0,0,'','l') . ''; // Close inner container $r .= ''; // Close outer container $r .= '' . v_spacer(30); return $r; } // ------------------------------------------------------------------------------------------------ // Make outer container $hologram[6610] = '' . tabler('c',750,0,'','',0,''); $hologram[6690] = ''; // ------------------------------------------------------------------------------------------------ // Title the container //$hologram[6620] = '' . // scriber_td('EVENTS and ANNOUNCEMENTS','product_hdr1',0,0,0,0,0,0,50,'m','c') . // ''; // ------------------------------------------------------------------------------------------------ // See if there are any current announcements to retrieve $get_anns = mysql_query("SELECT * FROM " . PT_ANNOUNCEMENTS . " WHERE status='active' AND " . "show_after<'" . $right_now . "' AND show_until>'" . $right_now . "' ORDER BY priority"); // ------------------------------------------------------------------------------------------------ // Empty message if no annoucements if (mysql_num_rows($get_anns) == 0) { $notice = 'No Events or Announcements Posted at this Time' . '

' . 'Please Check Back, or ' . '

' . 'Register for our Email Newsletters.'; $hologram[6650] = scriber_trtd($notice,'item_hdrtext1',0,0,0,0,0,0,300,'m','c'); } else { // ================================================================================================ // Only continue if there are announcements // Show request announcement first, if applicable if ($_GET['i_link']) { $get_this = mysql_query("SELECT * FROM " . PT_ANNOUNCEMENTS . " WHERE status='active' AND " . "show_after<'" . $right_now . "' AND show_until>'" . $right_now . "' AND announcement_id=" . $_GET['i_link'] . ""); if (mysql_num_rows($get_this) == 1) { $this_ann = mysql_fetch_array($get_this); $hologram[6650] .= ann_pane($this_ann); // Mark this one as zoomed incrementor(PT_ANNOUNCEMENTS, 'zoom_counter', 1, 'announcement_id', $_GET['i_link']); } } // Now show any others while ($ann = mysql_fetch_array($get_anns)) { if ($ann['announcement_id'] != $_GET['i_link']) { $hologram[6650] .= ann_pane($ann); // Mark this announcement as VIEWed incrementor(PT_ANNOUNCEMENTS, 'view_counter', 1, 'announcement_id', $ann['announcement_id']); } } } // ================================================================================================ // Update metatags if ($_GET['i_link']) { $tags['title'] = $this_ann['title'] . ' - ' . $this_ann['subtitle'] . ' at Nese Gallery, Mission Viejo California'; $tags['description'] = $this_ann['title'] . ' - ' . $this_ann['subtitle'] . ' at Nese Gallery, Mission Viejo California'; $tags['keywords'] = $this_ann['title'] . ', ' . $this_ann['subtitle'] . ', ' . 'Nese Gallery, Mission Viejo California, special events, fine art gallery'; } else { $tags['title'] = 'Nese Gallery Events - Worldwide Fine Art Source in Mission Viejo, California'; $tags['description'] = 'Nese Gallery has been supplying Southern Californians with Fine Art ' . 'for over 30 years. You may now buy our fine art online at our website as well.'; $tags['keywords'] = 'Nese Gallery, Nese Galleries, buy fine art, Mission Viejo, California'; } // ------------------------------------------------------------------------------------------------ require(PF_HOLOGRAPH_PAGE); require(PF_HOLOGRAPH); ?>