Plugin Directory

Changeset 1823963


Ignore:
Timestamp:
02/17/2018 08:31:11 PM (8 years ago)
Author:
navigationnorth
Message:

updates for v0.6.1

Location:
wp-oer/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • wp-oer/trunk/css/resource-category-style.css

    r1729969 r1823963  
    5454.oer_right_featuredwpr .bx-wrapper .bx-viewport { border: medium none; box-shadow: none; left: 0px; width: 100%; overflow: hidden; position: relative; height: auto !important; }
    5555.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; }
    5757.oer-allftrdrsrc .oer-snglrsrchdng { width: 100%; float: left; margin: 0px; padding: 5px 0 10px; font-size: 25px; line-height: 25px; }
    5858.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%; }
     
    7373.oer_right_featuredwpr .bx-wrapper .bx-next { background: #ccc url(../images/bxnext.png) no-repeat scroll 0 0; }
    7474.oer_right_featuredwpr .bx-wrapper .featuredwpr_bxslider li p { color:#444; }
     75ul.featuredwpr_bxslider { visibility:hidden; height:0; }
     76ul.allftrdpst_slider { visibility:hidden; height:190px; overflow:hidden; }
    7577.clear { clear:both; }
    7678#oer-content { overflow:hidden; width:100%; }
  • wp-oer/trunk/includes/init.php

    r1776251 r1823963  
    88{
    99    global $pagenow;
    10    
     10   
    1111    $user_id = get_current_user_id();
    1212   
     
    2424    return $args;
    2525}
    26 add_filter( 'get_terms_args', 'oer_filter_term_args', 10, 2 );
     26//add_filter( 'get_terms_args', 'oer_filter_term_args', 10, 2 );
    2727
    2828//Filter Posts , Pages and Resources According Categories Assignment
     
    388388            update_post_meta( $post->ID , 'oer_grade' , '');
    389389        }
    390 
     390       
    391391        if(isset($_POST['oer_datecreated']))
    392392        {
  • wp-oer/trunk/includes/oer-functions.php

    r1776251 r1823963  
    512512    {
    513513        $curr_cat = get_category_parents($id, false, '/' ,true);
     514        $curr_cat = explode('/',$curr_cat);
     515       
     516        return $curr_cat;
     517    }
     518}
     519
     520if (!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);
    514529        $curr_cat = explode('/',$curr_cat);
    515530       
  • wp-oer/trunk/js/back_scripts.js

    r1714161 r1823963  
    11jQuery(document).ready(function(e) {
    2     jQuery( ".oer_datepicker" ).datepicker();
     2    jQuery( ".oer_datepicker" ).datepicker( { dateFormat: 'MM d, yy' } );
    33    jQuery( ".oer_datepicker" ).datepicker( "option", "showAnim", "slideDown" );
    44   
  • wp-oer/trunk/js/resource-category.js

    r1776251 r1823963  
    2525            });
    2626            }
     27        },
     28        onSliderLoad: function(currentIndex) {
     29            jQuery('.featuredwpr_bxslider').css({'visibility':'visible','height':'auto'});
    2730        }
    2831    };
     
    3740
    3841    jQuery('.allftrdpst_slider').bxSlider({
    39         pager: false
     42        pager: false,
     43        onSliderLoad: function(currentIndex) {
     44        jQuery('.allftrdpst_slider').css({'visibility':'visible','height':'auto'});
     45        }
    4046    });
    4147    if (jQuery('.oer_right_featuredwpr .bx-wrapper').is(':visible')) {
  • wp-oer/trunk/oer_template/resource-subject-area.php

    r1776251 r1823963  
    597597                        <div class="allftrdsngl">
    598598                            <?php
     599                            if (empty($image)) {
     600                                $image = OER_URL.'images/default-icon.png';
     601                            }
    599602                            if(!empty($image)){
    600603                                $new_image = oer_resize_image( $image , 220 , 180 , true );
  • wp-oer/trunk/oer_template/single-resource.php

    r1776251 r1823963  
    3434if(!empty($post_terms))
    3535{
     36    $subjects = array();
    3637    foreach($post_terms as $term)
    3738    {
    3839        if($term->parent != 0)
    3940        {
    40             $parent[] = oer_get_parent_term($term->term_id);
     41            $parent[] = oer_get_parent_term_list($term->term_id);
     42            $subjects[] = $term;
    4143        }
    4244        else
     
    4547        }
    4648    }
    47 
     49   
    4850    if(!empty($parent) && array_filter($parent))
    4951    {
     
    6365        }
    6466    }
     67    if (count($subjects)>0)
     68        $subject_areas = array_merge($subject_areas,$subjects);
    6569}
    6670
  • wp-oer/trunk/open-educational-resources.php

    r1776334 r1823963  
    44 Plugin URI:   https://www.wp-oer.com
    55 Description:  Open Educational Resource management and curation, metadata publishing, and alignment to Common Core State Standards.
    6  Version:      0.6.0
     6 Version:      0.6.1
    77 Author:       Navigation North
    88 Author URI:   https://www.navigationnorth.com
     
    3737define( 'OER_PLUGIN_NAME', 'WP OER Plugin' );
    3838define( 'OER_ADMIN_PLUGIN_NAME', 'WP OER Plugin');
    39 define( 'OER_VERSION', '0.6.0' );
     39define( 'OER_VERSION', '0.6.1' );
    4040
    4141include_once(OER_PATH.'includes/oer-functions.php');
  • wp-oer/trunk/readme.txt

    r1776334 r1823963  
    4242== Changelog ==
    4343
     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
    4450= 0.6.0 =
    4551* additional keyboard accessibility fixes
Note: See TracChangeset for help on using the changeset viewer.