////$strpage = preg_replace("//", "nnn", $_SERVER["REQUEST_URI"], 1); ////$strpage = str_replace("nnn/", "", $strpage); ////if(strpos($strpage, "/?")){ ////$arr_strpage = explode("/?",$strpage); ////$strpage = $arr_strpage[0]; ////if(strpos($strpage, "?")){ ////$arr_strpage = explode("?",$strpage); ////$strpage = $arr_strpage[0]; ////} ////}else{ ////$arr_strpage = explode("?",$strpage); ////$strpage = $arr_strpage[0]; ////} ////$strpage = str_replace("/", "", $strpage); ////$urlpath = "http://".$_SERVER['SERVER_NAME']."/"; ////$directoryImages = get_template_directory_uri()."/images/"; ////$directoryImages = str_replace($urlpath, "", $directoryImages); ////$banner_path = get_template_directory_uri()."/images/banint.png"; ////if ( file_exists($directoryImages.$strpage.".png") ){ ////$banner_path = get_template_directory_uri()."/images/".$strpage.".png"; ////} ?>