public gallery_shortcode ( array $args ) : string | ||
$args | array | Gallery arguments. |
Результат | string |
public function gallery_shortcode($args)
{
if (empty($args)) {
$args = array();
}
// Salt for cases post edited or attachments changed.
$args['fc_post_modified'] = get_the_modified_time('U');
$args['fc_post_attachments'] = $this->get_attachment_ids();
$post_id = get_the_ID();
$output = $this->fetch('post-' . $post_id, compact('args', 'post_id'), $args);
return $output;
}