template/wordpress/functions.php in edge_framework-0.9.12 vs template/wordpress/functions.php in edge_framework-0.10.0

- old
+ new

@@ -19,24 +19,9 @@ function css() { echo root()."assets/css/"; } function js() { echo root()."assets/js/"; } function files() { echo root()."assets/files/"; } /* - Get the last word from the URL, useful for Header-menu's active state - @return = the last word from the current page -*/ -function get_current_page() { - $pageURL = "http"; - if ($_SERVER["SERVER_PORT"] != "80") { - $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; - } else { - $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; - } - $url_break = explode('/', $pageURL); - return $url_break[count($url_break) - 2]; -} - -/* Ellipsize the text (Adding "..." at the end of the word) Always stop at the end of a word. @param text = The statement to be ellipsized char_number = Number of characters before adding the ellipse etc = The ellipse text to be added, default to "..." \ No newline at end of file