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 | |
/** | |
* Returns a object of ALL venues ids | |
*/ | |
public function IDs(){ | |
global $wpdb; | |
$query = "select ID from {$wpdb->prefix}posts where post_type = 'venues' and post_status = 'publish'"; | |
$tmp = array(); |
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 | |
$venues = new Venues; | |
$venue_ids = $venues->IDs(); | |
$count = count( $venue_ids ); | |
$i = 1; | |
print '<pre>'; | |
foreach( $venue_ids as $id ){ | |
$email = $venues->contactEmail( $id ); | |
if ( ! $email ){ |
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 | |
foreach( $items as $item ){ | |
if ( ! $item['name'] ) | |
continue; | |
print $item['name']; | |
// more code | |
// and stuff going on 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
post-receive#!/bin/sh | |
### | |
# This file will deploy code from the repository into the | |
# specified web-root. | |
# | |
# File name: post-receive | |
# | |
# Instructions: | |
# 1. Uncomment and edit the lines below as needed |
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
$('#jdugc_upload_form').on('submit', function(event) { | |
event.preventDefault(); | |
$('.loading-icon').show(); | |
$(this).ajaxSubmit({ | |
target: 'myResultsDiv', | |
type: 'post', | |
dataType: 'json', | |
start: function(){ | |
$('.loading-icon').show(); |
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
#!/usr/bin/env bash | |
echo "Running boostrap.sh..." | |
echo "+---------------------------------------------------+" | |
echo "| Update apt-get |" | |
echo "+---------------------------------------------------+" | |
apt-get update | |
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
#!/usr/bin/env bash | |
#apt-get install -y git-all | |
## Themes | |
REPOS[0]='[email protected]:zanematthew/sample.git' | |
REPOS[1]='[email protected]:zanematthew/sample-2.git' | |
for repo in ${REPOS[*]} | |
do |
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 | |
/** | |
* Sends user to the start page on first activation, as well as each time the | |
* plugin is upgraded to a new version | |
* | |
* @access public | |
* @since 1.1 | |
* @return void | |
*/ |
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 | |
/** | |
* Manging of version numbers when plugin is activated | |
*/ | |
function MYPLUGIN_install() { | |
// Add Upgraded From Option | |
$current_version = get_option( MYPLUGIN_NAMESPACE . '_version' ); | |
if ( $current_version ) { |
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 | |
/** | |
* Add our links to the plugin page, these show under the plugin in the table view. | |
* | |
* @param $links(array) The links coming in as an array | |
* @param $current_plugin_file(string) This is the "plugin basename", i.e., my-plugin/plugin.php | |
*/ | |
function my_plugin_action_links( $links, $current_plugin_file ){ | |
if ( $current_plugin_file == 'my-plugin/plugin.php' ){ |