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
/*add max-width from table columns */ | |
/* add this styles from wysywig window */ | |
.overflow-long-text { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
word-break: break-word; | |
} | |
.overflow-long-text p { |
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 | |
function file_force_download($file) { | |
if (file_exists($file)) { | |
// сбрасываем буфер вывода PHP, чтобы избежать переполнения памяти выделенной под скрипт | |
// если этого не сделать файл будет читаться в память полностью! | |
if (ob_get_level()) { | |
ob_end_clean(); | |
} |
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 | |
$path = realpath(dirname($_SERVER['SCRIPT_FILENAME'])) | |
. DIRECTORY_SEPARATOR . 'dir' . DIRECTORY_SEPARATOR . $file . '.php'; |
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 | |
if (extension_loaded('imagick')) { | |
echo 'imagick is installed <br>'; | |
} else { | |
echo 'imagick is not installed <br>'; | |
} | |
if(class_exists("Imagick") ) { | |
echo 'class imagick is found <br>'; |
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
try { | |
} catch (\Exception $exception) { | |
echo 'Error (File: ' . $exception->getFile() . ':' | |
. $exception->getLine() . '): ' . $exception->getMessage(); | |
} |
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
/* | |
Non-responsive Bootstrap | |
If you need responsive delete this. | |
Don't forget: | |
add standart viewport | |
replace navbar | |
add col-md column instead col-xs if it need | |
current viewport:<meta name="viewport" content="width=device-width"> | |
standart viewport:<meta name="viewport" content="width=device-width, initial-scale=1"> | |
*/ |
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
Route::resource( | |
'year', | |
'YearController', | |
[ | |
'except' => ['index', 'create', 'store', 'show', 'edit', 'update', 'destroy'] | |
] | |
); |
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 App\Http\ViewComposers; | |
use Illuminate\View\View; | |
use App\Http\Requests; | |
class TitleComposer | |
{ |
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 | |
/** | |
* File with functions called in the wordpress site by including this file | |
* | |
* Name all functions by prefix "Lr" for clear understanding in the wordpress code | |
*/ | |
//init laravel | |
require __DIR__.'/../../bootstrap/autoload.php'; |
OlderNewer