"Home Page", "page_id" => "index", "tab_id" => 1, "page_url" => "", // "pad_space" => 7, // "pad_type" => 1, // "valid_amp" => 1, // "top_off" => 1, // "lightbox_link" => 1, // "lightbox_type" => "lightbox", "main_image_width" => 145, "main_image_height" => 999, "image_width" => 150, "image_height" => 999 ); $data = unserialize(CMS::getTemplateText($params["page"], array("data_only" => 1))); $pageContent = $data['Page Content']['singleData']; if($_SERVER["REMOTE_ADDR"] == '72.94.51.18'){ // print"
";
//        print_r($pageContent);
//        print"
"; } include("header.php"); ?>
\n"); }else if($pageContent["Image Alignment"] == "right"){ print("
\n"); } // Handle links, if selected. URL takes precedence over Click to Enlarge. print($pad_space.$pad_char.$pad_char.$pad_char."
\n"); print($pad_space.$pad_char.$pad_char.$pad_char.$pad_char); if($pageContent["Image URL"] != ""){ print(""); $main_image_class = "s01_main_image_link"; }else if($pageContent["Click to Enlarge"]){ print(""); } // Generate alt and title tags. $s01_alt_text = rand(1,2) == 1 ? $pageContent["Image"]["extra_data"]["alt_text"]["0"] : ($pageContent["Image"]["extra_data"]["alt_text"]["1"] != "" ? $pageContent["Image"]["extra_data"]["alt_text"]["1"] : $pageContent["Image"]["extra_data"]["alt_text"]["0"]); $s01_title_text = rand(1,2) == 1 ? $pageContent["Image"]["extra_data"]["alt_text"]["0"] : ($pageContent["Image"]["extra_data"]["alt_text"]["1"] != "" ? $pageContent["Image"]["extra_data"]["alt_text"]["1"] : $pageContent["Image"]["extra_data"]["alt_text"]["0"]); // Actual handling of the image. Default is 200px x 999px max. if( $pageContent["Image"]["image_id"] ) { $img_params = array(); if($pageContent["Image Alignment"] == "center") { $img_params["x"] = ($params["main_image_full_width"] ? intval($params["main_image_full_width"]) : 600); $img_params["y"] = ($params["main_image_full_height"] ? intval($params["main_image_full_height"]) : 200); } else { $img_params["x"] = ($params["main_image_width"] ? intval($params["main_image_width"]) : 200); $img_params["y"] = ($params["main_image_height"] ? intval($params["main_image_height"]) : 999); } // $img_params["p"] = $params["main_image_padding"]; // $img_params["c"] = $params["main_image_bg"]; $img_url = CMS::getImageUrl( $pageContent["Image"]["image_id"], $img_params ); print("\"".$s01_alt_text."\""); } // Finish up links. if($pageContent["Image URL"]){ print("\n"); print($pad_space.$pad_char.$pad_char.$pad_char."
\n"); }else if($pageContent["Click to Enlarge"]){ print("\n"); print($pad_space.$pad_char.$pad_char.$pad_char."
\n"); if($params["lightbox_link"]){ print($pad_space.$pad_char.$pad_char.$pad_char."
Click image to enlarge
\n"); }else{ print($pad_space.$pad_char.$pad_char.$pad_char."\n"); } }else{ print("\n"); print($pad_space.$pad_char.$pad_char.$pad_char."
\n"); } // Does this image have a caption? If so, print it out. if($pageContent["Image Caption"] != ""){ print("
".$pageContent["Image Caption"]."
\n"); } // Wrap this puppy up. print($pad_space.$pad_char.$pad_char."
\n"); } ?>