This file contains 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
$dropbox_link = esc_attr( get_post_meta( get_the_ID(), 'name_dropbox_link', true ) ); | |
$image = get_the_post_thumbnail( get_the_ID() ); | |
if( $dropbox_link ) | |
{ | |
// Format the link properly | |
$formatted = str_replace( "?dl=0", "?dl=1", $dropbox_link ); | |
// Use site logo if there is no featured image |
This file contains 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
(content body class) a | |
{ | |
display: inline-block; | |
text-decoration: none; | |
text-shadow: | |
0.05em 0 0 white, -0.05em 0 0 white, | |
0 0.05em 0 white, 0 -0.05em 0 white, | |
0.1em 0 0 white, -0.1em 0 0 white, | |
0 0.1em 0 white, 0 -0.1em 0 white; | |
background-image: linear-gradient(to right, black 0%, black 100%); |
This file contains 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
.skip-link | |
{ | |
position: absolute; | |
top: 0; | |
z-index: 9999; | |
right: 100%; | |
padding: 5px; | |
padding: 0.5rem; | |
font-size: 20px; | |
font-size: 2rem; |
This file contains 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 toggleARIAExpanded(menu) | |
{ | |
var isExpanded = menu.attr('aria-expanded'); | |
if( isExpanded === 'true' ) | |
{ | |
menu.attr('aria-expanded', 'false'); | |
menu.toggleClass('active'); | |
} | |
else |
This file contains 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
<button id="main-menu-trigger" class="main-menu-trigger" role="button">Menu</button> | |
<nav id="main-menu-container" class="main-menu-container" role="navigation"> | |
<ul id="main-menu" aria-expanded="false" role="menu"> | |
<li id="menu-item-1" class="menu-item" role="menuitem"> | |
<a href="#" role="link">Home</a> | |
</li> | |
<li id="menu-item-2" class="menu-item" role="menuitem"> | |
<a href="#" role="link">About</a> | |
</li> | |
<li id="menu-item-3" class="menu-item" role="menuitem"> |
This file contains 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
'module_layout' => array( | |
'type' => 'select', | |
'label' => __( 'Module Layout', 'wds-beaver-builder' ), | |
'default' => 'fifty-image-text', | |
'options' => array( | |
'fifty-image-text' => __( 'Image/Text', 'wds-beaver-builder' ), | |
'fifty-text-image' => __( 'Text/Image', 'wds-beaver-builder' ), | |
'fifty-text-text' => __( 'Text/Text', 'wds-beaver-builder' ), | |
), |
This file contains 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
'fields' => array( | |
'module_layout' => array( | |
'type' => 'select', | |
'label' => __( 'Module Layout', 'wds-beaver-builder' ), | |
'default' => 'fifty-image-text', | |
'options' => array( | |
'fifty-image-text' => __( 'Image/Text', 'wds-beaver-builder' ), | |
'fifty-text-image' => __( 'Text/Image', 'wds-beaver-builder' ), | |
'fifty-text-text' => __( 'Text/Text', 'wds-beaver-builder' ), | |
), |
This file contains 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 | |
/** | |
* The frontend of the Gist Module. | |
* | |
* @package wds-gist | |
*/ | |
// Get our fields. | |
$user_name = $settings->github_username; | |
$url = $settings->gist_url; |
This file contains 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
/** | |
* BLOCK: wds-gist | |
*/ | |
// Import CSS. | |
import './style.scss'; | |
import './editor.scss'; | |
const { __ } = wp.i18n; // Import __() from wp.i18n | |
const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks |
OlderNewer