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
/** | |
* Create excerpt from content | |
*/ | |
function pac_create_exerpt( $content ) { | |
return wp_trim_words($content, 15, '...'); | |
} |
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
/*========== In Pods Template, Use Function on Field Output ==========*/ | |
{@legend_items,add_icons} | |
/*========== Add to functions.php ==========*/ | |
function add_icons($items) { | |
// loop through items | |
foreach ($items as $item) : |
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
[wsuwp_json host="provost.wsu.edu" category="faculty-development" count="10" output="headlines" cache_bust="0"] |
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
// Display Wine Items | |
function cc_display_wine( $atts ) { | |
// Attributes | |
extract( shortcode_atts( | |
array( | |
'wine_id' => '1', | |
), $atts ) | |
); |
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
// Line 143 - Missing input labels | |
$content .= sprintf( "<td data-label='%s' class='%s'><label for='%s'><span class='screen-reader-text'>%s</span></label><input name='%s' type='radio' title='test' value='%s' %s id='%s' %s %s %s/></input></td>", esc_attr( wp_strip_all_tags( $choice['text'], true ) ), $cell_class, $input_id, $input_name, $input_name, esc_attr( $field_value ), $checked, $input_id, $disabled_text, $this->get_tabindex(), $logic_event ); | |
// Line 95 - Missing table header | |
$content .= "<th scope='col' class='gsurvey-likert-row-label'><span class='screen-reader-text'>Column selection options</span></th>"; |
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
const path = require('path'); | |
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' ); | |
console.log(); | |
console.log('nic look here') | |
module.exports = { | |
...defaultConfig, | |
module: { |
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
const accordion_items = document.querySelectorAll('.wsu-js-accordion-item'); | |
accordion_items.forEach(item => { | |
// Set initial state | |
const child_divs = Array.from(item.children); | |
child_divs.forEach(element => { | |
if (element.classList.contains('column') && !element.classList.contains('toggle-visible')) { | |
element.classList.add('toggle-visible'); |
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
{"lastUpload":"2020-12-18T19:18:55.936Z","extensionVersion":"v3.4.3"} |
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
{ | |
"plugins": ["stylelint-order", "stylelint-scss"], | |
"extends": "stylelint-config-prettier", | |
"rules": { | |
"at-rule-no-unknown": null, | |
"at-rule-empty-line-before": [ | |
"always", | |
{ | |
"except": [ | |
"blockless-after-same-name-blockless", |
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
map.addSource('debugging', { | |
type: 'geojson', | |
data: intersectFeature, | |
}) | |
map.addLayer({ | |
id: 'debugging', | |
type: 'fill', | |
source: 'debugging', | |
layout: {}, |