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
body:not(.is-touch) * { | |
cursor: url(https://uploads-ssl.webflow.com/5c290f904fdbba7493c2f04c/5c4ddff0a29a8f44aeefbb66_reddot.png) 3 3, auto; | |
cursor: -webkit-image-set(url(https://uploads-ssl.webflow.com/5c290f904fdbba7493c2f04c/5c4ddff0a29a8f44aeefbb66_reddot.png) 1x, url(https://uploads-ssl.webflow.com/5c290f904fdbba7493c2f04c/5c4de00da29a8f4533efbb6f_reddotx2.png) 2x) 3 3, auto; | |
} | |
body:not(.is-touch) .cursor-mask, | |
body:not(.is-touch) .cursor-mask__inner { | |
z-index: 1100; | |
-webkit-backface-visibility: hidden; | |
backface-visibility: hidden; |
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 add_grav_forms_permissions(){ | |
$role = get_role('editor'); | |
$role->add_cap('gravityforms_view_entries'); | |
$role->add_cap('gravityforms_delete_entries'); | |
$role->add_cap('gravityforms_view_entry_notes'); | |
$role->add_cap('gravityforms_export_entries'); | |
} | |
add_action('admin_init','add_grav_forms_permissions'); |
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
{ | |
"name" : "Vendor/Project", | |
"description" : "", | |
"keywords" : [ "wordpress" ], | |
"license" : "GPL-2.0+", | |
"authors" : [ | |
{ | |
"name" : "HappyHippopotam.us", | |
"email" : "[email protected]", | |
"role" : "Lead Developer" |
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
cd ~/Sites/valet/ | |
# https://github.com/aaemnnosttv/wp-cli-valet-command | |
wp valet new projectname --dbname=agency.project --dbuser=root --dbprefix=wp_ --admin_user=Hippo --admin_password=password [email protected] | |
# for bedrock: | |
wp valet new projectname --project=bedrock --dbprefix=wp_ | |
# INSTALL ROOTS: https://roots.io/sage/docs/theme-installation/ | |
# go to themes folder: | |
composer create-project roots/sage your-theme-name |
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
namespace App\Controllers; | |
use Sober\Controller\Controller; | |
class App extends Controller | |
{ | |
public static function siteLogo() | |
{ | |
return get_theme_mod('upload_logo'); | |
} |
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
class Page extends Controller | |
{ | |
// Pass on all fields from Advanced Custom Fields to the view | |
protected $acf = true; | |
// Pass on only field_1 from Advanced Custom Fields to the view | |
// protected $acf = 'project_intro_fields'; | |
// Pass on multiple fields from Advanced Custom Fields to the view | |
// protected $acf = ['field_1', 'field_2']; |
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
/////////////////////////// | |
// /resources/views/partials/shortcodes/faqs.blade.php | |
<ul class="accordion span12" data-allow-all-closed="true" data-deep-link="true" data-deep-link-smudge="true" data-deep-link-smudge-delay="600" data-accordion id="deeplinked-accordion-with-smudge"> | |
@foreach($faqs as $faq) | |
<li class="accordion-item" data-accordion-item> | |
<a href="#{{ $category }}{{ $loop->iteration }}" class="accordion-title">{!! $faq->post_title !!}</a> | |
<div class="accordion-content" data-tab-content id="answer{{ $loop->iteration }}"> | |
{!! $faq->post_content !!} | |
</div> | |
</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
<?php | |
/** | |
* Admin assets | |
*/ | |
add_action('admin_enqueue_scripts', function () { | |
// global $post; | |
// $my_post_type = 'page'; | |
if ( stristr( $_SERVER['REQUEST_URI'], 'post.php' ) !== false // just for the post editor | |
// && is_object( $post ) |
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
module.exports = { | |
'root': true, | |
'extends': 'eslint:recommended', | |
'globals': { | |
'wp': true, | |
}, | |
'env': { | |
'node': true, | |
'es6': true, | |
'amd': true, |
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
{ | |
"lighthouseVersion": "9.6.1", | |
"requestedUrl": "https://mundopepsi.com/", | |
"finalUrl": "https://mundopepsi.com/", | |
"fetchTime": "2022-08-19T20:37:06.772Z", | |
"gatherMode": "navigation", | |
"runWarnings": [], | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Safari/537.36 Chrome-Lighthouse", |
OlderNewer