PHP Classes

File: templates/shortcode.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Biggidroid Wordpress Gallery Plugin   templates/shortcode.php   Download  
File: templates/shortcode.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Biggidroid Wordpress Gallery Plugin
Display an image gallery on WordPress post pages
Author: By
Last change:
Date: 11 months ago
Size: 472 bytes
 

Contents

Class file image Download
<?php
//security
if (!defined('WPINC')) {
    exit(
"Do not access this file directly.");
}
//get the gallery id
$galleryId = $post->ID;
//get the gallery title
$galleryTitle = $post->post_title;
?>

<style>
    .biggidroid-gallery-shortcode-display {
        text-align: center;
        font-weight: bold;
    }
</style>

<div class="biggidroid-gallery-shortcode-display">
    [biggidroid_gallery title="<?php echo $galleryTitle; ?>" id="<?php echo $galleryId; ?>"]
</div>