Skip to content

Instantly share code, notes, and snippets.

View mkorostoff's full-sized avatar

Jersey Len mkorostoff

View GitHub Profile
<?php
/**
* Preprocess and Process Functions SEE: http://drupal.org/node/254940#variables-processor
* 1. Rename each function and instance of "rsn_base" to match
* your subthemes name, e.g. if you name your theme "footheme" then the function
* name will be "footheme_preprocess_hook". Tip - you can search/replace
* on "rsn_base".
* 2. Uncomment the required function to use.
*/
@mkorostoff
mkorostoff / html.tpl.php
Created May 11, 2012 15:06
Preprocessor function to add body classes
<!DOCTYPE html>
<!--[if IEMobile 7]><html class="iem7" <?php print $html_attributes; ?>><![endif]-->
<!--[if (lte IE 6)&(!IEMobile)]><html class="ie6 ie6-7 ie6-8" <?php print $html_attributes; ?>><![endif]-->
<!--[if (IE 7)&(!IEMobile)]><html class="ie7 ie6-7 ie6-8" <?php print $html_attributes; ?>><![endif]-->
<!--[if (IE 8)&(!IEMobile)]><html class="ie8 ie6-8" <?php print $html_attributes; ?>><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html <?php print $html_attributes . $rdf_namespaces; ?>><!--<![endif]-->
<head>
<?php print $head; ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="MobileOptimized" content="width">
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along
# with this software.
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
# base-files version 4.0-9
# ~/.bash_profile: executed by bash(1) for login shells.
$ drush @alias feeds-import athlete_importer
The drush command '@alias feeds-import athlete_importer' could not be [error]
found. Run `drush cache-clear drush` to clear the commandfile cache
if you have installed new extensions.
$ drush ev "nbco_athletes_import_featured();"
WD php: QueryPathParseException: DOMDocument::load(): I/O warning : [error]
failed to load external entity
"file:///C:/xampp/htdocs/nbcsports/docroot/files/featured-athletes.xml"
(C:\xampp\htdocs\nbcsports\docroot\profiles\nbcsports\libraries\querypath\QueryPath.php:
2106) in QueryPathParseException::initializeFromError() (line 2346 of
C:\xampp\htdocs\nbcsports\docroot\profiles\nbcsports\libraries\querypath\QueryPath.php).
QueryPathParseException: DOMDocument::load(): I/O warning : failed to load external entity "file:///C:/xampp/htdocs/nbcsports/docroot/files/
featured-athletes.xml" (C:\xampp\htdocs\nbcsports\docroot\profiles\nbcsports\libraries\querypath\QueryPath.php: 2106) in QueryPathParseExcep
tion::initializeFromError() (line 2346 of C:\xampp\htdocs\nbcsports\docroot\profiles\nbcsports\libraries\querypath\QueryPath.php).
sqid Subqueue identifier qid Queue identifier. reference title
89 2 newsml_article-5677 NewsML Article importer: Top stories - Judo
includeCSS(
"http://localhost:8082/Warner-Common-Files/styles_v3.css",
"http://localhost:8082/Warner-Common-Files/1x1.gif",
"http://acquia.github.com/Warner-Common-Files/styles_v3.css"
);
@mkorostoff
mkorostoff / gist:3035636
Created July 2, 2012 20:51
Mike JS fix
jQuery(function() {
for (i=4; i<=jQuery('div.views-row').size(); i++) {
jQuery('div.views-row-' + i + ' img.lazy').lazyload({
effect: "fadeIn"
});
}
});
@mkorostoff
mkorostoff / gist:3040772
Created July 3, 2012 16:15
features to revert
drush fr -y rsn_most_commented_articles rsn_default_view_modes_config rsn_homepage rsn_footer_menu rsn_scoreboard rsn_blocks_and_menus rsn_poll rsn_sponsor_content_type rsn_quote_content_type rsn_top_stories rsn_team_landing rsn_video_landing_page rsn_placehoders rsn_article_blog_insider_updates rsn_default_content rsn_photo_gallery rsn_ramp_integration_template
<?php
/**
* This template is used to print a single field in a view. It is not
* actually used in default Views, as this is registered as a theme
* function which has better performance. For single overrides, the
* template is perfectly okay.
*
* Variables available:
* - $view: The view object
* - $field: The field handler object that can process the input