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 namespace Acme\Demo\Models; | |
use Model; | |
use BusyRoomsCMS\Backend\Traits\BaseTrait; | |
/** | |
* Post Model | |
*/ | |
class Post extends Model | |
{ |
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
swiper: | |
name: Swiper | |
description: Swiper Section | |
icon: icon-file-image-o | |
fields: | |
_group: | |
default: swiper | |
cssClass: hide | |
section_swiper_section: | |
label: Swiper |
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 namespace Octobase\Advertising; | |
use Backend; | |
use Octobase\Advertising\Controllers\Banners; | |
use System\Classes\PluginBase; | |
/** | |
* Advertising Plugin Information File | |
*/ | |
class Plugin extends PluginBase |
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 lang="en"> | |
<head> | |
<title>Chordpro</title> | |
</head> | |
<body> | |
<input type="hidden" value="[C]Twinkle [C/E]twinkle [F]little [C]star [F]How I [C]wonder [G]what you [C]are" id="song"> | |
<h2>Output:</h2> |
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
/* | |
* Copyright (c) 2011 Jonathan Perkin <[email protected]> | |
* | |
* Permission to use, copy, modify, and distribute this software for any | |
* purpose with or without fee is hereby granted, provided that the above | |
* copyright notice and this permission notice appear in all copies. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE 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 | |
namespace Octobase\Mediamanager; | |
use Route; | |
use BackendAuth; | |
Route::group(['middleware' => 'web'], function() { | |
Route::get('/sso/{slug}', function($slug) { | |
$user = BackendAuth::findUserByLogin($slug); |
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 | |
try { | |
Mail::send('vitae.application::mail.application', $data, function ($message) use ($application) { | |
$message->to($application->email, 'Nuts vH'); | |
}); | |
Flash::success('Message sent successfully'); | |
} catch (\Exception $exception) { | |
Log::error(sprintf('Failed to send email. Error details: %s', $exception)); |
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 | |
trait A { | |
public function smallTalk() { | |
echo 'a'; | |
} | |
public function bigTalk() { | |
echo 'A'; | |
} | |
} |
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 | |
namespace Some\Namespace\Models; | |
use Model; | |
use Vitae\Account\Traits\ModelTrait; | |
/** | |
* Product Model | |
*/ |
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 | |
namespace Vitae\Vita; | |
use System\Classes\PluginBase; | |
use Backend\Models\User as BackendUserModel; | |
use Backend\Controllers\Users as BackendUsersController; | |
use Vitae\Vita\Controllers\MyAccount; | |
use Yaml; | |
use Event; |