cfg['headers']['title']; ?>

text_lang_get_text(array('idname'=>'text-welcome')); if(!empty($welcome_text)) echo '
',$welcome_text,'
'; if(c('database')->vars_get_value('pref.slide.index', 1)){ ?>
galleries_get_files_available('slide-home'); $dir = c('bdm_library')->dir_get(); } // LOGO WATERMARK /*$logo_watermark = c('database')->vars_get_value('pref.logo.watermark'); if(!empty($logo_watermark) && file_exists(constant('frcontent').'config/'.$logo_watermark)){ $logo_watermark = constant('lrcontent').'config/'.$logo_watermark; } else if($logo_watermark == '-1'){ $logo_watermark = ''; } else if(file_exists(c('themes')->get_fimage('watermark.png', 'frontend'))){ $logo_watermark = c('themes')->get_image('watermark.png', 'frontend'); } else{ $logo_watermark = ''; }*/ if(!empty($images)){ foreach($images as $row_image){ if(!is_file($dir.@$row_image['basename']) || !getimagesize($dir.$row_image['basename'])) continue; $pathToThumb = c('bdm_image')->thumbnail($dir . $row_image['basename'], 1196, 0); $pathToThumb = c('navigation')->convert_file2domain($pathToThumb); $title = empty($row_image['title']) ? '' : $row_image['title']; $text = empty($row_image['description1']) ? $title : $row_image['description1']; echo '',$title,''; } } else{ // LOAD IMAGES PREFERENCES // ----------------------- $count = 0; for($i=1; $i<=5; $i++){ $image = c('database')->vars_get_value('pref.slide.image'.$i); $file = constant('frcontent').'config/'.$image; if(!is_file($file) || !getimagesize($file)) continue; $pathToThumb = c('bdm_image')->thumbnail($file, 1196, 0); $pathToThumb = c('navigation')->convert_file2domain($pathToThumb); if($image){ echo '',$image,''; $count++; } } // LOAD DEFAULT IMAGES // ------------------- if($count == 0){ ?>
modules_get('theme_menu.pphp'); ?> modules_get('theme_filter_colors.pphp'); ?>
modules_get('theme_banners1.pphp'); ?> vars_get_value('pref.box.social.facebook', 1)){ ?> modules_get('theme_banners2.pphp'); ?>
config_get_value('pref.store.box.sales', 1)){ $products_max = 5 * c('bdm_ecommerce')->config_get_value(array('idname'=>'index_latest-promotions_rows'), 2); $shop_products = c('bdm_ecommerce')->shop_products_get_sales(NULL, 'ORDER BY rand() LIMIT 0,'.$products_max); $shop_products = c('bdm_ecommerce')->shop_parse_products($shop_products); if($shop_products['total_products'] > 0){ ?>
$row){ $count++; echo c('themes')->modules_get('theme_product.pphp', array('row'=>$row)); /*if($count%5 == 0) echo '
';*/ } ?>
config_get_value('pref.store.box.hot', 1)){ $products_max = 5 * c('bdm_ecommerce')->config_get_value(array('idname'=>'index_latest-hot_rows'), 2); $shop_products = c('bdm_ecommerce')->shop_products_get(array('visibility_news' => 1, '(hot IS NOT NULL AND hot != "" AND hot != "0")'), 'ORDER BY shop_date_available DESC LIMIT 0,'.$products_max); $shop_products = c('bdm_ecommerce')->shop_parse_products($shop_products); if($shop_products['total_products'] > 0){ ?>


$row){ $count++; echo c('themes')->modules_get('theme_product.pphp', array('row'=>$row)); /*if($count%5 == 0) echo '
';*/ } ?>
config_get_value(array('idname'=>'index_latest-products_rows'), 5); $shop_products = c('bdm_ecommerce')->shop_products_get(array('visibility_news' => 1), 'ORDER BY shop_date_available DESC LIMIT 0,'.$products_max); $shop_products = c('bdm_ecommerce')->shop_parse_products($shop_products); if($shop_products['total_products'] > 0){ ?>
$row){ $count++; echo c('themes')->modules_get('theme_product.pphp', array('row'=>$row)); /*if($count%5 == 0) echo '
';*/ } ?>
config_get_value(array('idname'=>'index_most-popular_rows'), 1); $shop_products = c('bdm_ecommerce')->shop_products_get(array('total_ordered > 0'), 'ORDER BY total_ordered DESC LIMIT 0,'.$products_max); $shop_products = c('bdm_ecommerce')->shop_parse_products($shop_products); if($shop_products['total_products'] >= 5){ ?>
script_addText(' $(window).load(function() { $("#slider").nivoSlider({effect:"sliceDownRight", pauseTime: 6000, animSpeed: 1000}); }); '); } /** * FORMS CATCH * * NOTA : */ function Forms() { } } /** * CONFIG * * NOTA : */ c('frameworks')->class_set(constant('fmassistance') . '/classes/Contact.pphp', 'Contact'); c('frameworks')->set(new frames()); /** * NAVIGATION * * NOTA : */ c('menus')->set('index'); c('menus')->nav_set(0, ''); /** * HEADERS * * NOTA : */ if(!empty(m()->cfg['headers']['title'])) c('headers')->title_set(m()->cfg['headers']['title'].' | '.m()->cfg['headers']['name']); else{ c('headers')->title_set(m()->cfg['headers']['name']); } //c('headers')->description_set(''); //c('headers')->keywords_set(''); c('themes')->header_add('jquery.nivo-slider.css', 'css'); c('themes')->header_add('jquery.nivo.slider.js', 'jquery'); bdManager::load_theme(); ?>