2016-10-09, 14:38:34
Hey dudes,
Great plugin, I made it working easier with i18n_custom_field and Frens code.
My purpose has to create "easy to make" galleries to help my wife to manage herself web pages with a bottom gallery.
As a CSS framework, the theme uses kickstart.js to show a clean gallery.
Stage 1 : Install ExtraGallery, and i18n_custom field
Stage 2 : change language in ExtraGallery. In Custom_field, create a field name is 'name' and Title 'Gallery'
Stage 3 : Paste the code (thanks to from Frens) in a copied template under get_content, so that, the gallery will be shown on the bottom of the page. Name it template_gallery for instance.
Report Custom_field call :
Don't forget to add kicktstart call if needed :
Stage 4 : Setup is done !
To use :
Create an Extragallery
Create a page and in options : change template to one with gallery, add custom field with the gallery name and that is it !
More about kickstart.js
Great plugin, I made it working easier with i18n_custom_field and Frens code.
My purpose has to create "easy to make" galleries to help my wife to manage herself web pages with a bottom gallery.
As a CSS framework, the theme uses kickstart.js to show a clean gallery.
Stage 1 : Install ExtraGallery, and i18n_custom field
Stage 2 : change language in ExtraGallery. In Custom_field, create a field name is 'name' and Title 'Gallery'
Stage 3 : Paste the code (thanks to from Frens) in a copied template under get_content, so that, the gallery will be shown on the bottom of the page. Name it template_gallery for instance.
Report Custom_field call :
PHP Code:
<!-- Generate gallery code from Extra Gallery Data-->
<?php
$galleryItems = eg_return_gallery(return_custom_field('name'));
debugLog($galleryItems);
echo "<div class='gallery'>";
array_walk($galleryItems['items'],'output');
echo "</div>";
function output($item,$key){
GLOBAL $SITEURL;
//echo "<h6>".$item['field-0']."</h6>";
echo '<a id="fb" href="'.$SITEURL.'/data/'.$item['filename'].'"">';
echo '<img width="100" src="'.$SITEURL.'/data/'.$item['filename'].'">';
echo "</a>";
}
?>
<!-- End code for Extragallery-->
Don't forget to add kicktstart call if needed :
PHP Code:
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/css/kickstart.css" media="all" />
<!-- Javascript -->
<script type="text/javascript" src="<?php get_theme_url(); ?>/js/kickstart.js"></script>
Stage 4 : Setup is done !
To use :
Create an Extragallery
Create a page and in options : change template to one with gallery, add custom field with the gallery name and that is it !
More about kickstart.js