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
error_reporting(E_ALL); | |
ini_set('display_errors', 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
for (var i = 0; i < cars.length; i++) { | |
text += cars[i] + "<br>"; | |
} |
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 | |
/** | |
* Implements hook_wysiwyg_editor_settings_alter(). | |
*/ | |
function salva_wysiwyg_editor_settings_alter(&$settings, &$context) { | |
if ($context['profile']->editor == 'ckeditor') { | |
if (arg(0) == 'node') { | |
$nid = arg(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
var page = require('webpage').create(), | |
address, output, size; | |
if (phantom.args.length < 2 || phantom.args.length > 3) { | |
console.log('Usage: rasterize.js URL filename'); | |
phantom.exit(); | |
} else { | |
address = phantom.args[0]; | |
output = phantom.args[1]; | |
page.viewportSize = { width: 2000, height: 100 }; |
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 | |
function THEME_preprocess_page(&$vars) { | |
foreach ($variables['page']['content']['content']['content'] as $key => &$var) { | |
if (isset($var['#block']) && $key !== 'delta_blocks_messages') { | |
$var['#block']->css_class = 'first-content-block-in-region'; | |
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
<?php | |
function THEME_preprocess_html(&$vars) { | |
drupal_add_css(drupal_get_path('theme', 'THEME') . '/css/lte-ie8.css', array( | |
'group' => 9999, | |
'weight' => 9999, | |
'browsers' => array( | |
'IE' => 'lte IE 8', | |
'!IE' => FALSE | |
), |
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
jQuery.fn.equalHeight = function() { | |
var $el = $(this); | |
var colsHighest = 0; | |
$el.css('min-height', 0).each(function() { | |
var height = $(this).height(); | |
if (height > colsHighest) { | |
colsHighest = height; | |
} | |
}); |
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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>table</title> | |
<style type="text/css"> | |
.odd { background-color: #808080; } | |
.generated_for_mobile { margin-bottom: 30px } |
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 | |
function languages_list_custom() { | |
$languages = icl_get_languages('orderby=code'); | |
$languages_count = count($languages); | |
if(!empty($languages) && $languages_count>1){ | |
echo '<div id="lang_sel_list_custom"><ul>'; | |
$i=1; | |
global $sitepress_settings; | |
$show_flags = $sitepress_settings['icl_lso_flags']; |
NewerOlder