Skip to content

Instantly share code, notes, and snippets.

View bhwebworks's full-sized avatar

John Sundberg bhwebworks

View GitHub Profile
@bhwebworks
bhwebworks / gist:1696074
Created January 28, 2012 22:49
Default code in error.php
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
@bhwebworks
bhwebworks / gist:1695991
Created January 28, 2012 22:23
Current year as PHP date variable
<?php echo date('Y');?>
@bhwebworks
bhwebworks / gist:1696012
Created January 28, 2012 22:27
HTML and PHP as entered in PHP module
<div style="text-align: center;">
&copy; Copyright 2009-<?php echo date('Y');?>, Black Hills Web Works. All Rights Reserved
</div>
@bhwebworks
bhwebworks / gist:1696076
Created January 28, 2012 22:50
Modified code in error.php
defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {
header('Location: http://blackhillswebworks.com/404');
exit;
}
?>
@bhwebworks
bhwebworks / gist:1695997
Created January 28, 2012 22:24
Copyright text with current year as PHP date variable
&copy; 2009-<?php echo date('Y');?>, [Your Company Name]. All rights reserved
@bhwebworks
bhwebworks / gist:1696003
Created January 28, 2012 22:25
Copyright text as PHP variable
<div id="copyright" >
&copy; <?php echo $copyright_text; ?>
</div>
@bhwebworks
bhwebworks / gist:1696007
Created January 28, 2012 22:26
Copyright text with current year as PHP date variable
&copy; Copyright 2009-<?php echo date('Y');?>, [Your Company Name]. All Rights Reserved
@bhwebworks
bhwebworks / gist:1696490
Created January 29, 2012 00:52
Code for the modified em-events-manager.php file. Changes in lines 4,7,12,14,16,25-26,81-85,165
<?php
/**
* @author marcus
* modified by John Sundberg
* Standard events list widget
*/
class EM_Widget_by_category extends WP_Widget {//changed
var $defaults;
@bhwebworks
bhwebworks / gist:1696392
Created January 29, 2012 00:20
VideoPress embed shortcode with width
[wpvideo U0t5LnWv w=633]
@bhwebworks
bhwebworks / gist:1696398
Created January 29, 2012 00:23
VideoPress embed code
<embed type="application/x-shockwave-flash"
src="http://s0.videopress.com/player.swf?v=1.03" width="400"
height="300" wmode="direct" seamlesstabbing="true"
allowfullscreen="true" allowscriptaccess="always" overstretch="true"
flashvars="guid=U0t5LnWv&amp;isDynamicSeeking=true">
</embed>