Skip to content

Instantly share code, notes, and snippets.

View DrMabuse23's full-sized avatar
🏠
Working from home

Pascal Brewing DrMabuse23

🏠
Working from home
View GitHub Profile
<?php use yii\helpers\Html; ?>
<?php $this->beginContent('@app/views/layouts/main.php'); ?>
<div class="col-lg-8">
<?= $content ?>
</div>
<?php $this->endContent(); ?>
//************************************************************************//
// These mixins/functions are deprecated
// They will be removed in the next MAJOR version release
//************************************************************************//
@mixin box-shadow ($shadows...) {
@include prefixer(box-shadow, $shadows, spec);
@warn "box-shadow is deprecated and will be removed in the next major version release";
}
@mixin background-size ($lengths...) {
/**
* User: Pascal Brewing
* E-Mail: pascalbrewing@gmail.com
* Date: 17.02.14
* Time: 22:55
*/
var galleryModel = {"id":null,"title":null,"description":null,"size":null,"height":null,"width":null,"path":null,"create":null,"update":null,"user":null};
var galleryModels = [
{
"id":15,
<?php
/**
* 2014 , 02 28
*/
namespace common\modules\mediating\assets;
use yii\web\AssetBundle;
<?php
namespace common\models;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\helpers\Security;
use yii\web\IdentityInterface;
/**
* Class User
<?php
/**
* User: Pascal Brewing
* Date: 21.11.13
* Time: 18:39
* @package ${DIR}.TwigViewRenderer
* Class TwigViewRenderer
*/
namespace common\helpers;
$thumb-sprite-dimensions: true !default;
$thumb-sprite-spacing: 20px !default;
$thumb-sprite-repeat: no-repeat !default;
$thumb-grafik-cloud-spacing: $thumb-sprite-spacing;
$thumb-grafik-cloud-repeat: $thumb-sprite-repeat;
$thumb-grafik-cloud-dimensions: $thumb-sprite-dimensions;
@DrMabuse23
DrMabuse23 / contact.php
Last active August 29, 2015 13:57
captcha using
<?php if (CCaptcha::checkRequirements()): ?>
<?php echo $form->textFieldControlGroup($model, 'verifyCode', array(
'help' => 'Please enter the letters as they are shown in the image above.',
'controlOptions' => array(
'before' => $this->widget(
'system.web.widgets.captcha.CCaptcha',
array(),
true
) . '<br/>'
),
/**
* Created by pascal on 13.03.14.
*/
(function($,ko){
"use strict";
$(function(){
var url = "http://localhost/yii-press/backend/web/mediating/api-active-record/get-images-by-gallery";
var deleteUrl = "http://localhost/yii-press/backend/web/mediating/api-active-record/remove-image-from-gallery";
<?php
/**
* @author Pascal Brewing
*
* Class BsSelect2
*
*/
class BsSelect2 extends CInputWidget
{