This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function make_list_shortcode() { | |
| $subsites = get_sites(array('orderby' => 'registered', 'order' => 'DESC' )); | |
| if ( ! empty ( $subsites ) ) { | |
| $html = '<ul class="subsites">'; | |
| foreach( $subsites as $subsite ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body.login {} | |
| body.login div#login {} | |
| body.login div#login h1 {} | |
| body.login div#login h1 a {} | |
| body.login div#login form#loginform {} | |
| body.login div#login form#loginform p {} | |
| body.login div#login form#loginform p label {} | |
| body.login div#login form#loginform input {} | |
| body.login div#login form#loginform input#user_login {} | |
| body.login div#login form#loginform input#user_pass {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Convert html into correct element | |
| * @param html | |
| */ | |
| html2element:function(html) { | |
| var $template, attributes = {}, | |
| template = html; | |
| $template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) { | |
| attributes[attr.name] = attr.value | |
| }), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent() |
NewerOlder