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
svg#Layer_1(xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink', version='1.1', x='0px', y='0px', width='196.669px', height='28.907px', viewbox='0', enable-background='new 0 0 196.669 28.907', xml:space='preserve') | |
g | |
path(fill='#F9F9F9', d='M45.278,26.791c0,0.833-0.675,1.508-1.509,1.508H1.51c-0.834,0-1.51-0.675-1.51-1.508V1.51 C0,0.676,0.676,0,1.51,0h42.26c0.834,0,1.509,0.676,1.509,1.51V26.791z') | |
g | |
g | |
polygon(fill='#505050', points='20.837,18.4 18.625,18.4 20.008,9.905 22.22,9.905 ') | |
path(fill='#505050', d='M16.765,9.905l-2.109,5.843l-0.25-1.258l0,0l-0.743-3.82c0,0-0.091-0.765-1.05-0.765H9.127l-0.041,0.144 c0,0,1.065,0.222,2.313,0.971l1.922,7.381h2.305l3.519-8.496H16.765z') | |
path(fill='#505050', d='M34.162,18.4h2.031l-1.771-8.496h-1.778c-0.821,0-1.022,0.633-1.022,0.633L28.324,18.4h2.305l0.463-1.262 h2.812L34.162,18.4z M31.729,15.395l1.162-3.18l0.653,3.18H31.729z') | |
path(fill='#505050', d= |
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
<!-- Phone --> | |
<div id="response"> | |
<pre>Enjoy your coupon.</pre> | |
</div> | |
<form> | |
<div class="popup" style="position:relative; z-index:1; font-size:1.2em; width:320px; height:405px; border:4px solid #7f8faf; background:#FFF;"> | |
<div class="row"> | |
<div class="col-lg-10 col-lg-offset-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
/* Available Variables */ | |
$small-screen: em-calc(768); | |
$medium-screen: em-calc(1280); | |
$large-screen: em-calc(1440); | |
$screen: "only screen"; | |
$small: "only screen and (min-width:"#{$small-screen}")"; | |
$medium: "only screen and (min-width:"#{$medium-screen}")"; | |
$large: "only screen and (min-width:"#{$large-screen}")"; | |
$landscape: "only screen and (orientation: landscape)"; |
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
// Converts "px" to "em" using the ($)em-base | |
@function convert-to-em($value) { | |
$value: strip-unit($value) / strip-unit($em-base) * 1em; | |
@if ($value == 0em) { $value: 0; } // Turn 0em into 0 | |
@return $value; | |
} | |
// Working in ems is annoying. Think in pixels by using this handy function, emCalc(#) | |
// Just enter the number, no need to mention "px" | |
@function emCalc($values...) { |
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 dbtng_example_entry_insert($entry) { | |
$return_value = NULL; | |
try { | |
$return_value = db_insert('dbtng_example') | |
->fields($entry) | |
->execute(); | |
} | |
catch (Exception $e) { | |
drupal_set_message(t('db_insert failed. Message = %message, query= %query', |
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 _modulename_getData($field, $table) { | |
try { | |
if (empty($field)) { | |
throw new Exception("The field is undefined."); | |
} | |
// rest of code here... | |
} | |
catch (Exception $e) { | |
/* | |
Here you can either echo the exception message like: |
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
/* Basic Layout */ | |
#page-bounds { | |
width: 990px; | |
padding: 0; | |
margin: 0 auto; | |
} |