/** * Defines what assets need to include. * The method is called separate from the Render method during shortcode registration. */ public function assets($attrs = array(), $fromBody = false, $fromHook = false) { if (is_admin()) { return false; } if (is_array($attrs)) { foreach ($attrs as $attr) { $id = isset($attr['id']) ? (int) $attr['id'] : $this->getDefaultId(); OPanda_AssetsManager::requestAssets($id, $fromBody, $fromHook); } return true; } else { return false; } }