Through both a yearning for familiarity and the knowledge that corporate computer defenestration is a terminal act, I have arduously forged this list of tips, less useful for those on a quest to be an ultimate iUser than for those who want to retain a glimpse, however fleeting, of the Windows/Linux they used to know.
-- [tsmith512][]
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 | |
/** | |
* tsmith512's Common WordPress Functions | |
* | |
* Handy WordPress functions for cleaner theme code and WordPress output. This | |
* is not (yet) a plugin because it is so closely tied to the theme code. Include | |
* it directly in a theme's functions.php file. | |
* | |
* @package tsmith512-wordpress | |
* @author Taylor Smith (www.tsmithcreative.com) |
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
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc | |
index fe3d7a7..c2c95cc 100644 | |
--- a/includes/bootstrap.inc | |
+++ b/includes/bootstrap.inc | |
@@ -1794,6 +1794,11 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO | |
*/ | |
function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) { | |
if ($message) { | |
+ | |
+ if ($type == 'error') { |
- 16 Pixels: For Body Copy. Anything Less Is A Costly Mistake, Smashing Magazine (2011).
- Accordions Are Not Always the Answer for Complex Content on Desktops, Nielsen Norman Group (2014).
- Auto-Forwarding Carousels and Accordions Annoy Users and Reduce Visibility, Nielsen Norman Group (2013).
- Avoid Category Names That Suck, Nielsen Norman Group
- Avoid Format-Based Primary Navigation, Nielsen Norman Group (2014).
- Avoid Inline Scrolling Areas, Baymard Institute
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="item"> </div> | |
</div> |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="a">300px</div> | |
<div class="b">1</div> |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="a">First</div> | |
<div class="b">Second</div> |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="item"> </div> | |
</div> |
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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
/** | |
* Examples for Presentation: Advanced Responsive Web Design | |
* Part 2: Compass Basics | |
* For More Information: http://github.com/tsmith512/arwd | |
*/ |
OlderNewer