Instead of typing [gallery ids="122,123,124"] in the content of a page. I want to call the same functionality from the PHP code in a template file.