├── app └── themes │ └── class-central │ ├── assets │ ├── img │ │ ├── .gitignore │ │ ├── sprites.png │ │ ├── feed-icon.png │ │ └── feed-icon-28x28.png │ ├── less │ │ ├── components │ │ │ ├── _modalbox.less │ │ │ ├── _ratingsbubble.less │ │ │ ├── _base.less │ │ │ ├── _commentlist.less │ │ │ ├── _comment-respond.less │ │ │ ├── _pagination.less │ │ │ ├── _header.less │ │ │ ├── _homecontent.less │ │ │ └── _navbar.less │ │ ├── bootstrap │ │ │ ├── component-animations.less │ │ │ ├── wells.less │ │ │ ├── breadcrumbs.less │ │ │ ├── close.less │ │ │ ├── thumbnails.less │ │ │ ├── utilities.less │ │ │ ├── jumbotron.less │ │ │ ├── media.less │ │ │ ├── pager.less │ │ │ ├── bootstrap.less │ │ │ ├── badges.less │ │ │ ├── labels.less │ │ │ ├── code.less │ │ │ ├── alerts.less │ │ │ ├── grid.less │ │ │ ├── progress-bars.less │ │ │ ├── print.less │ │ │ ├── pagination.less │ │ │ ├── responsive-utilities.less │ │ │ ├── tooltip.less │ │ │ ├── scaffolding.less │ │ │ ├── list-group.less │ │ │ ├── popovers.less │ │ │ ├── modals.less │ │ │ ├── buttons.less │ │ │ └── input-groups.less │ │ ├── app.less │ │ ├── bootstrap_custom.less │ │ └── custom_mixins.less │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ └── js │ │ ├── vendor │ │ ├── jQuery.headroom.min.js │ │ └── headroom.min.js │ │ ├── plugins │ │ ├── bootstrap │ │ │ ├── transition.js │ │ │ ├── alert.js │ │ │ ├── button.js │ │ │ ├── tab.js │ │ │ ├── popover.js │ │ │ ├── affix.js │ │ │ └── dropdown.js │ │ └── fitvids.js │ │ └── _main.js │ ├── templates │ ├── single │ │ ├── social.php │ │ ├── pagination.php │ │ ├── meta.php │ │ ├── single-banner.php │ │ ├── single-footer.php │ │ ├── single-content.php │ │ └── comments.php │ ├── index │ │ ├── pagination.php │ │ ├── index-banner.php │ │ └── index-content.php │ ├── _unused │ │ ├── content-page.php │ │ ├── searchform.php │ │ ├── comment.php │ │ └── comments.php │ ├── layout │ │ ├── head.php │ │ └── footer.php │ └── sidebar.php │ ├── lang │ ├── ar.mo │ ├── ca.mo │ ├── el.mo │ ├── et.mo │ ├── ja.mo │ ├── bg_BG.mo │ ├── da_DK.mo │ ├── de_DE.mo │ ├── es_ES.mo │ ├── fa_IR.mo │ ├── fi_FI.mo │ ├── fr_FR.mo │ ├── he_IL.mo │ ├── hu_HU.mo │ ├── id_ID.mo │ ├── it_IT.mo │ ├── ko_KR.mo │ ├── mk_MK.mo │ ├── ms_MY.mo │ ├── nb_NO.mo │ ├── nl_NL.mo │ ├── nn_NO.mo │ ├── pl_PL.mo │ ├── pt_BR.mo │ ├── ro_RO.mo │ ├── ru_RU.mo │ ├── sk_SK.mo │ ├── sr_RS.mo │ ├── sv_SE.mo │ ├── tr_TR.mo │ ├── vi_VN.mo │ ├── zh_CN.mo │ └── zh_TW.mo │ ├── screenshot.png │ ├── page.php │ ├── .editorconfig │ ├── style.css │ ├── lib │ ├── utils.php │ ├── shortcodes.php │ ├── init.php │ ├── titles.php │ ├── wrapper.php │ ├── sidebar.php │ ├── relative-urls.php │ ├── comments.php │ ├── config.php │ ├── scripts.php │ ├── widgets │ │ ├── recent-posts.php │ │ └── featured-post.php │ ├── nav.php │ ├── custom.php │ ├── gallery.php │ └── widgets.php │ ├── single.php │ ├── .jshintrc │ ├── 404.php │ ├── base.php │ ├── package.json │ ├── index.php │ ├── functions.php │ ├── README.md │ └── Gruntfile.js ├── index.php ├── LICENSE.txt ├── README.md ├── .gitignore ├── wp-config.php └── wp-config-local.php /app/themes/class-central/assets/img/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/themes/class-central/templates/single/social.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/themes/class-central/templates/index/pagination.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/themes/class-central/templates/single/pagination.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/themes/class-central/assets/less/components/_modalbox.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/themes/class-central/lang/ar.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ar.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/ca.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ca.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/el.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/el.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/et.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/et.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/ja.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ja.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/bg_BG.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/bg_BG.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/da_DK.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/da_DK.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/de_DE.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/es_ES.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/fa_IR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/fa_IR.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/fi_FI.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/fi_FI.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/fr_FR.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/he_IL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/he_IL.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/hu_HU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/hu_HU.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/id_ID.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/id_ID.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/it_IT.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/ko_KR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ko_KR.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/mk_MK.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/mk_MK.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/ms_MY.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ms_MY.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/nb_NO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/nb_NO.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/nl_NL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/nl_NL.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/nn_NO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/nn_NO.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/pl_PL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/pl_PL.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/pt_BR.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/ro_RO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ro_RO.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/ru_RU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/ru_RU.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/sk_SK.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/sk_SK.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/sr_RS.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/sr_RS.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/sv_SE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/sv_SE.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/tr_TR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/tr_TR.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/vi_VN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/vi_VN.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/zh_CN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/zh_CN.mo -------------------------------------------------------------------------------- /app/themes/class-central/lang/zh_TW.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/lang/zh_TW.mo -------------------------------------------------------------------------------- /app/themes/class-central/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/screenshot.png -------------------------------------------------------------------------------- /app/themes/class-central/assets/img/sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/assets/img/sprites.png -------------------------------------------------------------------------------- /app/themes/class-central/assets/img/feed-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/assets/img/feed-icon.png -------------------------------------------------------------------------------- /app/themes/class-central/page.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/themes/class-central/assets/img/feed-icon-28x28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/assets/img/feed-icon-28x28.png -------------------------------------------------------------------------------- /app/themes/class-central/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /app/themes/class-central/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /app/themes/class-central/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classcentral/blue-steel/HEAD/app/themes/class-central/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /app/themes/class-central/templates/_unused/content-page.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | '')); ?> 4 | 5 | -------------------------------------------------------------------------------- /app/themes/class-central/.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | -------------------------------------------------------------------------------- /app/themes/class-central/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Class-Central 3 | Theme URI: http://class-central.com/ 4 | Description: Custom blog theme for Class-Central based on Roots 5 | Version: 1.0 6 | Author: Codelight 7 | Author URI: http://codelight.eu/ 8 | */ 9 | -------------------------------------------------------------------------------- /app/themes/class-central/lib/utils.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
x
'; 28 | head.appendChild(div.childNodes[1]); 29 | } 30 | 31 | if ( options ) { 32 | $.extend( settings, options ); 33 | } 34 | 35 | return this.each(function(){ 36 | var selectors = [ 37 | "iframe[src*='player.vimeo.com']", 38 | "iframe[src*='youtube.com']", 39 | "iframe[src*='youtube-nocookie.com']", 40 | "iframe[src*='kickstarter.com'][src*='video.html']", 41 | "object", 42 | "embed" 43 | ]; 44 | 45 | if (settings.customSelector) { 46 | selectors.push(settings.customSelector); 47 | } 48 | 49 | var ignoreList = '.fitvidsignore'; 50 | 51 | if(settings.ignore) { 52 | ignoreList = ignoreList + ', ' + settings.ignore; 53 | } 54 | 55 | var $allVideos = $(this).find(selectors.join(',')); 56 | $allVideos = $allVideos.not("object object"); // SwfObj conflict patch 57 | $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. 58 | 59 | $allVideos.each(function(){ 60 | var $this = $(this); 61 | if($this.parents(ignoreList).length > 0) { 62 | return; // Disable FitVids on this video. 63 | } 64 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 65 | if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) 66 | { 67 | $this.attr('height', 9); 68 | $this.attr('width', 16); 69 | } 70 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 71 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 72 | aspectRatio = height / width; 73 | if(!$this.attr('id')){ 74 | var videoID = 'fitvid' + Math.floor(Math.random()*999999); 75 | $this.attr('id', videoID); 76 | } 77 | $this.wrap('').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); 78 | $this.removeAttr('height').removeAttr('width'); 79 | }); 80 | }); 81 | }; 82 | // Works with either jQuery or Zepto 83 | })( window.jQuery || window.Zepto ); 84 | -------------------------------------------------------------------------------- /app/themes/class-central/assets/js/plugins/bootstrap/tab.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: tab.js v3.1.1 3 | * http://getbootstrap.com/javascript/#tabs 4 | * ======================================================================== 5 | * Copyright 2011-2014 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // TAB CLASS DEFINITION 14 | // ==================== 15 | 16 | var Tab = function (element) { 17 | this.element = $(element) 18 | } 19 | 20 | Tab.prototype.show = function () { 21 | var $this = this.element 22 | var $ul = $this.closest('ul:not(.dropdown-menu)') 23 | var selector = $this.data('target') 24 | 25 | if (!selector) { 26 | selector = $this.attr('href') 27 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 28 | } 29 | 30 | if ($this.parent('li').hasClass('active')) return 31 | 32 | var previous = $ul.find('.active:last a')[0] 33 | var e = $.Event('show.bs.tab', { 34 | relatedTarget: previous 35 | }) 36 | 37 | $this.trigger(e) 38 | 39 | if (e.isDefaultPrevented()) return 40 | 41 | var $target = $(selector) 42 | 43 | this.activate($this.parent('li'), $ul) 44 | this.activate($target, $target.parent(), function () { 45 | $this.trigger({ 46 | type: 'shown.bs.tab', 47 | relatedTarget: previous 48 | }) 49 | }) 50 | } 51 | 52 | Tab.prototype.activate = function (element, container, callback) { 53 | var $active = container.find('> .active') 54 | var transition = callback 55 | && $.support.transition 56 | && $active.hasClass('fade') 57 | 58 | function next() { 59 | $active 60 | .removeClass('active') 61 | .find('> .dropdown-menu > .active') 62 | .removeClass('active') 63 | 64 | element.addClass('active') 65 | 66 | if (transition) { 67 | element[0].offsetWidth // reflow for transition 68 | element.addClass('in') 69 | } else { 70 | element.removeClass('fade') 71 | } 72 | 73 | if (element.parent('.dropdown-menu')) { 74 | element.closest('li.dropdown').addClass('active') 75 | } 76 | 77 | callback && callback() 78 | } 79 | 80 | transition ? 81 | $active 82 | .one($.support.transition.end, next) 83 | .emulateTransitionEnd(150) : 84 | next() 85 | 86 | $active.removeClass('in') 87 | } 88 | 89 | 90 | // TAB PLUGIN DEFINITION 91 | // ===================== 92 | 93 | var old = $.fn.tab 94 | 95 | $.fn.tab = function ( option ) { 96 | return this.each(function () { 97 | var $this = $(this) 98 | var data = $this.data('bs.tab') 99 | 100 | if (!data) $this.data('bs.tab', (data = new Tab(this))) 101 | if (typeof option == 'string') data[option]() 102 | }) 103 | } 104 | 105 | $.fn.tab.Constructor = Tab 106 | 107 | 108 | // TAB NO CONFLICT 109 | // =============== 110 | 111 | $.fn.tab.noConflict = function () { 112 | $.fn.tab = old 113 | return this 114 | } 115 | 116 | 117 | // TAB DATA-API 118 | // ============ 119 | 120 | $(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { 121 | e.preventDefault() 122 | $(this).tab('show') 123 | }) 124 | 125 | }(jQuery); 126 | -------------------------------------------------------------------------------- /app/themes/class-central/lib/nav.php: -------------------------------------------------------------------------------- 1 | Home 7 | * 11 | * 12 | */ 13 | class Roots_Nav_Walker extends Walker_Nav_Menu { 14 | function check_current($classes) { 15 | return preg_match('/(current[-_])|active|dropdown/', $classes); 16 | } 17 | 18 | function start_lvl(&$output, $depth = 0, $args = array()) { 19 | $output .= "\nlogged in to post a comment.', 'roots'), wp_login_url(get_permalink())); ?>
46 | 47 | 75 | 76 | 77 |logged in to post a comment.', 'roots'), wp_login_url(get_permalink())); ?>
49 | 50 | 78 | 79 |
87 |
88 |
89 |
90 | ,
91 |
92 |
93 |
94 |
95 |
96 |
127 | 128 | 129 |
130 | ').insertAfter($(this)).on('click', clearMenus) 36 | } 37 | 38 | var relatedTarget = { relatedTarget: this } 39 | $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) 40 | 41 | if (e.isDefaultPrevented()) return 42 | 43 | $parent 44 | .toggleClass('open') 45 | .trigger('shown.bs.dropdown', relatedTarget) 46 | 47 | $this.focus() 48 | } 49 | 50 | return false 51 | } 52 | 53 | Dropdown.prototype.keydown = function (e) { 54 | if (!/(38|40|27)/.test(e.keyCode)) return 55 | 56 | var $this = $(this) 57 | 58 | e.preventDefault() 59 | e.stopPropagation() 60 | 61 | if ($this.is('.disabled, :disabled')) return 62 | 63 | var $parent = getParent($this) 64 | var isActive = $parent.hasClass('open') 65 | 66 | if (!isActive || (isActive && e.keyCode == 27)) { 67 | if (e.which == 27) $parent.find(toggle).focus() 68 | return $this.click() 69 | } 70 | 71 | var desc = ' li:not(.divider):visible a' 72 | var $items = $parent.find('[role=menu]' + desc + ', [role=listbox]' + desc) 73 | 74 | if (!$items.length) return 75 | 76 | var index = $items.index($items.filter(':focus')) 77 | 78 | if (e.keyCode == 38 && index > 0) index-- // up 79 | if (e.keyCode == 40 && index < $items.length - 1) index++ // down 80 | if (!~index) index = 0 81 | 82 | $items.eq(index).focus() 83 | } 84 | 85 | function clearMenus(e) { 86 | $(backdrop).remove() 87 | $(toggle).each(function () { 88 | var $parent = getParent($(this)) 89 | var relatedTarget = { relatedTarget: this } 90 | if (!$parent.hasClass('open')) return 91 | $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) 92 | if (e.isDefaultPrevented()) return 93 | $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget) 94 | }) 95 | } 96 | 97 | function getParent($this) { 98 | var selector = $this.attr('data-target') 99 | 100 | if (!selector) { 101 | selector = $this.attr('href') 102 | selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 103 | } 104 | 105 | var $parent = selector && $(selector) 106 | 107 | return $parent && $parent.length ? $parent : $this.parent() 108 | } 109 | 110 | 111 | // DROPDOWN PLUGIN DEFINITION 112 | // ========================== 113 | 114 | var old = $.fn.dropdown 115 | 116 | $.fn.dropdown = function (option) { 117 | return this.each(function () { 118 | var $this = $(this) 119 | var data = $this.data('bs.dropdown') 120 | 121 | if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) 122 | if (typeof option == 'string') data[option].call($this) 123 | }) 124 | } 125 | 126 | $.fn.dropdown.Constructor = Dropdown 127 | 128 | 129 | // DROPDOWN NO CONFLICT 130 | // ==================== 131 | 132 | $.fn.dropdown.noConflict = function () { 133 | $.fn.dropdown = old 134 | return this 135 | } 136 | 137 | 138 | // APPLY TO STANDARD DROPDOWN ELEMENTS 139 | // =================================== 140 | 141 | $(document) 142 | .on('click.bs.dropdown.data-api', clearMenus) 143 | .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) 144 | .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) 145 | .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu], [role=listbox]', Dropdown.prototype.keydown) 146 | 147 | }(jQuery); 148 | -------------------------------------------------------------------------------- /app/themes/class-central/assets/less/bootstrap/input-groups.less: -------------------------------------------------------------------------------- 1 | // 2 | // Input groups 3 | // -------------------------------------------------- 4 | 5 | // Base styles 6 | // ------------------------- 7 | .input-group { 8 | position: relative; // For dropdowns 9 | display: table; 10 | border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table 11 | 12 | // Undo padding and float of grid classes 13 | &[class*="col-"] { 14 | float: none; 15 | padding-left: 0; 16 | padding-right: 0; 17 | } 18 | 19 | .form-control { 20 | // Ensure that the input is always above the *appended* addon button for 21 | // proper border colors. 22 | position: relative; 23 | z-index: 2; 24 | 25 | // IE9 fubars the placeholder attribute in text inputs and the arrows on 26 | // select elements in input groups. To fix it, we float the input. Details: 27 | // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855 28 | float: left; 29 | 30 | width: 100%; 31 | margin-bottom: 0; 32 | } 33 | } 34 | 35 | // Sizing options 36 | // 37 | // Remix the default form control sizing classes into new ones for easier 38 | // manipulation. 39 | 40 | .input-group-lg > .form-control, 41 | .input-group-lg > .input-group-addon, 42 | .input-group-lg > .input-group-btn > .btn { .input-lg(); } 43 | .input-group-sm > .form-control, 44 | .input-group-sm > .input-group-addon, 45 | .input-group-sm > .input-group-btn > .btn { .input-sm(); } 46 | 47 | 48 | // Display as table-cell 49 | // ------------------------- 50 | .input-group-addon, 51 | .input-group-btn, 52 | .input-group .form-control { 53 | display: table-cell; 54 | 55 | &:not(:first-child):not(:last-child) { 56 | border-radius: 0; 57 | } 58 | } 59 | // Addon and addon wrapper for buttons 60 | .input-group-addon, 61 | .input-group-btn { 62 | width: 1%; 63 | white-space: nowrap; 64 | vertical-align: middle; // Match the inputs 65 | } 66 | 67 | // Text input groups 68 | // ------------------------- 69 | .input-group-addon { 70 | padding: @padding-base-vertical @padding-base-horizontal; 71 | font-size: @font-size-base; 72 | font-weight: normal; 73 | line-height: 1; 74 | color: @input-color; 75 | text-align: center; 76 | background-color: @input-group-addon-bg; 77 | border: 1px solid @input-group-addon-border-color; 78 | border-radius: @border-radius-base; 79 | 80 | // Sizing 81 | &.input-sm { 82 | padding: @padding-small-vertical @padding-small-horizontal; 83 | font-size: @font-size-small; 84 | border-radius: @border-radius-small; 85 | } 86 | &.input-lg { 87 | padding: @padding-large-vertical @padding-large-horizontal; 88 | font-size: @font-size-large; 89 | border-radius: @border-radius-large; 90 | } 91 | 92 | // Nuke default margins from checkboxes and radios to vertically center within. 93 | input[type="radio"], 94 | input[type="checkbox"] { 95 | margin-top: 0; 96 | } 97 | } 98 | 99 | // Reset rounded corners 100 | .input-group .form-control:first-child, 101 | .input-group-addon:first-child, 102 | .input-group-btn:first-child > .btn, 103 | .input-group-btn:first-child > .btn-group > .btn, 104 | .input-group-btn:first-child > .dropdown-toggle, 105 | .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), 106 | .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { 107 | .border-right-radius(0); 108 | } 109 | .input-group-addon:first-child { 110 | border-right: 0; 111 | } 112 | .input-group .form-control:last-child, 113 | .input-group-addon:last-child, 114 | .input-group-btn:last-child > .btn, 115 | .input-group-btn:last-child > .btn-group > .btn, 116 | .input-group-btn:last-child > .dropdown-toggle, 117 | .input-group-btn:first-child > .btn:not(:first-child), 118 | .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { 119 | .border-left-radius(0); 120 | } 121 | .input-group-addon:last-child { 122 | border-left: 0; 123 | } 124 | 125 | // Button input groups 126 | // ------------------------- 127 | .input-group-btn { 128 | position: relative; 129 | // Jankily prevent input button groups from wrapping with `white-space` and 130 | // `font-size` in combination with `inline-block` on buttons. 131 | font-size: 0; 132 | white-space: nowrap; 133 | 134 | // Negative margin for spacing, position for bringing hovered/focused/actived 135 | // element above the siblings. 136 | > .btn { 137 | position: relative; 138 | + .btn { 139 | margin-left: -1px; 140 | } 141 | // Bring the "active" button to the front 142 | &:hover, 143 | &:focus, 144 | &:active { 145 | z-index: 2; 146 | } 147 | } 148 | 149 | // Negative margin to only have a 1px border between the two 150 | &:first-child { 151 | > .btn, 152 | > .btn-group { 153 | margin-right: -1px; 154 | } 155 | } 156 | &:last-child { 157 | > .btn, 158 | > .btn-group { 159 | margin-left: -1px; 160 | } 161 | } 162 | } 163 | --------------------------------------------------------------------------------
12 | new Roots_Walker_Comment)); ?> 13 |
14 | 15 | 1 && get_option('page_comments')) : ?> 16 | 26 | 27 | 28 | 29 |