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 | |
allFiles ( $dir, &$returnArr ) { | |
foreach( listFoldier( $dir ) as $row ) { | |
if( $row->isDir() ) allFiles( $dir . '/' $row, $returnArr ) else | |
$returnArr[] = $dir . '/' . $row; | |
} | |
} | |
?> |
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
// Drupal 8 developper http://codenator.org | |
function THEMENAME_preprocess_views_view_field__field_tags(&$vars) { | |
$rendered = $vars['field']->getItems($vars['row']); | |
//added icon on front of tags | |
$renderedArray[] = [ | |
'#markup' => '<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>' | |
]; | |
if (is_array($rendered)) { | |
foreach ($rendered as $one) { | |
//dpm($one['rendered']); |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: <SERVICE_NAME> | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Script to run asp.net 5 application in background | |
### END INIT INFO |
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
#!/bin/bash | |
apt-get update | |
apt-get install -y git-core autoconf bison libxml2-dev libbz2-dev libmcrypt-dev libcurl4-openssl-dev libltdl-dev libpng-dev libpspell-dev libreadline-dev | |
mkdir -p /etc/php7/conf.d | |
mkdir -p /etc/php7/cli/conf.d | |
mkdir /usr/local/php7 | |
cd /tmp | |
git clone https://github.com/php/php-src.git --depth=1 | |
cd php-src | |
./buildconf |
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
{ | |
"locked": false, | |
"version": 2, | |
"targets": { | |
"DNXCore,Version=v5.0": { | |
"EntityFramework.Commands/7.0.0-rc1-16146": { | |
"type": "package", | |
"dependencies": { | |
"EntityFramework.Relational": "7.0.0-rc1-16146", | |
"EntityFramework.Relational.Design": "7.0.0-rc1-16146", |
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
# Codenator Drupal 8 developer http://codenator.org | |
server { | |
listen 80; | |
server_name drupal.local; | |
root /home/alex/nginx/www/drupal.local/public_html; | |
access_log /home/alex/nginx/www/drupal.local.access.log; | |
error_log /home/alex/nginx/www/drupal.local.error.log info; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base href="{{ config('site_url') }}"/> | |
<meta charset="utf=8"/> | |
<title>{{ field.pagetitle }}</title> | |
<link type="text/css" rel="stylesheet" href='assets/css/revo.css'/> | |
<link rel="canonical" href="{{ link(field.id) }}"/> | |
{{ jQuery }} | |
</head> |
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 | |
$controllers = 'core/components/webdev/controllers/'; | |
$routeId = $modx->resource->id; | |
switch ($routeId){ | |
case 1: | |
$modx->getService('home','homeController',$controllers); | |
return $modx->home->homeAction(); | |
break; |
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 | |
include_once ('/../model/webdev/webdev.class.php'); | |
class homeController extends Webdev{ | |
function homeAction(){ | |
$twig =& $this->modx->twig; | |
$field = $this->modx->resource; | |
$jQuery = $twig->render('chunks/jQuery.twig'); | |
$jQueryBeautyofCode = $twig->render('chunks/jQueryBeautyofCode.twig'); | |
$siteFooter = $twig->render('chunks/siteFooter.twig'); |
NewerOlder