sftp://[email protected]
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
| You can find the admin interface for the Module Missing Mesage Fixer at `/admin/config/system/module-missing-message-fixer` |
I was trying to get the fitVids.js to work on a WP site, and couldn't get it! I'd copied and pasted their example code, switched out my own selectors, and nothing!!! I kept trying different selectors, messed around a bit with the code, no dice. Finally checked the terminal and saw that I had an error.
I have a simple jQuery script in a WordPress plugin that is using a jQuery wrapper like this:
$(document).ready(function(){
// jQuery code is in here
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 | |
| /** | |
| * This is project's console commands configuration for Robo task runner. | |
| * | |
| * @see http://robo.li/ | |
| */ | |
| if (file_exists(dirname(__FILE__) . '/RoboLocal.php') && !isset($_ENV['PANTHEON_ENVIRONMENT'])): | |
| include(dirname(__FILE__) . '/RoboLocal.php'); | |
| global $config; |
Why do both of these work? Why does one need single quotes around the array key and the other doesn't?
echo '<li><a href="' . $item['slug'] . '">' . $item['title'] . '</a></li>';
echo "<li><a href=\"$item[slug]\">$item[title]</a></li>";
On the other hand, this doesn't work:
From ACF comes the following:
<?php
$fields = get_fields();
if( $fields ): ?>
$blue: #4900ff;
.some_class {
background-color: rgba($blue, 1);
&:hover {
background-color: rgba($blue, .5);
}
}This is Jason's Responsive Background Image Twig Macro translated into PHP for use with ACF image fields:
<?php function responsive_ACF_background_image($image, $display_style, $css_path) {
$retina_style = $display_style . "2x";
echo "<style>
$css_path {
background-image: url(\"" . $image[sizes][$display_style] . "\");
}
@mediaI am working with the following code:
<div>
<div>
<div>
<div>