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 | |
public function cartthrob_pre_process($options) | |
{ | |
if (isset($_FILES)) { | |
// load the libraries and models | |
ee()->load->model('file_upload_preferences_model'); | |
// get upload preferences | |
$uploadPrefs = ee()->file_upload_preferences_model->get_file_upload_preferences(null, 2); |
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
@media only screen and (min-width: 375px) { | |
/* iPhone 6 Portrait */ | |
} | |
@media only screen and (min-width: 414px) { | |
/* iPhone 6 Plus Portrait */ | |
} | |
@media only screen and (min-width: 480px) { | |
/* Medium Sized Mobile */ | |
} | |
@media only screen and (min-width: 667px) { |
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 | |
/** | |
* Register site routes. | |
* | |
* @return array | |
*/ | |
public function registerSiteRoutes() | |
{ | |
return array( |
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
/* See http://mrdanadams.com/2012/pixel-ems-css-conversion-sass-mixin/ */ | |
/* Default font size in pixels if not overridden. */ | |
$baseFontSize: 16; | |
/* Convert PX units to EMs. | |
Ex: margin-right: pem(16); | |
*/ | |
@function pem($pxval, $base: $baseFontSize) { | |
@return #{$pxval / $base}em; |
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
* {} | |
tag {} | |
[attribute] {} | |
[attribute="value"] {} | |
.class {} |
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
// this used to work: | |
function login_temporary_user() | |
{ | |
if( $this->EE->session->userdata['member_id'] == 0) | |
{ | |
$this->EE->session->create_new_session(1, TRUE); | |
$this->EE->session->userdata['group_id'] = 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
{exp:channel:entries | |
channel="producers" | |
disable="member_data|categories|category_fields|pagination" | |
dynamic="no" | |
url_title="{segment_3}" | |
} | |
{exp:stash:set no_results_prefix="nested_"} | |
{stash:page_title}{title}{/stash:page_title} |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Test_plugin', | |
'pi_version' => '1.0', | |
'pi_author' => 'GDmac', | |
'pi_author_url' => '', | |
'pi_description' => 'Testing stuff', | |
'pi_usage' => Test_plugin::usage() | |
); |
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
# path: | |
PS1='\[\e[0;33m\]⚡\[\e[m\] \[\e[0;31m\]${PWD##*/}\[\e[m\] ' | |
# general shorcuts | |
alias ll="ls -lahG" | |
alias reload="source ~/.profile" | |
alias up="cd .." | |
alias back="cd -" | |
alias desktop="cd ~/Desktop" | |
alias server="python -m SimpleHTTPServer" |
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 els = document.querySelectorAll('.left .trash'); for(var i = 0; i < els.length; i++) { els[i].click(); } |
OlderNewer