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
| <template> | |
| <div> | |
| <input v-validate data-rules="required" :class="{'has-error': errors.has("textInput")}" id="textInput" name="textInput" type="text"> | |
| <span class="error" v-show="errors.has("textInput")">{{ errors.first("textInput") }}</span> | |
| </div> | |
| </template> | |
| <script> | |
| import { find, propEq } from 'ramda' | |
| import bus from './bus' |
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
| <?php | |
| add_filter('comment_form_fields', 'qoob_reorder_comment_fields'); | |
| function qoob_reorder_comment_fields($fields){ | |
| $new_fields = array(); | |
| $myorder = array('author', 'email', 'comment'); | |
| foreach($myorder as $key){ | |
| $new_fields[$key] = $fields[$key]; |
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
| <?php | |
| /** | |
| * WordPress Bootstrap Pagination | |
| */ | |
| function wp_bootstrap_pagination( $args = array() ) { | |
| $defaults = array( | |
| 'range' => 4, | |
| 'custom_query' => FALSE, | |
| 'previous_string' => __( 'Previous', 'text-domain' ), |
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 the_breadcrumb(){ | |
| global $post; | |
| if(!is_home()){ | |
| echo '<a href="'.site_url().'">Главная</a> &raquo; '; | |
| if(is_single()){ // записи | |
| the_category(', '); | |
| echo " &raquo; "; | |
| the_title(); | |
| } | |
| elseif (is_page()) { // страницы |
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
| <?php | |
| $idObj = get_category_by_slug('s_about'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($id); | |
| ?> |
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
| <!--Post Thumbnail Linking to the Post Permalink--> | |
| <?php if ( has_post_thumbnail() ) : ?> | |
| <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> | |
| <?php the_post_thumbnail(); ?> | |
| </a> | |
| <?php endif; ?> | |
| <!--Post Thumbnail Link--> | |
| $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' ); | |
| echo $large_image_url[0] <!--Link Itself--> |
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
| <?php if ( have_posts() ) : query_posts('p=1'); | |
| while (have_posts()) : the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php the_content(); ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <? endwhile; endif; wp_reset_query(); ?> | |
| <!--Another version--> |
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
| <h3>Magnific Popup CSS3-based animation effects</h3> | |
| <div class="links"> | |
| <h4>Text-based:</h4> | |
| <ul id="inline-popups"> | |
| <li><a href="#test-popup" data-effect="mfp-zoom-in">Zoom</a></li> | |
| <li><a href="#test-popup" data-effect="mfp-newspaper">Newspaper</a></li> | |
| <li><a href="#test-popup" data-effect="mfp-move-horizontal">Horizontal move</a></li> | |
| <li><a href="#test-popup" data-effect="mfp-move-from-top">Move from top</a></li> | |
| <li><a href="#test-popup" data-effect="mfp-3d-unfold">3d unfold</a></li> | |
| <li><a href="#test-popup" data-effect="mfp-zoom-out">Zoom-out</a></li> |
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
| <div id='sandwich'> | |
| <div class='sw-topper'></div> | |
| <div class='sw-bottom'></div> | |
| <div class='sw-footer'></div> | |
| </div> |
NewerOlder