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
yii\base\ErrorException: Illegal offset type in /path/to/plugin/kgrote/siteutilities/src/fields/Regionselect.php:95 | |
Stack trace: | |
#0 /path/to/site/craft/vendor/craftcms/cms/src/web/ErrorHandler.php(76): yii\base\ErrorHandler->handleError(2, 'Illegal offset ...', '/Users/kristeng...', 95) | |
#1 /path/to/plugin/kgrote/siteutilities/src/fields/Regionselect.php(95): craft\web\ErrorHandler->handleError(2, 'Illegal offset ...', '/Users/kristeng...', 95, Array) | |
#2 /path/to/site/craft/vendor/craftcms/cms/src/base/Element.php(1936): loveco\siteutilities\fields\Regionselect->normalizeValue(Array, Object(craft\elements\Entry)) | |
#3 /path/to/site/craft/vendor/craftcms/cms/src/base/Element.php(793): craft\base\Element->normalizeFieldValue('region') | |
#4 /path/to/site/craft/vendor/yiisoft/yii2/base/ArrayableTrait.php(126): craft\base\Element->__get('region') | |
#5 /path/to/site/craft/vendor/craftcms/cms/src/web/View.php(504): yii\base\Model->toArray(Array, Array, false) | |
#6 /path/to/site/craft/vendor/craftcms/cms/src/helpers/ElementHe |
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 | |
public function normalizeValue($value, ElementInterface $element = null) | |
{ | |
$opts = $this->setOptions(); | |
$value = array | |
( | |
'value' => $value, | |
'label' => $opts[$value] |
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
<a href="https://vimeo.com/180766765">Watch Video</a> | |
<div id="video-wrap"></div> | |
<script> | |
$('a').on('click', function(e){ | |
e.preventDefault(); | |
var videoUrl = $(this).attr('href'); | |
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
<a href="https://vimeo.com/181033143">Link!</a> | |
Becomes: | |
<a href="http://192.168.1.123:8005/https://vimeo.com/181033143">Link!</a> |
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
<(p|ul|ol|h1|h2|h3|h4|h5|h6|div|table|blockquote)>[.\S\s]*?<\/(p|ul|ol|h1|h2|h3|h4|h5|h6|div|table|blockquote)> |
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
{# 'groupname' is the shortname of your category group #} | |
{% for category in entry.groupnameCategories %} | |
{{ category.title }} | |
{{ category.slug }} | |
{% endfor %} |
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
{% set bannerBg %} | |
{% for bgImg in entry.bannerBg %} | |
{{ bgImg.url }} | |
{% endfor %} | |
{% endset %} |
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 option in entry.metaRobots.options %}{{option}}{% if not loop.last %}, {% endif %}{% endfor %} |
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 if (! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Wygwam_codesnippet_ext | |
{ | |
var $name = 'Wygwam Code Snippet'; | |
var $version = '1.0'; | |
var $description = 'Wygwam integration of the Code Snippet CKEditor plugin.'; | |
var $docs_url = ''; | |
var $settings_exist = 'n'; |
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
{exp:comment:entries | |
channel='products' | |
author_id='1' | |
dynamic='no' | |
limit='5' | |
} | |
{!-- HTML --} | |
{/exp:comment:entries} |
NewerOlder