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: NCI.ie | |
Plugin URI: http://www.damiencarbery.com | |
Description: Customisations of Genesis Sample theme for NCI.ie. | |
Author: Damien Carbery | |
Version: 0.1 | |
$Id: n-c-i.php 4192 2017-01-30 11:18:28Z damien $ | |
*/ |
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 Information | |
Plugin URI: http://www.damiencarbery.com | |
Description: Add debug information as a html comment for the specified IP address. | |
Author: Damien Carbery | |
Version: $Revision: 4185 $ | |
$Id: mu-debug-info.php 4185 2017-01-23 17:09:47Z damien $ | |
*/ |
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 get_header(); ?> | |
<?php // $Id: archive-pati_videos.php 4154 2016-12-05 10:54:02Z damien $ ?> | |
<div id="main-content"> | |
<div class="container"> | |
<div id="content-area" class="clearfix"> | |
<div id="left-area"> | |
<?php if (is_user_logged_in()) { ?> | |
<?php | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); |
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 | |
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_page(array( | |
'page_title' => 'PR Services', | |
'menu_title' => 'PR Services', | |
'menu_slug' => 'pr-services', | |
'capability' => 'edit_posts', | |
'position' => 35, | |
'redirect' => 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
<?php | |
/* | |
Plugin Name: Years Since Shortcode (Hardcoded) | |
Plugin URI: http://www.damiencarbery.com | |
Description: Shortcode to display years since a date specified in the code. | |
Author: Damien Carbery | |
Version: 0.1 | |
*/ | |
// '[years_since]' shortcode to display number of years since 1st Jan 2010. |
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 | |
// Use transients. | |
if ( false === ( $transient_data = get_transient( 'transient_name' ) ) ) { | |
// Regenerate transient. | |
} | |
// Use post meta. | |
if ( false === ( $post_meta_data = get_post_meta(1, 'post_meta_name', true ) ) ) { | |
// Regenerate post meta. |
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: WordPress MultiSite Delete Sample Content | |
Plugin URI: http://www.damiencarbery.com/2017/07/multisite-delete-sample-content/ | |
Description: Delete the sample post, page and comment that is created for a new site in a WordPress MultiSite installation. Network Activate this plugin. | |
Author: Damien Carbery | |
Version: 0.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
<?php | |
/* | |
Plugin Name: MultiSite Upgrade - Set HTTP authentication | |
Plugin URI: http://www.damiencarbery.com/2017/08/multisite-allow-for-password-protected-site/ | |
Description: Set the basic authentication username and password during multisite upgrades. | |
Author: Damien Carbery | |
Version: 1.0 | |
Author URI: http://www.damiencarbery.com/ | |
*/ |
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: Utility Shortcodes | |
Plugin URI: http://www.damiencarbery.com/2017/09/utility-shortcodes/ | |
Description: Various simple but useful shortcodes. | |
Author: Damien Carbery | |
Version: 0.2 | |
*/ | |
function us_simple_shortcodes($atts, $content, $code) { |