/** * Check whether style has been added to ShoppStyles controller * * The values for list defaults to 'queue', which is the same as enqueue for * scripts. * * @param string $handle Handle used to add script. * @param string $list Optional, defaults to 'enqueued'. Others values are 'registered', 'queue', 'done', 'to_do' * @return bool */ function shopp_style_is($handle, $list = 'enqueued') { global $ShoppStyles; if (!is_a($ShoppStyles, 'ShoppStyles')) { $ShoppStyles = new ShoppStyles(); } $query = $ShoppStyles->query($handle, $list); if (is_object($query)) { return true; } return $query; }