(2013-04-18, 06:27:29)Carlos Wrote: Sorry for the short/quick reply, still not much time available. Just two comments:Your hint is enough, thank you it works perfectly now with both the components or the condition. I don't really know why it didn't last time, maybe I have had forgotten some character or the I18N "tag" in the function.
1. The second component (panelvypisclanku_en) is incorrect, you have to use <?php ... ?> tags in components to use PHP code.
2. You cannot use PHP code in GS pages. You can do however in components and template files.
Anyway, thanks, it works
Code:
<div class="panel">
<?php get_i18n_content('rychly-kontakt'); ?>
</div>
<div class="panelVypisClanku">
<?php if ($language == 'cs') { ?><p><strong>NejnovějšàÄÂlánky</strong></p><?php } ?>
<?php if ($language == 'en') { ?><p><strong>Latest posts</strong></p><?php } ?>
<?php nm_set_custom_maxposts(3) ?>
<?php nm_set_custom_excerpt(250) ?>
<?php nm_custom_display_recent('
<div class="my_recent_post">
<h4><a href="{{ post_link }}">{{ post_title }}</a></h4>
<span class="my_excerpt_date">{{ post_date }}</span>
<span class="my_excerpt">{{ post_excerpt }}</span>
</div>
'); ?>
<!-- or, in the admin panel => Themes => Edit blocks/components; 2 components needed - name and name_en :)
<?php get_i18n_component('panelvypisclanku'); ?> -->
</div>
I had better did a comment in my template to not forget the options
Thanks once again.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple