/** * @param string $img * @return string */ public static function getPhotoDir($img) { return DWDevisApplication::getUploadDir() . $img; }
{ self::admin_devis(1); } public function admin_devis_2() { self::admin_devis(2); } public function admin_devis_3() { self::admin_devis(3); } public function admin_devis_4() { self::admin_devis(4); } public function admin_devis($state) { define(DEVIS_FILTER_STATE, (int) $state); self::render_backend(); } public function render_backend() { require_once self::getBackDir() . 'index.php'; } } add_action("init", array('DWDevisApplication', "init")); register_activation_hook(__FILE__, array('DWDevisApplication', 'install')); register_uninstall_hook(__FILE__, array("DWDevisApplication", "uninstall")); add_shortcode('dwdevis', array('DWDevisApplication', 'render_frontend')); require_once DWDevisApplication::getRootDir() . 'includes.php'; }