<?php Event::listen('inline-post-text', function ($post) { if (!empty($post->text) and !isEnglish($post->text)) { echo Theme::section('autotranslator::link', ['post' => $post]); } });
function LBDP($row) { if ($row == null || $row == '0000-00-00 00:00:00') { return '-'; } if (isEnglish()) { return dateToGreg($row, '/', false); } else { return dateToJalali($row, '/', !isEnglish()); } }