Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gallery in component
#5
Forgot to show you my template code. The theme I am using (Metrical) relies on components to create a block layout:

PHP Code:
<div class="row">
    <
section class="eight columns">
           <?
php  if (component_exists('kitchentest-col1'))
            {
get_component('kitchentest-col1');}
            else {echo(
'
                <h2>First Block</h2>
                <p>Make a component and name it \'1of2\' and write in it whatever html you want to appear here</p>
            '
);}    ?>
    </section>
    <section class="eight columns">
        <?php  if (component_exists('kitchentest-col2'))
            {
get_component('kitchentest-col2');}
            else {echo(
'
            <h2>Second Block</h2><p>Make a component and name it \'2of2\' and write in it whatever html you want to appear here</p>
            '
);}    ?>
    </section>
</div> 

Adding
PHP Code:
<?php get_i18n_gallery('carryout-ss',
array(
'type'=>'cycle''autostart'=>true)); ?>
Into the template above the call for the component col1 did not work as the gallery did not show on the page.
Reply


Messages In This Thread
gallery in component - by tigre - 2013-05-12, 17:16:25
RE: gallery in component - by mvlcek - 2013-05-12, 17:42:27
RE: gallery in component - by tigre - 2013-05-12, 23:27:55
RE: gallery in component - by sarnaiz - 2015-01-16, 16:22:50
RE: gallery in component - by sarnaiz - 2015-01-16, 16:51:52
RE: gallery in component - by shawn_a - 2015-01-18, 12:56:11
RE: gallery in component - by sarnaiz - 2015-01-20, 03:23:38
RE: gallery in component - by shawn_a - 2015-01-20, 03:52:16
RE: gallery in component - by sarnaiz - 2015-01-20, 04:36:59
RE: gallery in component - by datiswous - 2015-01-21, 01:51:27
RE: gallery in component - by sarnaiz - 2015-01-25, 08:25:03



Users browsing this thread: 1 Guest(s)