This file contains hidden or 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
//FIX PLYR AUTOPLAY ON IOS & FAST LOADING: | |
var app = {}; | |
/* + GET JS | |
-------------------------------------------------------------------------- | |
https://gist.github.com/iamrobert/a8907c30a66961340d2dd4cd53493ba9 | |
==========================================================================*/ |
This file contains hidden or 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
//EXTERNAL SITE URL - LIVE URL FROM FLEXIContent | |
$sponsor_url = 'https://packsanctuary.neticrm.tw/en/civicrm/contribute/transact?reset=1&id=31'; | |
$dogCachePath = JPATH_CACHE; | |
$mode = 0755; | |
// Create the subfolder called dogs in cache folder | |
if (!JFolder::create($dogCachePath . "/dogs", $mode)) | |
{ | |
// Throw error message and stop script. |
This file contains hidden or 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
<details class="no-cb"> | |
<summary class="no-cb" data-noedit> | |
<h3>I found a stray dog what do I do?</h3> | |
</summary> | |
<div class="p-all" data-noedit> | |
<div class="aa"> | |
<p>Answer Question</p> | |
</div> | |
</div> | |
</details> |
This file contains hidden or 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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Untitled Document</title> | |
</head> | |
<body> | |
<p> I wanted a way when admins click "other", then the hidden field would show<br> | |
(<strong>'Other Job Title'</strong>):<br> |
This file contains hidden or 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 ob_start(); ?> | |
<?php | |
// captured from image field | |
if ( $mod_use_image && $item->image ): | |
if ( $item->image != "" ) { | |
$isotopePic = str_replace( "/s_", "/b_", $item->image ); |
This file contains hidden or 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 | |
/** | |
* replace: libraries/windwalker/vendor/windwalker/filesystem/Path.php | |
* Part of Windwalker project. | |
* | |
* @copyright Copyright (C) 2014 - 2015 LYRASOFT. All rights reserved. | |
* @license GNU Lesser General Public License version 3 or later. | |
*/ | |
This file contains hidden or 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 | |
//components/com_flexicontent/classes/helpers/upload.php | |
//Handles Chinese | |
defined( '_JEXEC' ) or die( 'Restricted access' ); | |
class flexicontent_upload | |
{ | |
static function makeSafe($file, $language = null) | |
{ |
This file contains hidden or 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 | |
// No direct access | |
defined( '_JEXEC' )or die( 'Restricted access' ); | |
$detailsField_id = 999; | |
$detailsFieldName = 'field_image'; | |
$detailsImgVid = ''; | |
FlexicontentFields::getFieldDisplay( $item, "$detailsFieldName" ); |
This file contains hidden or 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 | |
$galleryFieldName = 'galleryFieldName'; | |
$galleryfield_id = 99; | |
FlexicontentFields::getFieldDisplay( $item, "$galleryFieldName" ); | |
if ( FlexicontentFields::getFieldDisplay( $item, "$galleryFieldName" ) != "" ) { | |
?> |
This file contains hidden or 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
JFactory::getApplication()->enqueueMessage('Blue Message', 'notice'); | |
JFactory::getApplication()->enqueueMessage('Error Message', 'error'); | |
JFactory::getApplication()->enqueueMessage('Warning Message', 'warning'); | |
JFactory::getApplication()->enqueueMessage('Message Message', 'message'); | |
JFactory::getApplication()->enqueueMessage('Success Message', 'success'); | |
JFactory::getApplication()->enqueueMessage('Blank Message', ''); |