diff --git a/functions.php b/functions.php index 41c624f..086f5d3 100644 --- a/functions.php +++ b/functions.php @@ -27,10 +27,14 @@ add_action( 'init', 'register_shortcodes'); function sh_latest_posts($atts){ - $atts = shortcode_atts( array( - 'cat' => 'news', + if (of_get_lang()=='bg') + $ncat = "news-bg"; + else + $ncat = "news"; + $atts = array( + 'cat' => $ncat, 'label' => __('News', 'initfest') - ), $atts ); + ); $result = '

'.$atts['label'].' | '.__('see all', 'initfest').'

';