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 | |
| /** | |
| * Plugin Name: Multisite User Meta | |
| * Plugin URI: https://foxland.fi/user-meta-in-wordpress-multisite/ | |
| * Description: Test multisite user meta with text value. | |
| * Version: 1.0.0 | |
| * Author: Sami Keijonen | |
| * Author URI: https://foxland.fi/ | |
| * Text Domain: multisite-user-meta | |
| * Domain Path: /languages |
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 ( 'post' == get_post_type() ) : ?> | |
| <div class="entry-meta"> | |
| <?php | |
| /* Set up byline. */ | |
| printf( '<span class="byline"><span class="entry-author" ' . hybrid_get_attr( 'entry-author' ) . '><span class="screen-reader-text">%1$s </span><a class="entry-author-link" href="%2$s" rel="author" itemprop="url"><span itemprop="name">%3$s</span></a></span></span>', | |
| esc_html_x( 'Author', 'Used before post author name.', 'kuorinka' ), | |
| esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), | |
| get_the_author() | |
| ); | |
| ?> |
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 | |
| /** | |
| * Template Name: Front Page | |
| * | |
| * Show pages info. You can set it under Appearance >> Customize. | |
| * | |
| * @package Mina olen | |
| * @subpackage Template | |
| * @since 1.0.0 |
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
| textarea, | |
| input[type="text"], | |
| input[type="button"], | |
| input[type="submit"], | |
| input[type="reset"], | |
| input[type="search"] { | |
| -webkit-appearance: none; | |
| border-radius: 0; | |
| } |
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 | |
| /** | |
| * Enqueue scripts. | |
| */ | |
| function prefix_scripts() { | |
| // Enqueue responsive navigation. | |
| wp_enqueue_script( 'prefix-navigation', get_template_directory_uri() . '/js/responsive-nav.js', array(), '1.38', true ); | |
| // Enqueue JS functions. |
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 | |
| function sonsa_comment_form_fields( $fields ) { | |
| // Required field. | |
| $req = get_option( 'require_name_email' ); | |
| // Add placeholder for name. | |
| $fields['author'] = str_replace( | |
| '<input', |
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
| /** | |
| * Enable lightbox in feature image when on singular page. | |
| * | |
| * @see: https://wordpress.org/support/topic/help-activating-slb-in-my-theme?replies=14 | |
| */ | |
| function toivo_post_thumbnail() { | |
| if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { | |
| return; | |
| } |
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
| <span class="genericon genericon-home" aria-hidden="true"></span><span class="screen-reader-text">Home</span> |
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 class="entry-summary" <?php hybrid_attr( 'entry-summary' ); ?>> | |
| <?php | |
| the_excerpt(); | |
| ?> | |
| </div><!-- .entry-summary --> |
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
| Example codes for article Learning accessibility in WordPress themes, part I. |