Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Functions file
- * Calls all other required files
- * PLEASE DO NOT EDIT THIS FILE IN ANY WAY
- *
- * @package parabola
- */
- // variable for theme version
- define ("PARABOLA_VERSION","1.3.3");
- require_once(dirname(__FILE__) . "/admin/main.php"); // Load necessary admin files
- //Loading include files
- require_once(dirname(__FILE__) . "/includes/theme-setup.php"); // Setup and init theme
- require_once(dirname(__FILE__) . "/includes/theme-styles.php"); // Register and enqeue css styles and scripts
- require_once(dirname(__FILE__) . "/includes/theme-loop.php"); // Loop functions
- require_once(dirname(__FILE__) . "/includes/theme-meta.php"); // Meta functions
- require_once(dirname(__FILE__) . "/includes/theme-frontpage.php"); // Frontpage styling
- require_once(dirname(__FILE__) . "/includes/theme-comments.php"); // Comment functions
- require_once(dirname(__FILE__) . "/includes/theme-functions.php"); // Misc functions
- require_once(dirname(__FILE__) . "/includes/theme-hooks.php"); // Hooks
- require_once(dirname(__FILE__) . "/includes/shortcodes.php"); // shortcodes
- require_once(dirname(__FILE__) . "/js/shortcodes-generator.php"); // shortcodes
- require_once(dirname(__FILE__) . "/includes/post-types.php"); // cpt
- remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
- remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
- remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
- remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
- remove_action( 'wp_head', 'index_rel_link' ); // index link
- remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
- remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
- remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
- remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version
- remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); //
- class SplitMenu_Walker_Nav_Menu extends Walker_Nav_Menu {
- var $startMenu = false;
- function start_lvl(&$output, $depth) {
- return false;
- }
- function end_lvl(&$output, $depth) {
- $this->startMenu = false;
- }
- function start_el(&$output, $item, $depth, $args) {
- if(($args->has_children && $item->current) || $item->current_item_parent)
- $this->startMenu = true;
- if($this->startMenu && $depth > 0)
- parent::start_el($output, $item, $depth, $args);
- }
- function end_el(&$output, $item, $depth) {
- if( $this->startMenu )
- parent::end_el($output, $item, $depth);
- }
- function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
- $id_field = $this->db_fields['id'];
- if ( is_object( $args[0] ) ) {
- $args[0]->has_children = ! empty( $children_elements[$element->$id_field] );
- }
- return parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
- }
- };
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement