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
function get_bitly_link($post_id){ | |
$post = get_page($post_id); | |
if($post->post_status == "published" || 1 == 1){ | |
if(false === ($short_link = get_post_meta($post_id,'bitly_link',true))){ | |
$http = _wp_http_get_object(); | |
$args['login'] = self::BITLY_USERNAME; | |
$args['apikey'] = self::BITLY_APIKEY; | |
$args['longUrl'] = get_permalink($post_id); | |
if(is_wp_error($response = $http->request('https://api-ssl.bitly.com/v3/shorten?'.http_build_query($args),array('method'=>'GET')))){ | |
return $response; |
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 | |
/* These are the variable that tell the subject of the email and where the email will be sent.*/ | |
$emailSubject = 'Customer Has a Question!'; | |
$mailto = '[email protected]'; | |
/* These will gather what the user has typed into the fieled. */ | |
$nameField = $_POST['name']; |
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 | |
class SquidooStatsDashboard_WordPressOAuthSupport { | |
function oauth_template_redirect() { | |
if (preg_match( sprintf('#^/oauth/%s/([^/\?]+)#', get_class($this)), $_SERVER['REQUEST_URI'], $matches )) { | |
do_action('oauth_request', $matches[1]); | |
do_action('oauth_request_'.$matches[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
varname = EntityLoad("FormBuilder_159",{Field_70=0,Deleted=0}); | |
varname = EntityToQuery(varname); |
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
<cffunction name="contactForm" access="public" displayname="Contact Form" output="true"> | |
<div class="detail_bg" style="background:url(/images/moreinfo_bg.png) no-repeat; width:822px; height:501px; margin-left:40px; "> | |
<div style="padding-top:6px; padding-left:24px;"> | |
<h2 style="font-size:14px; text-transform:uppercase;">Request to be contacted by a member of sales</h2> | |
</div> | |
<div style="width:538px; margin-top:20px; margin:20px auto; line-height:normal;"> | |
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
#main_nav ul li:hover ul{ | |
left:auto; | |
} | |
#main_nav ul li ul{ | |
position:absolute; | |
top:44px; | |
z-index:3; | |
left:-3000em; | |
} |
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
<cffunction name="newsroom" output="true" access="public" displayname="Newsroom Display"> | |
<cfargument name="section" required="false" default="Firm/Case News" displayname="News Section"> | |
<cfargument name="pagename" required="false" default="newsroom" displayname="News Page"> | |
<cfargument name="perpage" required="false" default="10"> | |
<cf_ccms_getdata_ptsi formid="81" thisthing=true> | |
<cfset startrw = 1> | |
<cfset currentpage = 1> | |
<cfset whereclse = ""> | |
<cfif StructKeyExists(url,'year')> |
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
ul{ | |
list-style:none; | |
margin: 0; | |
padding: 0; | |
} | |
ul li{float:left;} | |
ul li a{ | |
display:block; |
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
<cffunction name="getModelDescDefault"> | |
<cfargument name="model" required="true"> | |
<cfset z = CreateObject('models.#arguments.model#')> | |
<cfset fieldStruct = {}> | |
<cfloop array="#getMetaData(z).properties#" index="i"> | |
<cfif StructKeyExists(i,'desc')> | |
<cfset fieldStruct['#i.name#']['desc'] = #i.desc#> | |
<cfset fieldStruct['#i.name#']['default'] = #i.default#> | |
</cfif> | |
</cfloop> |
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
<cffunction name="productSearchBar" displayname="Product Search Bar" access="public" output="true"> | |
<cfargument name="formid" hook="formid" displayname="Form Name" required="yes" type="numeric"> | |
<cf_ccms_getdata_ptsi formid="#formid#" thisthing=true> | |
<cfparam name="url.brand" default=""> | |
<cfparam name="url.category" default=""> | |
<cfparam name="url.subcategory" default=""> | |
<cfif url.brand neq "" AND url.category neq ""> | |
<cfset bd = lcase(ListFirst(url.brand,"'"))> | |
<cfset whereclse = ""> | |
<cfif url.brand NEQ '0'> |