Plugin Directory

Changeset 1112640


Ignore:
Timestamp:
03/14/2015 03:59:16 PM (11 years ago)
Author:
dimitrov.adrian
Message:
  • Fixed: bug when themes using widgets before script enqueue hook
  • Tweak: Animating arrow on time archive blocks
Location:
scifi-facets/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • scifi-facets/trunk/readme.txt

    r1059172 r1112640  
    33Tags: date archive, taxonomy, terms, facet, faceted, search
    44Requires at least: 3.7
    5 Tested up to: 4.1
     5Tested up to: 4.2
    66Stable tag: 1.0
    77License: GPLv2 or later
     
    3333== Changelog ==
    3434
     35= 0.6 =
     36* Fixed: bug when themes using widgets before script enqueue hook
     37* Tweak: Animating arrow on time archive blocks
     38
    3539= 0.5 =
    3640* Added order field
  • scifi-facets/trunk/scifi-facets.css

    r1023297 r1112640  
    33  -webkit-touch-callout: none;
    44  -webkit-user-select: none;
    5   -khtml-user-select: none;
    65  -moz-user-select: none;
    76  -ms-user-select: none;
     
    1918.scifi-facets-format-tags .scifi-facets-group-title:after,
    2019.scifi-facets-group-time.scifi-facets-format-links .scifi-facets-group-title:after {
    21   content: '\25bc';
     20  content: '\25b2';
    2221  float: right;
    2322  opacity: .5;
     23  -moz-transition: transform 150ms ease;
     24  -webkit-transition: transform 150ms ease;
     25  transition: transform 150ms ease;
     26}
     27.scifi-facets-group-time.scifi-facets-format-links .scifi-facets-group-title.scifi-facets-state-open:after {
     28  transform: rotate(-180deg);
    2429}
    2530
     
    4954.scifi-facets-select {
    5055  box-sizing: border-box;
     56  -webkit-box-sizing: border-box;
    5157  -moz-box-sizing: border-box;
    5258  width: 96%;
  • scifi-facets/trunk/scifi-facets.js

    r1023297 r1112640  
    66  $(document).ready(function() {
    77
    8  
     8    var blockSlideStatusChk = function() {
     9      if ($(this).is(':visible')) {
     10        $(this).prev('.scifi-facets-group-title').addClass('scifi-facets-state-open');
     11      }
     12      else {
     13        $(this).prev('.scifi-facets-group-title').removeClass('scifi-facets-state-open');
     14      }
     15    };
    916 
    1017    // Handle time links actions.
     
    1522        event.preventDefault();
    1623        var currentInactive = $(this).next('.scifi-facets-group-list ');
    17         $(currentInactive).slideToggle(150);
     24        $(currentInactive).slideToggle(150, blockSlideStatusChk);
    1825      });
    1926 
     
    2532        event.preventDefault();
    2633        var currentInactive = $(this).next('.scifi-facets-group-list').find('.scifi-facets-tags-inactive');
    27         $('.scifi-facets-tags-inactive:visible').not(currentInactive).slideUp(150);
    28         $(currentInactive).slideToggle(150);
     34        $('.scifi-facets-tags-inactive:visible').not(currentInactive).slideUp(150, blockSlideStatusChk);
     35        $(currentInactive).slideToggle(150, blockSlideStatusChk)
    2936      });
    3037
  • scifi-facets/trunk/scifi-facets.php

    r1059172 r1112640  
    1818add_action('plugins_loaded', function() {
    1919  load_plugin_textdomain('scifi-facets', FALSE, dirname(plugin_basename(__FILE__)) . '/languages/');
     20
    2021});
    2122
     
    2526 */
    2627add_action('widgets_init', function() {
     28
     29  // This should be here because enqueueing is called from widget.
     30  wp_register_script('scifi-facets', plugins_url('scifi-facets.js', __FILE__), array('jquery'), NULL, TRUE);
     31
    2732  // Include widgets classes.
    2833  require_once 'widget-taxonomy.php';
     
    3641 */
    3742add_action('wp_enqueue_scripts', function() {
    38   wp_register_script('scifi-facets', plugins_url('scifi-facets.js', __FILE__), array('jquery'), 0.4, TRUE);
    39   wp_enqueue_style('scifi-facets', plugins_url('scifi-facets.css', __FILE__), array(), 0.4);
     43  wp_enqueue_style('scifi-facets', plugins_url('scifi-facets.css', __FILE__), array());
    4044});
Note: See TracChangeset for help on using the changeset viewer.