/** * ultrabootstrap functions and definitions * * @package ultrabootstrap */ if ( ! function_exists( 'ultrabootstrap_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function ultrabootstrap_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on ultrabootstrap, use a find and replace * to change 'ultrabootstrap' to the name of your theme in all the template files */ load_theme_textdomain( 'ultrabootstrap', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'ultrabootstrap' ), 'secondary' => esc_html__( 'Footer Menu', 'ultrabootstrap' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'custom-logo', array( 'height' => 45, 'width' => 250, 'flex-width' => true, )); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'ultrabootstrap_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_theme_support( "custom-header", array( 'default-color' => 'ffffff', 'default-image' => '', ) ); /* * Enable support for Selective Refresh for Widgets. * See https://make.wordpress.org/core/2016/11/10/visible-edit-shortcuts-in-the-customizer-preview/ */ add_theme_support( 'customize-selective-refresh-widgets' ); add_editor_style() ; } endif; // ultrabootstrap_setup add_action( 'after_setup_theme', 'ultrabootstrap_setup' ); /** * Enqueue scripts and styles. */ function ultrabootstrap_scripts() { wp_enqueue_style( 'ultrabootstrap-bootstrap', get_template_directory_uri().'/css/bootstrap.css' ); wp_enqueue_style( 'ultrabootstrap-fontawesome', get_template_directory_uri().'/css/font-awesome.css' ); wp_enqueue_style( 'ultrabootstrap-googlefonts', '//fonts.googleapis.com/css?family=Roboto:400,300,700'); wp_enqueue_style( 'ultrabootstrap-style', get_stylesheet_uri() ); if(is_rtl()) { wp_enqueue_style( 'ultrabootstrap-rtl', get_template_directory_uri().'/css/rtl.css' ); wp_enqueue_style( 'ultrabootstrap-css-rtl', get_template_directory_uri().'/css/bootstrap-rtl.css' ); wp_enqueue_script( 'ultrabootstrap-js-rtl', get_template_directory_uri() . '/js/bootstrap.rtl.js', array(), '1.0.0', true ); } wp_enqueue_script('jquery'); wp_enqueue_script( 'ultrabootstrap-bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array(), '1.0.0', true ); wp_enqueue_script( 'ultrabootstrap-scripts', get_template_directory_uri() . '/js/script.js', array(), '1.0.0', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'ultrabootstrap_scripts' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ if ( ! isset( $content_width ) ) $content_width = 900; function ultrabootstrap_content_width() { $GLOBALS['content_width'] = apply_filters( 'ultrabootstrap_content_width', 640 ); } add_action( 'after_setup_theme', 'ultrabootstrap_content_width', 0 ); function ultrabootstrap_filter_front_page_template( $template ) { return is_home() ? '' : $template; } add_filter( 'front_page_template', 'ultrabootstrap_filter_front_page_template' ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function ultrabootstrap_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'ultrabootstrap' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => __('Footer One','ultrabootstrap'), 'id' => 'footer-1', 'description' => __('Footer First Widget','ultrabootstrap'), 'before_widget' => '<div id="%1$s" class="widget col-md-3 col-sm-6 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => __('Footer Two','ultrabootstrap'), 'id' => 'footer-2', 'description' => __('Footer Second Widget','ultrabootstrap'), 'before_widget' => '<div id="%1$s" class="widget col-md-3 col-sm-6 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => __('Footer There','ultrabootstrap'), 'id' => 'footer-3', 'description' => __('Footer Third Widget','ultrabootstrap'), 'before_widget' => '<div id="%1$s" class="widget col-md-3 col-sm-6 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => __('Footer Four','ultrabootstrap'), 'id' => 'footer-4', 'description' => __('Footer Four Widget','ultrabootstrap'), 'before_widget' => '<div id="%1$s" class="widget col-md-3 col-sm-6 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); } add_action( 'widgets_init', 'ultrabootstrap_widgets_init' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/class.php'; //require get_template_directory() . '/inc/wp_bootstrap_navwalker.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; // Register Custom Navigation Walker require get_template_directory() . '/inc/wp_bootstrap_navwalker.php'; /** * Load TGM plugin */ require get_template_directory() . '/inc/class-tgm-plugin-activation.php'; /* Recommended plugin using TGM */ add_action( 'tgmpa_register', 'ultrabootstrap_register_plugins'); if( !function_exists('ultrabootstrap_register_plugins') ) { function ultrabootstrap_register_plugins() { /** * Array of plugin arrays. Required keys are name and slug. * If the source is NOT from the .org repo, then source is also required. */ $plugins = array( array( 'name' => 'One Click Demo Import', // The plugin name. 'slug' => 'one-click-demo-import', // The plugin slug (typically the folder name). 'required' => false, // If false, the plugin is only 'recommended' instead of required. ), array( 'name' => 'Contact Form 7', // The plugin name. 'slug' => 'contact-form-7', // The plugin slug (typically the folder name). 'required' => false, // If false, the plugin is only 'recommended' instead of required. ), ); /* * Array of configuration settings. Amend each line as needed. * * TGMPA will start providing localized text strings soon. If you already have translations of our standard * strings available, please help us make TGMPA even better by giving us access to these translations or by * sending in a pull-request with .po file(s) with the translations. * * Only uncomment the strings in the config array if you want to customize the strings. */ $config = array( 'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'parent_slug' => 'themes.php', // Parent menu slug. 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); } } /* Ultrabootstrap Demo importer */ add_filter( 'pt-ocdi/import_files', 'ultrabootstrap_import_demo_data' ); if ( ! function_exists( 'ultrabootstrap_import_demo_data' ) ) { function ultrabootstrap_import_demo_data() { return array( array( 'import_file_name' => __('Default Demo','ultrabootstrap'), 'categories' => array( 'Default', 'Blog' ), 'local_import_file' => trailingslashit( get_template_directory() ) . 'demo/default/demo-content.xml', 'local_import_widget_file' => trailingslashit( get_template_directory() ) . 'demo/default/widgets.json', 'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'demo/default/customizer.dat', 'import_preview_image_url' => 'https://phantomthemes.com/demo/ultrabootstrap/wp-content/themes/ultrabootstrap/screenshot.png', 'preview_url' => 'https://phantomthemes.com/view?theme=UltraBootstrap', ), ); } } add_action( 'pt-ocdi/after_import', 'ultrabootstrap_after_import' ); if ( ! function_exists( 'ultrabootstrap_after_import' ) ) { function ultrabootstrap_after_import( $selected_import ) { $importer_name = __('Default Demo','ultrabootstrap'); if ( $importer_name === $selected_import['import_file_name'] ) { //Set Menu $top_menu = get_term_by('name', 'Primary Menu', 'nav_menu'); $footer_menu= get_term_by('name', 'Footer Menu', 'nav_menu'); set_theme_mod( 'nav_menu_locations' , array( 'primary' => $top_menu->term_id, 'secondary' => $footer_menu->term_id, ) ); //Set Front page if( get_option('page_on_front') === '0' && get_option('page_for_posts') === '0' ) { $page = get_page_by_title( 'Home'); //$blog = get_page_by_title( 'Blog'); if ( isset( $page->ID ) ) { update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $page->ID ); //update_option('page_for_posts', $blog->ID); } } } } } add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' ); /******* the_breadcrumb *********/ function the_breadcrumb() { $showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show $delimiter = '<span class="dot">•</span>'; // delimiter between crumbs $home = 'Home'; // text for the 'Home' link $showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show $before = '<span class="current">'; // tag before the current crumb $after = '</span>'; // tag after the current crumb global $post; $homeLink = get_bloginfo('url'); if (is_home() || is_front_page()) { if ($showOnHome == 1) { echo '<div id="crumbs"><a href="' . $homeLink . '">' . $home . '</a></div>'; } } else { echo '<div id="crumbs"><a href="' . $homeLink . '">' . $home . '</a> ' . $delimiter . ' '; if (is_category()) { $thisCat = get_category(get_query_var('cat'), false); if ($thisCat->parent != 0) { echo get_category_parents($thisCat->parent, true, ' ' . $delimiter . ' '); } echo $before . 'Archive by category "' . single_cat_title('', false) . '"' . $after; } elseif (is_search()) { echo $before . 'Search results for "' . get_search_query() . '"' . $after; } elseif (is_day()) { echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' '; echo '<a href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $delimiter . ' '; echo $before . get_the_time('d') . $after; } elseif (is_month()) { echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' '; echo $before . get_the_time('F') . $after; } elseif (is_year()) { echo $before . get_the_time('Y') . $after; } elseif (is_single() && !is_attachment()) { if (get_post_type() != 'post') { $post_type = get_post_type_object(get_post_type()); $slug = $post_type->rewrite; echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>'; if ($showCurrent == 1) { echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; } } else { $cat = get_the_category(); $cat = $cat[0]; $cats = get_category_parents($cat, true, ' ' . $delimiter . ' '); if ($showCurrent == 0) { $cats = preg_replace("#^(.+)\s$delimiter\s$#", "$1", $cats); } echo $cats; if ($showCurrent == 1) { echo $before . get_the_title() . $after; } } } elseif (!is_single() && !is_page() && get_post_type() != 'post' && !is_404()) { $post_type = get_post_type_object(get_post_type()); echo $before . $post_type->labels->singular_name . $after; } elseif (is_attachment()) { $parent = get_post($post->post_parent); $cat = get_the_category($parent->ID); $cat = $cat[0]; echo get_category_parents($cat, true, ' ' . $delimiter . ' '); echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a>'; if ($showCurrent == 1) { echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; } } elseif (is_page() && !$post->post_parent) { if ($showCurrent == 1) { echo $before . get_the_title() . $after; } } elseif (is_page() && $post->post_parent) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>'; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); for ($i = 0; $i < count($breadcrumbs); $i++) { echo $breadcrumbs[$i]; if ($i != count($breadcrumbs)-1) { echo ' ' . $delimiter . ' '; } } if ($showCurrent == 1) { echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; } } elseif (is_tag()) { echo $before . 'Posts tagged "' . single_tag_title('', false) . '"' . $after; } elseif (is_author()) { global $author; $userdata = get_userdata($author); echo $before . 'Articles posted by ' . $userdata->display_name . $after; } elseif (is_404()) { echo $before . 'Error 404' . $after; } if (get_query_var('paged')) { if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ' ('; } echo '<span class="dot">•</span><span class="current">'. __('Page') . ' ' . get_query_var('paged').'</span>'; if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ')'; } } echo '</div>'; } } // end the_breadcrumb() <?xml version="1.0"?> <oembed><version>1.0</version><provider_name>Nandha Arts & Science College</provider_name><provider_url>https://www.nandhaarts.org</provider_url><author_name>focussoft</author_name><author_url>https://www.nandhaarts.org/author/focussoft/</author_url><title>About the Course (Management Studies) - Nandha Arts & Science Collegerich600338<blockquote class="wp-embedded-content" data-secret="iVFy7L0DwA"><a href="https://www.nandhaarts.org/about-the-course-management-studies/">About the Course (Management Studies)</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://www.nandhaarts.org/about-the-course-management-studies/embed/#?secret=iVFy7L0DwA" width="600" height="338" title="“About the Course (Management Studies)” — Nandha Arts & Science College" data-secret="iVFy7L0DwA" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript"> /* <![CDATA[ */ /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); /* ]]> */ </script> https://www.nandhaarts.org/wp-content/uploads/2022/07/bg-orange-new.jpg1570265About the Course BBA, the course teaches the management techniques that exist in the corporate world. This course trains youngster into vigorous executive and budding managers with administrative capabilities. It provides opportunities for youngster to obtain knowledge for both in the field of business and commerce with all the basic requirements. Eligibility A pass in […]