Changeset 1112640
- Timestamp:
- 03/14/2015 03:59:16 PM (11 years ago)
- Location:
- scifi-facets/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (2 diffs)
-
scifi-facets.css (modified) (3 diffs)
-
scifi-facets.js (modified) (3 diffs)
-
scifi-facets.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scifi-facets/trunk/readme.txt
r1059172 r1112640 3 3 Tags: date archive, taxonomy, terms, facet, faceted, search 4 4 Requires at least: 3.7 5 Tested up to: 4. 15 Tested up to: 4.2 6 6 Stable tag: 1.0 7 7 License: GPLv2 or later … … 33 33 == Changelog == 34 34 35 = 0.6 = 36 * Fixed: bug when themes using widgets before script enqueue hook 37 * Tweak: Animating arrow on time archive blocks 38 35 39 = 0.5 = 36 40 * Added order field -
scifi-facets/trunk/scifi-facets.css
r1023297 r1112640 3 3 -webkit-touch-callout: none; 4 4 -webkit-user-select: none; 5 -khtml-user-select: none;6 5 -moz-user-select: none; 7 6 -ms-user-select: none; … … 19 18 .scifi-facets-format-tags .scifi-facets-group-title:after, 20 19 .scifi-facets-group-time.scifi-facets-format-links .scifi-facets-group-title:after { 21 content: '\25b c';20 content: '\25b2'; 22 21 float: right; 23 22 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); 24 29 } 25 30 … … 49 54 .scifi-facets-select { 50 55 box-sizing: border-box; 56 -webkit-box-sizing: border-box; 51 57 -moz-box-sizing: border-box; 52 58 width: 96%; -
scifi-facets/trunk/scifi-facets.js
r1023297 r1112640 6 6 $(document).ready(function() { 7 7 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 }; 9 16 10 17 // Handle time links actions. … … 15 22 event.preventDefault(); 16 23 var currentInactive = $(this).next('.scifi-facets-group-list '); 17 $(currentInactive).slideToggle(150 );24 $(currentInactive).slideToggle(150, blockSlideStatusChk); 18 25 }); 19 26 … … 25 32 event.preventDefault(); 26 33 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) 29 36 }); 30 37 -
scifi-facets/trunk/scifi-facets.php
r1059172 r1112640 18 18 add_action('plugins_loaded', function() { 19 19 load_plugin_textdomain('scifi-facets', FALSE, dirname(plugin_basename(__FILE__)) . '/languages/'); 20 20 21 }); 21 22 … … 25 26 */ 26 27 add_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 27 32 // Include widgets classes. 28 33 require_once 'widget-taxonomy.php'; … … 36 41 */ 37 42 add_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()); 40 44 });
Note: See TracChangeset
for help on using the changeset viewer.