Skip to content

Instantly share code, notes, and snippets.

View AndrewSepic's full-sized avatar

Andrew AndrewSepic

  • Mapbox
  • Earth, for now
View GitHub Profile
// From page-stream.php - replace your div.col-lg-3 with this
//
<div class="col-lg-3 text-center">
<p>All Proceeds benefit
<img src="<?php echo get_stylesheet_directory_uri(); ?>/img/new/shiftmeals.png" class="donate-logo">
</p>
<script src="https://donorbox.org/widget.js" paypalExpress="false"></script><iframe allowpaymentrequest="" frameborder="0" height="100%" name="donorbox" scrolling="no" seamless="seamless" src="https://donorbox.org/embed/shiftmeals_hug-_your_farmer" style="max-width: 500px; min-width: 250px; max-height: none !important" width="100%"></iframe>
</div>
//
<?php // array of filters (field key => field name)
$GLOBALS['my_query_filters'] = array(
'field_5eed6c96d918c' => 'level',
'field_5eed6d09d918d' => 'length',
'field_5eed6d40d918e' => 'instructor',
'field_5eed6d75d918f' => 'language'
);
// action
// Create Filters ?>
<div id="vod-filters">
<h2>Filters <span class="arrow down-default"></span></h2>
<div class="filters-wrap">
<?php foreach( $GLOBALS['my_query_filters'] as $key => $name ):
// get the field's settings without attempting to load a value
$field = get_field_object($key, false, false);
//var_dump($field);
// set value if available
# This file lists which files should not be pushed by WPE DevKit. Feel free to
# add, remove, or comment lines to change the sync behavior, but note that this
# file will be recreated with the default values if it is missing. There are a
# few additional files, including wp-config.php, which are ignored no matter
# what as synchronizing these files would almost certainly result in an unusable
# install.
# Temporary and OS files
*~
.DS_Store
<script>
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# Scout Multi-site specific
wp-content/plugins/
<?php
//Check that the user is logged in/ has been verified and has cookies set
if ( isset( $_COOKIE['isAuthorized'] ) ){
$current_user = $_COOKIE['clientName'];
echo '<p>Welcome ' . $current_user . ' | <a class="mboLogOut" href="#">Logout</a></p>';
?>
<script>
<?php
/**
* Template part for displaying the 50/50 Module
*
* @link https://www.advancedcustomfields.com/resources/flexible-content/
*
* @package Prana
*/
// settings
<?php
/**
* Template part for displaying the instagram Feed. Dependent upon Smashballoon's instagram feed pro
*
* @link https://www.advancedcustomfields.com/resources/flexible-content/
*
* @package Prana
*/
// settings
@AndrewSepic
AndrewSepic / search.php
Created January 8, 2021 21:07
Search Results template for Prana Framework
<?php
/**
* The template for displaying search results pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package Prana
*/
get_header(); ?>