==================================================== Getting Joomla! module, template & plugin parameters
$param = $this->params->get('paramName', defaultValue);
#Get Page Title# | |
$doc = JFactory::getDocument(); | |
$page_title = $doc->getTitle(); | |
#Set Page Title# | |
$con = JFactory::getConfig(); | |
$sitename = $con->getValue('config.sitename'); $ | |
doc->setTitle($page_title.' - '.$sitename); |
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
<?php | |
//////////////////////////////////////////////////////////////////// | |
// Read the full tutorial on Chesscaptcha and Laravel here: // | |
// http://dev.emar.gr/blog/laravel-5-chess-captcha-authentication // | |
//////////////////////////////////////////////////////////////////// | |
// The array that contains the configuration for the php side | |
$config = [ | |
'divId'=>'chesscaptcha', | |
'whitesquare'=>'#f0d9b5', |
#!/bin/bash | |
# permissions | |
if [ "$(whoami)" != "root" ]; then | |
echo "Not enough privileges. Run this with sudo." | |
exit | |
fi | |
echo Please, enter website domain [of the form domainname.dev] | |
read NAME |
var gulp = require('gulp'), | |
livereload = require('gulp-livereload'), | |
less = require('gulp-less'), | |
connect = require('gulp-connect'), | |
minifyCSS = require('gulp-minify-css'); | |
gulp.task('connect', function() { | |
connect.server({ | |
root: 'files', | |
livereload: true, |
/* | |
Reload the page on file change. | |
At first it took me a while to figure out how to setup the server from | |
the gruntfile to work with livereload and automatically reload the page in the browser. | |
Here are the steps that worked for me - it needs some fine tuning though. | |
*/ | |
Useful links: | |
------------- | |
https://www.npmjs.com/package/gulp-connect |