Пример #1
0
 /**
  * Detects a Shopp post type editor.
  *
  * @since 1.4
  *
  * @return bool True if the admin page is a Shopp post-type editor, false otherwise.
  **/
 public static function posteditor()
 {
     return ShoppProduct::posttype() == ShoppFlow()->request('post_type') && 'edit' == ShoppFlow()->request('action');
 }
Пример #2
0
function ShoppFlowController()
{
    if (!($Flow = ShoppFlow()) || !$Flow->controller()) {
        return false;
    }
    return $Flow->controller();
}