WordPress: Access a plugin from within a theme

The easiest approach might be to use do_shortcode(); for example:

<?php 
echo do_shortcode(''); 
?>

You just need to pass the appropriate gallery ID. You can also pass any of the other valid shortcode parameters, such as “columns”, “size”, etc.