From: Anthony Talarico Date: Wed, 9 Nov 2016 18:44:06 +0000 (-0500) Subject: removing unused javascript and adding support for a title in the custom post types... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e909753bc9785cebd992b9ced3d67315dfac3fda;p=WP-Themes%2Fglmthemes%2Funiversitycenter-theme.git removing unused javascript and adding support for a title in the custom post types for partmers --- diff --git a/js/app.js b/js/app.js index 90ffb8e..0f2fec0 100644 --- a/js/app.js +++ b/js/app.js @@ -53,48 +53,4 @@ $(document).ready(function () { $(this).fadeOut("fast", function(){}); alert_container.slideToggle("slow", function(){}); }); - -// $(window).load(function(){ -// $('.slideshow_title').wrap('
' ); -// $('
').insertAfter('.title-wrapper'); -// var title_wrapper = page.find($('.control-arrows')); -// title_wrapper_width = title_wrapper.width(); -// title_wrapper_position = title_wrapper.offset(); -//// slideshow_button_next.css({left: title_wrapper_position.left, top: title_wrapper_position + 100}); -// -//// $('.slideshow_button').appendTo('.control-arrows'); -// -// var count = 1; -// slideshow_view.each(function(){ -// if(! $(this).hasClass('slideshow_currentView')){ -// var view_top = parseInt($(this).css('top'), 10); -// $(this).css("top", view_top + 42 + 'px'); -// } -// }); -// -// $.each(slideshow_layers, function(){ -// $(this).height($(this).height() + 42); -// if(slideshow_view.hasClass('slideshow_currentView')) -//// console.log($(this).attr('class') + " " + $(this).height() ); -// count++; -// }); -// -// $(window).resize( function(){ -// title_wrapper_position = title_wrapper.offset(); -//// slideshow_button_next.css({left: title_wrapper_position.left, top: title_wrapper_position.top }); -// console.log(title_wrapper_position); -// slideshow_view.each(function(){ -// if(! $(this).hasClass('slideshow_currentView')){ -// var view_top = parseInt($(this).css('top'), 10); -// $(this).css("top", view_top + 42 + 'px'); -// } -// }); -// $.each(slideshow_layers, function(){ -// $(this).height($(this).height() + 42); -//// console.log($(this).attr('class') + " " + $(this).height() ); -// $(this).height($(this).height + 42); -// count++; -// }); -// }); -// }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 19bc64d..fb3a018 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -44,48 +44,4 @@ $(document).ready(function () { $(this).fadeOut("fast", function(){}); alert_container.slideToggle("slow", function(){}); }); - -// $(window).load(function(){ -// $('.slideshow_title').wrap('
' ); -// $('
').insertAfter('.title-wrapper'); -// var title_wrapper = page.find($('.control-arrows')); -// title_wrapper_width = title_wrapper.width(); -// title_wrapper_position = title_wrapper.offset(); -//// slideshow_button_next.css({left: title_wrapper_position.left, top: title_wrapper_position + 100}); -// -//// $('.slideshow_button').appendTo('.control-arrows'); -// -// var count = 1; -// slideshow_view.each(function(){ -// if(! $(this).hasClass('slideshow_currentView')){ -// var view_top = parseInt($(this).css('top'), 10); -// $(this).css("top", view_top + 42 + 'px'); -// } -// }); -// -// $.each(slideshow_layers, function(){ -// $(this).height($(this).height() + 42); -// if(slideshow_view.hasClass('slideshow_currentView')) -//// console.log($(this).attr('class') + " " + $(this).height() ); -// count++; -// }); -// -// $(window).resize( function(){ -// title_wrapper_position = title_wrapper.offset(); -//// slideshow_button_next.css({left: title_wrapper_position.left, top: title_wrapper_position.top }); -// console.log(title_wrapper_position); -// slideshow_view.each(function(){ -// if(! $(this).hasClass('slideshow_currentView')){ -// var view_top = parseInt($(this).css('top'), 10); -// $(this).css("top", view_top + 42 + 'px'); -// } -// }); -// $.each(slideshow_layers, function(){ -// $(this).height($(this).height() + 42); -//// console.log($(this).attr('class') + " " + $(this).height() ); -// $(this).height($(this).height + 42); -// count++; -// }); -// }); -// }); }); diff --git a/lib/partners-post-type.php b/lib/partners-post-type.php index 9082a92..3403497 100644 --- a/lib/partners-post-type.php +++ b/lib/partners-post-type.php @@ -33,7 +33,7 @@ function custom_post_type() { $args = array( 'label' => __( 'Partner', 'text_domain' ), 'labels' => $labels, - 'supports' => array('thumbnail'), + 'supports' => array('title', 'thumbnail'), // 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true,