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="svg__wrapper svg__search"> | |
<div> | |
<svg shape-rendering="geometricPrecision"> | |
<use xlink:href="<?php echo is_customize_preview() ? esc_url( get_template_directory_uri() . '/images/sprite.svg' ) : '' ; ?>#search-icon"></use> | |
</svg> | |
</div> | |
</div> |
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
.svg__wrapper { | |
overflow: hidden; | |
position: relative; | |
display: inline-block; | |
a, | |
div, | |
svg { | |
height: 100%; | |
left: 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
<use xlink:href="<?php echo is_customize_preview() ? esc_url( get_template_directory_uri() . '/images/sprite.svg' ) : '' ; ?>#sprite">"></use> |
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
if ( ! function_exists( 'prefix_fonts_url' ) ) : | |
/** | |
* Register Google fonts. | |
* | |
* @return string Google fonts URL for the theme. | |
*/ | |
function prefix_fonts_url() { | |
$fonts_url = ''; | |
$fonts = array(); | |
$subsets = ''; |
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 | |
// Include a plugin from the WordPress Repository: | |
array( | |
'name' => esc_html__( 'WooCommerce', 'text-domain' ), | |
'slug' => 'woocommerce', | |
'required' => false, | |
), | |
// Include a plugin bundled within a WordPress theme: | |
array( |
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 | |
// These are incorrect: | |
__( 'Some String', 'text-domain' ); _e( 'Some string', 'text-domain' ); | |
// Instead, use: | |
esc_html__( 'Some String', 'text-domain' ); esc_html_e( 'Some String', 'text-domain' ); | |
/** | |
* For strings with necessary HTML, use the following: | |
* Note that I'm only including the actual allowed HTML for this specific string. |
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 | |
// Use anytime HTML element encloses a section of data: | |
echo esc_html( $no_html ); | |
// Use on all URLs, including those in the 'src' and 'href' attributes of an HTML element: | |
<img src="<?php echo esc_url( $escaped_url ); ?>" /> | |
// Use for inline Javascript: | |
<a href="#" onclick="<?php echo esc_js( $escaped_js ); ?>"><?php esc_html__( 'Click Here', 'text-domain' ); ?></a> |
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 | |
// Functions | |
function prefix_setup() | |
// Classes | |
class Prefix_Class {} | |
// Global Variables | |
global $prefix_passengers; |
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 | |
/** | |
* Third Party Styles | |
* More info: https://github.com/grappler/wp-standard-handles | |
*/ | |
// Incorrect | |
wp_enqueue_style( 'prefix-font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '4.2.0', 'all' ); | |
// Corrrect |
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
.header .active, | |
.header a:hover, | |
.logo_text:hover, | |
.site-archive a:hover, | |
.current-menu-item a, | |
.portfolio .project-meta a:hover { | |
text-decoration: underline !important; | |
} |