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
/*-----------------------------------------------------------------------------------*/ | |
/* Remove Unwanted Admin Menu Items */ | |
/*-----------------------------------------------------------------------------------*/ | |
function remove_admin_menu_items() { | |
$remove_menu_items = array(__('Posts')); | |
global $menu; | |
end ($menu); | |
while (prev($menu)){ | |
$item = explode(' ',$menu[key($menu)][0]); |
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
(function() { | |
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
options: { | |
separator: ';', | |
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %> */' |
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
$aPhoto = $this->dbQuery( | |
"SELECT * FROM `{dbPrefix}photocontest`" | |
." WHERE `id` = ".$this->dbQuote($id, "integer") | |
,"all"" | |
); | |
$this->dbUpdate( | |
"photocontest", | |
array( | |
"votes" = $aPhoto["votes"]+1 |
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
$.simpleWeather({ | |
zipcode: '76309', | |
unit: 'f', | |
success: function(weather) { | |
html = '<h2>'+weather.city+', '+weather.region+'</h2>'; | |
html += '<img style="float:left;" width="125px" src="images/weather/'+weather.code+'.png">'; | |
html += '<p>'+weather.temp+'° '+weather.units.temp+'<br /><span>'+weather.currently+'</span></p>'; | |
html += '<a href="'+weather.link+'">View Forecast »</a>'; | |
$("#weather").html(html); |
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
// Docs at http://simpleweather.monkeecreate.com | |
$.simpleWeather({ | |
zipcode: '76309', | |
woeid: '', | |
location: '', | |
unit: 'f', | |
success: function(weather) { | |
html = '<h2>'+weather.city+', '+weather.region+' '+weather.country+'</h2>'; | |
html += '<p><strong>Today\'s High</strong>: '+weather.high+'° '+weather.units.temp+' - <strong>Today\'s Low</strong>: '+weather.low+'° '+weather.units.temp+'</p>'; | |
html += '<p><strong>Current Temp</strong>: '+weather.temp+'° '+weather.units.temp+' ('+weather.tempAlt+'° C)</p>'; |
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
$.simpleWeather({ | |
zipcode: '', | |
woeid: '2357536', | |
location: '', | |
unit: 'f', | |
success: function(weather) { | |
html = '<h2>'+weather.city+', '+weather.region+'</h2>'; | |
html += '<img style="float:left;" width="125px" src="'+weather.image+'">'; | |
html += '<p>'+weather.temp+'° '+weather.units.temp+'<br /><span>'+weather.currently+'</span></p>'; | |
html += '<a href="'+weather.link+'">View Forecast »</a>'; |
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
@font-face { | |
font-family: 'MedioRegular'; | |
src: url('/fonts/Medio-webfont.eot'); | |
src: url('/fonts/Medio-webfont.eot?#iefix') format('embedded-opentype'), | |
url('/fonts/Medio-webfont.woff') format('woff'), | |
url('/fonts/Medio-webfont.ttf') format('truetype'), | |
url('/fonts/Medio-webfont.svg#MedioRegular') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
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
$(document).ready(function() { | |
weather(); | |
setInterval(weather, 15000); | |
}); | |
function weather() { | |
$.simpleWeather({ | |
zipcode: '19104', | |
unit: 'f', | |
success: function(weather) { |
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
$(window).scroll(function() { | |
var pos = $(window).scrollTop(); | |
var el = $('.side-info'); | |
if(pos > 90 && el.is(':visible')) { | |
el.fadeOut('fast'); | |
} else if(pos < 90 && el.is(':hidden')) { | |
el.slideDown('slow'); | |
} | |
}); |
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
<!-- ORIGINAL --> | |
<hgroup> | |
<h1 class="pull-left"><a href="/">Family Hearing Center</a></h1> | |
<h2><a href="">Schedule an Appointment</a> or Call</h2> | |
<h3>{getSetting tag="phone"}</h3> | |
</hgroup> | |
<!-- UPDATED --> | |
<h1 class="pull-left"><a href="/" title="Family Hearing Center of Wichita Falls">Family Hearing Center</a></h1> |