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
# We had a specific need for a client that wanted HTTPS for one domain but not subdomains | |
# that also ran a lot of sites locally. So we ran into an issue after launching without the www prefix. | |
# For days I looked for a solution and tried to get things working, with hours spent attempting many different ones. | |
# After so long and taking some time to work on another project I stumbled upon this article: https://www.siteground.com/kb/how_to_redirect_nonwww_urls_to_www/ | |
# After sifting through the comments I found the first chunk of code below that did everything for the main domain, while keeping what I had below for the subdomains to redirect from HTTPS | |
# Also be sure the main blog is updated to http://www.domain.com in the wp_options table wherever applicable. | |
# for main domain |
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/sh | |
rvm 1.9.3 do lolcommits --capture --stealth #way to fix lolcommits |
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
var interaction = (function($, window, undefined) { | |
// These are some global variables. | |
var example_a = ''; | |
// This is a standard document ready from jQuery. It allows the script to self-start. | |
$(document).ready(function(){ | |
interaction.init(); | |
var total = setInterval(function(){ | |
interaction.totals(); | |
}, 50); |
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
@{ | |
ViewBag.Title = "Index"; | |
Layout = "~/Views/Shared/_Layout.cshtml"; | |
} | |
<div class="container" id="map"> | |
<div id="map-container"> | |
<!-- RENDER MAP IN HERE --> | |
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 | |
global $post; | |
$current_date = date('j M Y'); | |
$end_date = $current_date; | |
$get_posts = tribe_get_events(array( | |
'start_date'=>$current_date, | |
'end_date'=>$end_date, |
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(); ?> | |
<div class="container" id="content-container"> | |
<div class="row content"> | |
<div class="eightcol left-column promo"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>"> |
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 'Default Events Template' is selected in Settings -> The Events Calendar -> Theme Settings -> Events Template, | |
* then this file loads the page template for all for the individual | |
* event view. Generally, this setting should only be used if you want to manually | |
* specify all the shell HTML of your ECP pages in this template file. Use one of the other Theme | |
* Settings -> Events Template to automatically integrate views into your | |
* theme. | |
* | |
* You can customize this view by putting a replacement file of the same name (ecp-single-template.php) in the events/ directory of your theme. |
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
$('li.physician').each(function(){ | |
var web = $(this).children('.physician_web').text(); | |
var shortText = jQuery.trim(web).substring(0, 50) | |
.trim(this) + "..."; | |
var address = $(this).children('.physician_address').text(); | |
address = address.replace(/\s{2,}/g, ' '); | |
address = address.replace(/ /g, '+'); | |
$(this).children('.physician_web').attr('href', 'http://' + web); |
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('header.php'); ?> | |
<div class="container"> | |
<div class="content row"> | |
<section id="top" class="twelve columns"> | |
<h5>Search for a Physician</h5> | |
<form action="physicians.php" method="get"> | |
<div class="field"> | |
<input type="text" name="q" class="text xwide input" placeholder="Search by: Physician, State or Zipcode"> |
NewerOlder