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 blahblahblah() { | |
$hours = get_op_hours(); | |
$current_time = dateTime::createFromFormat('h:i a', date('h:i a', current_time('timestamp'))); | |
$close_time = dateTime::createFromFormat('h:i a', $hours['close']); | |
$open_time = dateTime::createFromFormat('h:i a', $hours['open']); | |
if (is_business_open($hours['open'], $hours['close'])) { | |
$diff = $close_time->diff($current_time); |
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 get_hours_array() { | |
$shop_hours_array = array(); | |
if (have_rows('hours') ) { | |
while (have_rows('hours') ) { | |
the_row(); | |
$shop_hours_array[get_sub_field('acf_fc_layout')] = array( | |
'open' => get_sub_field('open_time'), | |
'close' => get_sub_field('close_time') |
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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
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
// Agencies | |
Launch [launchjourney.com] Digital Strategy, UX | |
Huge Atlanta [hugeinc.com] Digital Strategy, Full Digital, UX | |
Focus Lab [focuslabllc.com] Branding, EE | |
Razorfish [razorfish.com] - Full Service | |
FourtyFour [fourtyfour.com] Digital, Design, Product, UX | |
Adrenaline [adrenalineshot.com] Experience Design | |
JDA [jdaworldwide.com] - National Full Service Advertising, Branding. They're a network of agencies. | |
BBDO [bbdoatl.com] - Advertising Agency |
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
#!/bin/sh | |
# Installation instructions: | |
# - Download the file | |
# - mv finalize.sh finalize | |
# - chmod +x finalize | |
# - mv finalize /usr/local/bin | |
# - now you can type `finalize` in any directory and it should work | |
# NOTE: this will rename all the files in your current directory, so be careful |
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
// The whole idea is to set the parent_slug to 'edit.php?post_type=cpt-name | |
// Everything else you can customize as you need to. | |
// Replace {posttype} with your post type name. (Without the brackets of course) | |
${posttype}_options_page = acf_add_options_page(array( | |
'page_title' => '{posttype} Options', | |
'menu_title' => '{posttype} Options', | |
'menu_slug' => 'acf-cpt-{posttype}', | |
'capability' => 'edit_posts', | |
'position' => false, |
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
This is from a chat with their technical support. Their actual troubleshooting guide only tells you to reboot, uninstall, and reinstall. This should be in their support page. | |
Go to ~/Library/Application Support/Adobe | |
Remove the OOBE and AAMUpdater folders | |
Go to /Library/Application Support/Adobe | |
Remove the OOBE, AAMUpdater and AdobeApplicationManager folders | |
Go to your Applications folder and delete the Adobe Creative Cloud folder (if it exists) |
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
public static function span_strings($string, $class = null) { | |
/* Takes a string, and surrounds anything surrounded by 4 asterisks with | |
* a span tag with an optional class name. | |
* | |
* If a class is specified in the second argument, it will add | |
* a class to the span tag. | |
*/ | |
$match_phrase = "/\*\*([^**]*)\*\*/"; | |
$replace_string = '<span'; |
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
public static function span_strings($string, $class = null) { | |
/* Takes a string, and surrounds anything surrounded by 4 asterisks with | |
* a span tag with an optional class name. | |
* | |
* If a class is specified in the second argument, it will add | |
* a class to the span tag. | |
*/ | |
$match_phrase = "/\*\*([^**]*)\*\*/"; | |
$replace_string = '<span'; |
OlderNewer