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
@mixin arrow($position, $size, $color, $border-size: 0, $border-color: transparent) { | |
// Box we're adding the arrow to. | |
position: relative; | |
background: $color; | |
@if $border-size != 0 { | |
border: $border-size solid $border-color; | |
} | |
// Swap the position around to the position we actually need. | |
$center-position: left; |
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 ($) { | |
Drupal.clientsideValidation.prototype.clientsideValidationBoth = function (error, element) { | |
error.insertBefore(element.parents('form')); | |
var parents; | |
if (element.is(":radio")) { | |
parents = element.parents(".form-type-checkbox-tree"); | |
if(parents.length) { |
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/template.php b/template.php | |
index 86e8d7a..37b4c60 100644 | |
--- a/template.php | |
+++ b/template.php | |
@@ -623,13 +623,18 @@ function omega_template_process_html_override(&$variables) { | |
*/ | |
function omega_block_list_alter(&$blocks) { | |
if (omega_extension_enabled('layouts') && $layout = omega_layout()) { | |
- // In case we are currently serving a Omega layout we have to make sure that | |
- // we don't process blocks that will never be shown because the active layout |
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 | |
// Allow themes to specify no-query fallback CSS files. | |
$mapping = omega_generate_asset_mapping($css); | |
foreach (preg_grep('/\.no-query(-rtl)?\.css/', $mapping) as $fallback) { | |
// Don't modify browser settings if they have already been modified. | |
if ($css[$mapping[$fallback]]['data'] == $fallback && $file['browsers']['IE'] && $file['browsers']['!IE']) { | |
$file['browsers'] = array( | |
'!IE' => FALSE, | |
'IE' => 'lte IE 8', | |
); |
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
/* Header Area */ | |
.l-branding { | |
@include breakpoint($tab) { | |
@include grid-span(1, 1); | |
} | |
} | |
.l-region--header { | |
@include breakpoint($tab) { | |
@include grid-span(1, 2); | |
} |
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 | |
/** | |
* @file | |
* Contains \Drupal\hardcopy\HardcopyFormatPluginManager. | |
*/ | |
namespace Drupal\hardcopy; | |
use Drupal\Core\Config\ConfigFactory; |
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 | |
class HardcopyFormatPluginManager extends DefaultPluginManager { | |
public function __construct(\Traversable $namespaces, ConfigFactory $config) { | |
parent::__construct('Plugin/HardcopyFormat', $namespaces, 'Drupal\hardcopy\Annotation\HardcopyFormat'); | |
} | |
} |
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 | |
class HardcopyFormatPluginManager extends DefaultPluginManager { | |
protected $config; | |
public function __construct(\Traversable $namespaces, ConfigFactory $config) { | |
$this->config = $config; | |
parent::__construct('Plugin/HardcopyFormat', $namespaces, 'Drupal\hardcopy\Annotation\HardcopyFormat'); | |
} |
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 | |
namespace Drupal\hardcopy\Annotation; | |
use Drupal\Component\Annotation\Plugin; | |
class HardcopyFormat extends Plugin { | |
public $id; |
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 | |
namespace Drupal\hardcopy\Plugin; | |
use Drupal\Component\Plugin\ConfigurablePluginInterface; | |
use Drupal\Core\Plugin\PluginFormInterface; | |
interface HardcopyFormatInterface extends ConfigurablePluginInterface, PluginFormInterface { | |
public function getLabel(); |
OlderNewer