function getAttribute($params = '') { $params = __params("tax=&"); }
function __chek_file($cf = '') { //v1 $cf = __params($cf, 'file=&dir=part&return=fullpatch&plugin='); //$abspatch = substr(__FILE__,0,strpos(__FILE__,'plugins')); $patch = ABSPATH . 'wp-content\\plugins\\' . $cf['plugin'] . '\\'; if (is_dir($patch . $cf['dir'] . '\\')) { $patch = $patch . $cf['dir'] . '\\'; } else { return false; } if ($cf['return'] == 'dir') { return $patch; } if (empty($cf['file'])) { return false; } if (is_file("{$patch}{$cf['file']}.php")) { return "{$patch}{$cf['file']}.php"; } return false; }