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
# vue router open minded .htaccess | |
# abcd/assets/efgh.ext -> assets/efgh.ext | |
# abcd/efgh/ijk-what-else -> index.html | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)assets/(.*)$ assets/$2 [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
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 | |
/* @var View $this */ | |
/* @var VV_block $vv */ | |
/** @noinspection PhpUndefinedVariableInspection */ | |
$vv = $_vars; | |
/** @var VV_post[] $pages */ | |
$pages=$vv->fieldUidsValue("pages"); | |
?> |
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
/** | |
* For slackers... Quick methos selectors pluggin dealing with attribute names and values. | |
* @author David Marsalone | |
* @example $(".myslector").findByAttr("my-attribute-name","my attribute value"); | |
* @example $(".myslector").filterByAttr("my-attribute-name","my attribute value"); | |
*/ | |
(function ( $ ) { | |
/** | |
* Quick method to get the descendants of each element in the current set of matched elements, filtered by an attribute name and its value | |
* @param {string} attributeName The attribute name you are looking for. |
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 | |
/* | |
Some image sample | |
*/ | |
/** @var VV_post|VV_block $vv **/ | |
?> | |
<img class="ce-que-vous-voulez" | |
<?=$vv->wysiwyg() | |
->attrFieldImg |
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 | |
/** | |
* To know if a class uses a trait | |
* @param string $className The class name to inspect | |
* @param string $traitName The trait class name | |
* @return bool true if $className uses $traitName | |
*/ | |
function is_using($className,$traitName){ | |
return in_array($traitName,class_uses($className)); | |
} |
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 | |
//paste this code somewhere in your project config.... | |
//define what kind of users we will play with... | |
Boot::$events->addEventListener(EVENT_BUILD_MODEL,function($recordType){ | |
if($recordType=="R_user"){ | |
R_user::$roleAdminTextOnlyEnabled=false; | |
R_user::$roleSimpleHumanEnabled=false; | |
R_user::$roleWriterEnabled=false; | |
} |
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
[format_string_rich_text]{ | |
h2{ | |
font-family:cursive; | |
margin-bottom: 4px; | |
text-align: left; | |
} | |
h3{ | |
font-family:cursive; | |
margin-bottom: 4px; | |
text-align: left; |
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 | |
/* @var $this View */ | |
/* @var $vv VV_special_page */ | |
$vv = $_vars; | |
$richTextAttributes=""; | |
if(TheHuman::isAdmin()){ | |
//custom config for the rich text editor, hide and display buttons. | |
$richText=new RichText(); | |
$richText->h1=true; | |
$richText->h2=true; |
NewerOlder