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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<section> | |
<h2>Comments</h2> | |
<a id="comment-44736"></a> | |
<!-- THEME DEBUG --> | |
<!-- THEME HOOK: 'comment__comment__news' --> |
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
//Completely changing the book tree markup | |
function mskcc_preprocess_book_tree(&$variables) { | |
//strings in need of insertion | |
$replacementBeginning = '<li class="left-navigation__item"><a class="left-navigation__item__link" '; | |
$replacementMiddle = '<span class="left-navigation__item__link__txt">'; | |
$replacementEnd = '</span><span class="arrow-right"></span></a></li>'; | |
//split up the block by link for easy loop through | |
$tree_array = explode("\n", $variables['tree']); |
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
( ! ) Warning: include(/Users/aprohl/sites/mskcc/mskcc_deploy/core/lib/Drupal/Core/Logger/RfcLogLevel.php): failed to open stream: Too many open files in /Users/aprohl/sites/mskcc/mskcc_deploy/core/vendor/composer/ClassLoader.php on line 385 | |
Call Stack | |
# Time Memory Function Location | |
1 0.0043 248456 {main}( ) ../index.php:0 | |
2 0.0180 1697640 Drupal\Core\DrupalKernel->handle( ???, ???, ??? ) ../index.php:24 | |
3 0.0384 5108272 Drupal\Core\DrupalKernel->getHttpKernel( ) ../DrupalKernel.php:585 | |
4 0.0384 5108376 Drupal\Core\DependencyInjection\Container->get( ???, ??? ) ../DrupalKernel.php:1167 | |
5 0.0384 5108880 Symfony\Component\DependencyInjection\Container->get( ???, ??? ) ../Container.php:21 | |
6 0.0384 5109480 service_container_prod->getHttpKernelService( ) ../Container.php:326 |
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
<nav class="pager" role="navigation" aria-labelledby="pagination-heading"> | |
<h4 id="pagination-heading" class="visually-hidden">Pagination</h4> | |
<ul class="pager__items"> | |
<li class="pager__item is-active"> | |
<a href="/admin/content/doctors?title=&body=&affiliation=&status=1&keys=" title="Current page"> | |
<span class="visually-hidden"> | |
Current page | |
</span>1</a> | |
</li> | |
<li class="pager__item"> |
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
<div class="node__content"> | |
<form id="yamlform-100248" class="yamlform" enctype="multipart/form-data" action="/test-form/form" method="post" accept-charset="UTF-8"> | |
<details id="edit-contact-information" class="form-wrapper" open="open"><summary role="button" aria-controls="edit-contact-information" aria-expanded aria-expanded>Contact Information</summary><div class="details-wrapper"><div class="form-item form-type-textfield form-item-first-name"> | |
<label for="edit-first-name" class="form-required">First Name</label> | |
<input type="text" id="edit-first-name" name="first_name" value="" size="60" maxlength="255" class="form-text required" required="required" aria-required="true" /> | |
</div> | |
<div class="form-item form-type-textfield form-item-last-name"> | |
<label for="edit-last-name" class="form-required">Last Name</label> | |
<input type="text" id="edit-last-name" name="last_name" value="" size="60" maxlength="255" class="form-text required" required="required" aria-required="true |
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 mti_theme_preprocess_block(&$vars) { | |
switch ($vars['elements']['#block']->delta) { | |
case 'main_callboard': | |
die(print_r($vars)); | |
break; | |
} | |
} |
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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]> <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if IE 7 ]> <html class="lt-ie10 lt-ie9 lt-ie8 ie7" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if IE 8 ]> <html class="lt-ie10 lt-ie9 ie8" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if IE 9 ]> <html class="lt-ie10 ie9" lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"> <!--<![endif]--> | |
<!--html.tpl.php--> |
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
.front { | |
.header-container { | |
background-image: url("../images/screw.jpg"); | |
height:400px; | |
background-attachment: fixed; | |
background-position: 0% 0%; | |
background-repeat: no-repeat; | |
background-size: cover; | |
@include breakpoint(1px 499px) { |
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
Example: ALTER TABLE `field_data_field_test_field` CHANGE `field_test_field_value` `field_test_field_value` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL |
NewerOlder