Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //csv tags for meta keywords by admindaily.com
- function tags4meta() {
- $posttags = get_the_tags();
- foreach((array)$posttags as $tag) {
- $tags4meta .= $tag->name . ',';
- }
- if (!is_single()) { ?>FCPX,Template,apple,Motion,Motion Templates,Free Motion Templates,Motion 5 Templates,FCPX Templates,Final Cut Motion Templates, Apple Motion 4 Templates, Apple Motion 3 Templates, FREE Motion Templates, FREE Motion 4 Templates, FREE Motion 5 Templates<?php }
- echo "$tags4meta";
- }
- // Add a second menu
- register_nav_menus( array(
- 'secondary' => __( 'Top Menu (Above the Header)', 'yourtheme'),
- 'primary' => __( 'Primary Menu', 'yourtheme' ),
- ) );
- error_reporting(0); // Turn off all error reporting
- function mySearchFilter($query) {
- if ($query->is_search) {
- $query->set('post_type', 'post');
- }
- return $query;
- }
- add_filter('pre_get_posts','mySearchFilter');
- register_nav_menu( 'logged-in-menu', __( 'logged-in-menu') );
- register_nav_menu( 'logged-out-menu', __( 'logged-out-menu') );
- add_action('wp_enqueue_scripts', 'jquery_method');
- function jquery_method() {
- wp_deregister_script( 'jquery' );
- wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js');
- wp_enqueue_script( 'jquery' );
- }
- global $is_iphone;
- if ( $is_iphone ) {
- add_filter('shadowbox-js', '__return_false');
- }
- /*
- START Custom JS
- */
- function mmt_custom_js() {
- wp_enqueue_script('mmt_custom_js', get_bloginfo('template_url').'/js/custom.js', false, '1.0', true);
- }
- add_action('wp_enqueue_scripts', 'mmt_custom_js');
- // Remove default fancybox function
- remove_action('wp_head', 'fancybox');
- /*
- END Custom JS
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement