Changeset 1823963
- Timestamp:
- 02/17/2018 08:31:11 PM (8 years ago)
- Location:
- wp-oer/trunk
- Files:
-
- 9 edited
-
css/resource-category-style.css (modified) (2 diffs)
-
includes/init.php (modified) (3 diffs)
-
includes/oer-functions.php (modified) (1 diff)
-
js/back_scripts.js (modified) (1 diff)
-
js/resource-category.js (modified) (2 diffs)
-
oer_template/resource-subject-area.php (modified) (1 diff)
-
oer_template/single-resource.php (modified) (3 diffs)
-
open-educational-resources.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-oer/trunk/css/resource-category-style.css
r1729969 r1823963 54 54 .oer_right_featuredwpr .bx-wrapper .bx-viewport { border: medium none; box-shadow: none; left: 0px; width: 100%; overflow: hidden; position: relative; height: auto !important; } 55 55 .oer-allftrdrsrc { width: 100%; float: left; margin: 0px; padding: 0 0 25px 0; } 56 .oer-allftrdpst { float: left; margin: 0 0 25px 0; padding: 10px 0; width: 100%; }56 .oer-allftrdpst { float: left; margin: 0 0 25px 0; padding: 10px 0; width: 100%; overflow:hidden; } 57 57 .oer-allftrdrsrc .oer-snglrsrchdng { width: 100%; float: left; margin: 0px; padding: 5px 0 10px; font-size: 25px; line-height: 25px; } 58 58 .oer-allftrdrsrc .oer-allftrdrsrccntr { float: left; margin: 0px; padding: 0 5px 0 0; overflow: auto; height: 540px; border-top: 1px solid #c8c8c8; border-bottom: 1px solid #c8c8c8; width:100%; } … … 73 73 .oer_right_featuredwpr .bx-wrapper .bx-next { background: #ccc url(../images/bxnext.png) no-repeat scroll 0 0; } 74 74 .oer_right_featuredwpr .bx-wrapper .featuredwpr_bxslider li p { color:#444; } 75 ul.featuredwpr_bxslider { visibility:hidden; height:0; } 76 ul.allftrdpst_slider { visibility:hidden; height:190px; overflow:hidden; } 75 77 .clear { clear:both; } 76 78 #oer-content { overflow:hidden; width:100%; } -
wp-oer/trunk/includes/init.php
r1776251 r1823963 8 8 { 9 9 global $pagenow; 10 10 11 11 $user_id = get_current_user_id(); 12 12 … … 24 24 return $args; 25 25 } 26 add_filter( 'get_terms_args', 'oer_filter_term_args', 10, 2 );26 //add_filter( 'get_terms_args', 'oer_filter_term_args', 10, 2 ); 27 27 28 28 //Filter Posts , Pages and Resources According Categories Assignment … … 388 388 update_post_meta( $post->ID , 'oer_grade' , ''); 389 389 } 390 390 391 391 if(isset($_POST['oer_datecreated'])) 392 392 { -
wp-oer/trunk/includes/oer-functions.php
r1776251 r1823963 512 512 { 513 513 $curr_cat = get_category_parents($id, false, '/' ,true); 514 $curr_cat = explode('/',$curr_cat); 515 516 return $curr_cat; 517 } 518 } 519 520 if (!function_exists('oer_get_parent_term_list')) { 521 function oer_get_parent_term_list($id) { 522 $args = array( 523 'format' => 'name', 524 'separator' => '/', 525 'link' => false, 526 'inclusive' => false 527 ); 528 $curr_cat = get_term_parents_list($id, 'resource-subject-area', $args); 514 529 $curr_cat = explode('/',$curr_cat); 515 530 -
wp-oer/trunk/js/back_scripts.js
r1714161 r1823963 1 1 jQuery(document).ready(function(e) { 2 jQuery( ".oer_datepicker" ).datepicker( );2 jQuery( ".oer_datepicker" ).datepicker( { dateFormat: 'MM d, yy' } ); 3 3 jQuery( ".oer_datepicker" ).datepicker( "option", "showAnim", "slideDown" ); 4 4 -
wp-oer/trunk/js/resource-category.js
r1776251 r1823963 25 25 }); 26 26 } 27 }, 28 onSliderLoad: function(currentIndex) { 29 jQuery('.featuredwpr_bxslider').css({'visibility':'visible','height':'auto'}); 27 30 } 28 31 }; … … 37 40 38 41 jQuery('.allftrdpst_slider').bxSlider({ 39 pager: false 42 pager: false, 43 onSliderLoad: function(currentIndex) { 44 jQuery('.allftrdpst_slider').css({'visibility':'visible','height':'auto'}); 45 } 40 46 }); 41 47 if (jQuery('.oer_right_featuredwpr .bx-wrapper').is(':visible')) { -
wp-oer/trunk/oer_template/resource-subject-area.php
r1776251 r1823963 597 597 <div class="allftrdsngl"> 598 598 <?php 599 if (empty($image)) { 600 $image = OER_URL.'images/default-icon.png'; 601 } 599 602 if(!empty($image)){ 600 603 $new_image = oer_resize_image( $image , 220 , 180 , true ); -
wp-oer/trunk/oer_template/single-resource.php
r1776251 r1823963 34 34 if(!empty($post_terms)) 35 35 { 36 $subjects = array(); 36 37 foreach($post_terms as $term) 37 38 { 38 39 if($term->parent != 0) 39 40 { 40 $parent[] = oer_get_parent_term($term->term_id); 41 $parent[] = oer_get_parent_term_list($term->term_id); 42 $subjects[] = $term; 41 43 } 42 44 else … … 45 47 } 46 48 } 47 49 48 50 if(!empty($parent) && array_filter($parent)) 49 51 { … … 63 65 } 64 66 } 67 if (count($subjects)>0) 68 $subject_areas = array_merge($subject_areas,$subjects); 65 69 } 66 70 -
wp-oer/trunk/open-educational-resources.php
r1776334 r1823963 4 4 Plugin URI: https://www.wp-oer.com 5 5 Description: Open Educational Resource management and curation, metadata publishing, and alignment to Common Core State Standards. 6 Version: 0.6. 06 Version: 0.6.1 7 7 Author: Navigation North 8 8 Author URI: https://www.navigationnorth.com … … 37 37 define( 'OER_PLUGIN_NAME', 'WP OER Plugin' ); 38 38 define( 'OER_ADMIN_PLUGIN_NAME', 'WP OER Plugin'); 39 define( 'OER_VERSION', '0.6. 0' );39 define( 'OER_VERSION', '0.6.1' ); 40 40 41 41 include_once(OER_PATH.'includes/oer-functions.php'); -
wp-oer/trunk/readme.txt
r1776334 r1823963 42 42 == Changelog == 43 43 44 = 0.6.1 = 45 * improved display of featured resources on subject pages 46 * display default image on Recommended Content slider if none available 47 * fix saving and display of created and modified dates 48 * fix taxonomy query on subject area resource lists 49 44 50 = 0.6.0 = 45 51 * additional keyboard accessibility fixes
Note: See TracChangeset
for help on using the changeset viewer.