Skip to content

Instantly share code, notes, and snippets.

Avatar

John Sundberg bhwebworks

View GitHub Profile
@bhwebworks
bhwebworks / gist:1695981
Created Jan 28, 2012
Standard copyright information
View gist:1695981
© Copyright 2009, [Your Company Name]. All rights reserved
@bhwebworks
bhwebworks / gist:1696012
Created Jan 28, 2012
HTML and PHP as entered in PHP module
View gist:1696012
<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 Jan 28, 2012
Modified code in error.php
View gist:1696076
defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {
header('Location: http://blackhillswebworks.com/404');
exit;
}
?>
@bhwebworks
bhwebworks / gist:1695991
Created Jan 28, 2012
Current year as PHP date variable
View gist:1695991
<?php echo date('Y');?>
@bhwebworks
bhwebworks / gist:1696003
Created Jan 28, 2012
Copyright text as PHP variable
View gist:1696003
<div id="copyright" >
&copy; <?php echo $copyright_text; ?>
</div>
@bhwebworks
bhwebworks / gist:1696007
Created Jan 28, 2012
Copyright text with current year as PHP date variable
View gist:1696007
&copy; Copyright 2009-<?php echo date('Y');?>, [Your Company Name]. All Rights Reserved
@bhwebworks
bhwebworks / gist:1696490
Created Jan 29, 2012
Code for the modified em-events-manager.php file. Changes in lines 4,7,12,14,16,25-26,81-85,165
View gist:1696490
<?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:1695997
Created Jan 28, 2012
Copyright text with current year as PHP date variable
View gist:1695997
&copy; 2009-<?php echo date('Y');?>, [Your Company Name]. All rights reserved
@bhwebworks
bhwebworks / gist:1696392
Created Jan 29, 2012
VideoPress embed shortcode with width
View gist:1696392
[wpvideo U0t5LnWv w=633]
@bhwebworks
bhwebworks / gist:1696398
Created Jan 29, 2012
VideoPress embed code
View gist:1696398
<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>