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
<?php | |
include(CFCT_PATH.'header/featured/init.php'); | |
if($image === ''){ | |
global $post; | |
if(get_post_meta($post->ID, 'wp_thumbnail', TRUE)){ | |
$class[] = 'has-featured-img'; | |
$class = implode(' ', $class); |
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/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="______your-plugin-name______" | |
CURRENTDIR=`pwd` | |
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
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
<?php | |
/* | |
Plugin Name: Debug Countdown Timer | |
Plugin URI: http://www.andrewferguson.net/wordpress-plugins/countdown-timer/ | |
Description: Debug things when they go wrong | |
Version: 0.1 | |
Author: Andrew Ferguson | |
Author URI: http://www.andrewferguson.net | |
Debug Countdown Timer - Debug things when they go wrong |
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
0 0 * * * find ~/Downloads -type f -maxdepth 1 -mtime +7 -exec rm {} \; | |
0 0 * * * find ~/Downloads -type d -maxdepth 1 -mtime +7 -exec rm -r {} \; |
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
#File: /etc/nginx/sites-available/commonWP.example.pw; | |
index index.php; | |
#fastcgi_cache start | |
set $skip_cache 0; | |
# POST requests and urls with a query string should always go to PHP | |
if ($request_method = POST) { | |
set $skip_cache 1; |
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
mkdir -p $HOME/src $HOME/tmp | |
export TMPDIR=$HOME/tmp | |
export PATH="$HOME/bin:$PATH" | |
export C_INCLUDE_PATH="$HOME/include:$C_INCLUDE_PATH" | |
export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH" | |
export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH" | |
########################################################### | |
# yasm 1.3.0 |
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
<?php | |
/* | |
Plugin Name: Subscribe2 HTML License Propagater | |
Plugin URI: http://semperplugins.com/plugins/subscribe2-html/ | |
Description: Propagates a Subscribe2 HTML License Key over a Multisite Install | |
Version: 1.0a | |
Author: Matthew Robinson | |
Author URI: http://semperplugins.com/plugins/subscribe2-html/ | |
Licence: GPL3 | |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904 |
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
<?php | |
/** | |
* Template Name: Events - Calendar - iCal | |
* | |
* Author: Andrew Ferguson, andrew@fergcorp.com / andrew.ferguson@messiahseattle.org | |
* Copyright (C) 2016 Andrew Ferguson | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
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
<?php | |
//Add to /profile-builder-hobbyist/features/content-restriction/content-restriction-meta-box.php starting after line 62 (" $wppb_selected_roles = get_post_meta( $post->ID, 'wppb-content-restrict-user-role' );" ) | |
//Note that this only applies to posts created directly using the WordPress site, not using the API (e.g. using the WordPress App) | |
// https://wordpress.stackexchange.com/questions/50043/how-to-determine-whether-we-are-in-add-new-page-post-cpt-or-in-edit-page-post-cp | |
/** | |
* is_edit_page | |
* function to check if the current page is a post edit page | |
* | |
* @author Ohad Raz <admin@bainternet.info> | |
* |
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
<?php | |
/** | |
* Plugin Name: Cozmo Tweaks | |
* Plugin URI: http://fergcorp.com | |
* Description: Tweaks to the Cozmo Profile Builder plugin. | |
* Version: 2020.03.07 | |
* Author: Fergcorp | |
* Author URI: http://fergcorp.com | |
* License: GPL3 | |
*/ |
OlderNewer