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 if_page_or_ancestor_page_is($page_slug = NULL) | |
{ | |
$is_page = false; | |
if (is_page()) { | |
global $post; | |
/* Get an array of Ancestors and Parents if they exist */ | |
$parents = get_post_ancestors($post->ID); | |
$all_pages = array_reverse(array_merge($parents, array($post->ID))); |
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
## Interim PM Process | |
- Alan to write up high level user story's for the clients requirements. | |
- Al to met with Zoe (PM) to discuss the user stories and Zoe Gnatt chart and make specification with task allocation (populate trello). | |
- **If designing process only** | |
Alan and Zoe (PM) then to meet with Matt to pass over user story's. Matt to start his design process(**TBC** - making wireframes, design). | |
- **Else if design and build process** | |
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
$roll = rand(0,99); | |
$percentage_chance = 10; | |
// Override based on IP for testing | |
if (in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1'))) { | |
$percentage_chance = 100; | |
} | |
if ($roll < $percentage_chance) { | |
echo 'Within 10% roll chance'; |
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
<!DOCTYPE html> | |
<div style="display:flex;justify-content:center;align-items:center;"> | |
<div style="width:400px;height:300px;"> | |
<div data-video="I_2D8Eo15wE" data-autoplay="0" data-loop="1" id="youtube-audio"></div> | |
<div style="clear:both;margin:10px;text-align:center"> | |
</div> | |
</div> | |
</div> |