function doUpload() { // Metadaten zu Banner angegeben? if (empty($_GET["tag"]) || empty($_GET["name"])) { die(json_encode(array("error" => "FORM VALIDATION: Kein Allianzname oder kein Allianztag angegeben."))); } // Datei hochgeladen? if (empty($_FILES[UPLOAD_BANNER_ID])) { die(json_encode(array("error" => "FORM VALIDATION: Keine Datei zum Hochladen ausgew&aauml;hlt."))); } // Fehler beim upload if (isset($_FILES[UPLOAD_BANNER_ID]['error']) && intval($_FILES[UPLOAD_BANNER_ID]['error']) > 0) { switch ($_FILES[UPLOAD_BANNER_ID]['error']) { case '1': $error = 'The uploaded file exceeds the upload_max_filesize directive in php.ini'; break; case '2': $error = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'; break; case '3': $error = 'The uploaded file was only partially uploaded'; break; case '4': $error = 'No file was uploaded.'; break; case '6': $error = 'Missing a temporary folder'; break; case '7': $error = 'Failed to write file to disk'; break; case '8': $error = 'File upload stopped by extension'; break; case '999': default: $error = 'No error code avaiable'; } die(json_encode(array("error" => "UPLOAD ERROR: " . $error . "."))); } $tmp_filename = $_FILES[UPLOAD_BANNER_ID]['tmp_name']; $img_size = getimagesize($tmp_filename); // Datei ist Bild? if (!is_array($img_size)) { die(json_encode(array("error" => "UPLOAD ERROR: Die hochgeladene Datei ist kein Bild."))); } // Datei hat richtige Größe? if ($img_size[0] != BANNER_WIDTH || $img_size[1] != BANNER_HEIGHT) { die(json_encode(array("error" => "UPLOAD ERROR: Die hochgeladene Datei hat nicht die richtige Größe. (Breite: " + BANNER_WIDTH + ", Höhe: " + BANNER_HEIGHT + ")"))); } // Allright, copy file and return info $id = upload($_FILES[UPLOAD_BANNER_ID], $_GET["tag"], $_GET["name"]); $banner = get_banner($id); echo '{"success": true, id: "' . $id . '", "filename": "' . rawurlencode($banner["url"]) . '", "path": "' . rawurlencode(BANNER_PATH . $banner["url"]) . '"}'; }
<div class="add-button"> <a href="/add-ads/"><button type="button">+ Подать объвление</button></a> </div> </div> <div class="org-cont"> <ul class="org-menu"> <?php $list = wp_list_categories(array('taxonomy' => 'adscategory', 'echo' => 0, 'hierarchical' => true, 'title_li' => '', 'hide_empty' => false, 'show_count' => true, 'orderby' => 'menu_order', 'walker' => new Org_Category_Walker())); echo $list; ?> <div style="width:280px; position:absolute; float:left; margin-top:20px;" class="banner banner-305x350" id="recipe-banner-305x350x1"> <?php get_banner("banerobyava2"); ?> </div> </ul> <div class="org-list"> <div> <?php $q = array('post_type' => 'ads', 'posts_per_page' => 10, 'paged' => get_query_var('paged')); $posts = get_posts($q); ?> <ul class="abc-list-items"> <?php foreach ($posts as $post) {
<br><br><br> <!-- BANNER PLACE--> <?php $bot_banner = $registry['test'][0]['type'] == 1 ? 3 : ($registry['test'][0]['type'] == 2 ? 4 : 2); ?> <div class="index-banner-place"> <div class="banner-place" style="width:800px;height:100px;line-height:100px;"> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner('F2', $bot_banner) == true) { ?> <?php echo get_banner('F2', $bot_banner); ?> <?php } else { ?> <object data="/img/F2_800x100.swf" type="application/x-shockwave-flash" width="800" height="100"><param name="wmode" value="opaque" /></object> <?php } ?> <?php } ?> </div> </div> <!-- END BANNER PLACE--> <div class="fix"></div><br>
get_header('Petarung Indonesia is a news portal', 'Petarung Indonesia | Ulasan'); ?> <body name="top"> <div id="<?php echo $pageid; ?> " class="page-wrap"> <?php get_nav(); ?> <div class="page-content"> <div class="header"> <div class="banner main"> <div class="container-fluid nopadding"> <?php get_banner('berita'); ?> </div> </div> </div> <div class="content"> <?php get_content('berita'); ?> </div> </div> </div> <?php get_footer(); ?> </div>
<div style="width:324px; height:230px; overflow: hidden; border:1px solid #CCC; margin:0px 6px 10px 0px; display:inline-block;"> <?php get_banner("samara-ban14-324x230"); ?> </div> <div style="width:324px; height:230px; overflow: hidden; border:1px solid #CCC; margin:0px 0 10px 0px; display:inline-block;"> <?php get_banner("samara-ban15-324x230"); ?> </div>
echo $_SERVER['SERVER_NAME']; ?> /filemanager/dialog.php?type=2&akey=f511422113d2vedc5c426b7y14cby679&field_id=banner&fldr=ბანერები&no_cookie=1" class="btn-blue iframe-btn" type="button">აირჩიე ბანერი</a> <br><i>HTML5 - ბანერის შემთხვევაში აირჩიეთ ბანერის .js file</i> </td> <td></td> </tr> <tr> <td></td> <td align="left"><a onclick="document.banner.submit();" class="btn-green">შენახვა</a></td> <td></td> </tr> </table> <br><br> <div align="center" style="text-align:center"> <script type="text/javascript" src="/<?php echo $theme; ?> js/swiffy.js"></script> <script type="text/javascript" src="/<?php echo $theme; ?> js/Tweenlite.min.js"></script> <?php echo get_banner($registry['banner'][0]['name'], $registry['banner'][0]['cat_id']); ?> </div> </form> <?php }
<?php get_module('five-article'); ?> <!-- BANNER PLACE --> <div class="index-banner-place"> <div class="banner-place" style="width:800px;height:100px;line-height:100px;"> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner('F3', 1) == true) { ?> <?php echo get_banner('F3', 1); ?> <?php } else { ?> <span>სარეკლამო ბანერი (800x100)</span> <?php } ?> <?php } ?> </div> </div> <!-- END BANNER PLACE-->
$o['force_show_code'] = true; $o['host'] = 'mgorod.kz'; $clientlink = new linkClient($o); unset($o); echo $clientlink->start_links(); ?> </div> <div class="right-banners-bot"> <div class="banner banner-305x350" id="med-banner-305x350x1"> <?php get_banner("med-banner-305x350x1"); ?> </div> <div class="banner banner-305x350" id="med-banner-305x350x2"> <?php get_banner("med-banner-305x350x2"); ?> </div> </div> </div> <div class="left"> <div class="page"> <div class="tags-block"> <?php global $wp_query; $term = $wp_query->get_queried_object(); ?> <div class="tags-top"> <h1 class="title"><?php echo $term->name;
</ul> </div> </div> <ul class="two-banners-block two-banners-min"> <li> <div class="banner banner-434x150" id="med-banner-434x150xl2x1"> <?php get_banner("med-banner-434x150xl2x1"); ?> </div> </li> <li> <div class="banner banner-434x150" id="med-banner-434x150xl2x2"> <?php get_banner("med-banner-434x150xl2x2"); ?> </div> </li> </ul> <?php $cat_posts = get_posts(array('post_type' => 'medicalnews', 'posts_per_page' => 10, 'tax_query' => array(array('taxonomy' => 'medcat', 'field' => 'slug', 'terms' => 'usefulness')))); ?> <div class="category-news-block list2cols"> <h1 class="title"> <?php $t_term = get_term_by('slug', 'usefulness', 'medcat'); echo $t_term->name; ?> <span class="archive"><a href="/medcat/usefulness/">архив</a></span>
<!-- ================================== BANNER [start] ========================================== --> <div class="banner"> <div class="container"> <div class="wmuSlider example1"> <div class="wmuSliderWrapper"> <?php // get banner $result = get_banner(); if (mysqli_num_rows($result) > 0) { while ($images = mysqli_fetch_array($result, MYSQLI_ASSOC)) { ?> <article style="position: absolute; width: 100%; opacity: 0;"> <div class="banner-wrap"> <div class="banner-top"> <img style="width: 390px; height: 344px;" src="images/gallery/<?php echo $images['image']; ?> " class="img-responsive" alt="<?php echo $images['image']; ?> "> </div> <div class="banner-top banner-bottom"> <img style="width: 612px; height: 344px;" src="images/gallery/big_<?php echo $images['image']; ?> " class="img-responsive" alt="<?php echo $images['image']; ?> "> </div>
autoplay:5000, loop:true, autoplayDisableOnInteraction:false }); </script> </div> </section> </div> <div class="am-g bg-white"> <header class="hdbt"> 新闻知识 </header> <section class="hdnr3"> <?php $_result = get_banner(5); if (is_array($_result)) { $i = 0; $__LIST__ = $_result; if (count($__LIST__) == 0) { echo ""; } else { foreach ($__LIST__ as $key => $val) { $mod = $i % 2; ++$i; if ($i == "1") { ?> <a href="<?php echo $val['url']; ?> " class="newsnr"><img src="<?php
</div> <div class="left"> <div class="single single-news"> <?php while (have_posts()) { the_post(); ?> <h1 class="title"><?php the_title(); ?> </h1> <div class="comment-respond"> <?php echo do_shortcode('[contact-form-7 id="35151"]'); //21223 ?> </div> <?php } ?> <div class="banner banner-880x110" id="recipe-banner-880x110"> <?php get_banner("recipe-banner-880x110"); ?> </div> </div> </div> </div> <?php get_footer();
wp_reset_postdata(); ?> </ul> </div> </div> <div class="banners-block-col2"> <div class="banner banner-420x145x1" id="banner-420x145x1"> <?php get_banner("banner-420x145x1"); ?> </div> <div class="banner banner-420x145x2" id="banner-420x145x2"> <?php get_banner("banner-420x145x2"); ?> </div> </div> <?php $isFirst = true; $cat_posts = get_posts(array('post_type' => 'news', 'ncategory' => 'interviews_analyst', 'posts_per_page' => 6)); ?> <div class="category-news-block interview"> <h1 class="title"> <?php $t_term = get_term_by('slug', 'interviews_analyst', 'ncategory'); echo $t_term->name; ?> <span class="archive"><a href="/ncategory/interviews_analyst/">все новости</a></span>
// Site Layout Path $page_layout_path = "templates/".get_aktiv_layout_data(layout_path); $page_layout_path_index = "templates/".get_aktiv_layout_data(layout_index); $page_layout_path_img = "templates/".get_aktiv_layout_data(layout_img); $page_layout_path_temp = "templates/".get_aktiv_layout_data(layout_temp); // Counter Option $sitecounter=get_setting_data(counter); // 0=off 1=on // Path for Upload Data $page_data_path="media/"; # Banner $banner_head = get_banner(get_array_banner("head"),"head"); $banner_content= get_banner(get_array_banner("content"),"content"); $banner_sitenav= get_banner(get_array_banner("sitenav"),"sitenav"); if($_GET['m']==1){ # Seite $p_name = $gp->getName($cat); $p_title = $gp->getTitle($cat); $p_content = $gp->getContent($cat); $p_file = "core/".$gp->getContentFile($cat); $p_content_opt = $gp->getContentOption($cat); $p_keywords = $gp->getKeywords($cat); $p_description = $gp->getDescription($cat); # Click On Main Navigation if($cat=="seite-eintragen"){ $ladd=' class="curred"'; }else{ $ladd=""; } if($cat=="top-seiten"){ $ltop=' class="curred"'; }else{ $ltop=""; } if($cat=="neusten-seiten"){ $lnew=' class="curred"'; }else{ $lnew=""; }
</div> </div> <?php } ?> <?php $ban305x384 = get_banner("banner-305x384", false); ?> <?php if ($ban305x248) { ?> <div class="banner banner-305x248" id="banner-305x248"> <?php echo $ban305x248; ?>
<?php get_header(); ?> <!-- Banner --> <?php $options = get_option('general_settings'); if ($options['show_banner'] == '1') { $is_banner = get_banner(); } ?> <!-- Główna zawartość --> <div class="site-content <?php if ($is_banner) { echo 'sc-static'; } else { echo 'sc-no-banner'; } ?> " id="siteContent_?"> <!-- Linki do portali społecznościowych --> <?php get_template_part('social-links'); ?> <!-- Wrapper wpisów --> <div class="row" style="text-align: justify;">
}); $("area[rel^='prettyPhoto']").prettyPhoto(); $(".gallery2:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',banner1:'<?php if (function_exists('get_banner')) { if (get_banner('SL1 L', $registry['post'][0]['cat_id']) == true) { echo get_banner('SL1 L', $registry['post'][0]['cat_id']); } } ?> ',banner2:'<?php if (function_exists('get_banner')) { if (get_banner('SL1 R', $registry['post'][0]['cat_id']) == true) { echo get_banner('SL1 R', $registry['post'][0]['cat_id'], 'banner2'); } } ?> ',theme:'facebook',slideshow:3000, autoplay_slideshow: false,social_tools:false}); $(".gallery2:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true}); $("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({ custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>', changepicturecallback: function(){ initialize(); } }); $("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({ custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>', changepicturecallback: function(){ _bsap.exec(); } });
}); </script> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner('FM', isset($registry['post'][0]['cat_id']) ? $registry['post'][0]['cat_id'] : 1) == true) { ?> <?php if ($registry['deviceType'] == 'phone') { ?> <div id="banner_bg" style="position:fixed;left:0;top:0;background-color:#FFF;width:100%;height:100%;z-index:999;"> <div class="banner-place" id="mobile-banner" style="position:relative;width:90%;margin:5px auto;text-align:center;display:block;"> <?php echo get_banner('FM', isset($registry['post'][0]['cat_id']) ? $registry['post'][0]['cat_id'] : 1); ?> </div> <div id="bannerTime" style="font-size:22px;color:red;position:absolute;bottom:5%;text-align:center;width:100%;font-family:'BPGNinoMediumCapsRegular'"> რეკლამა გაითიშება <span>3</span> წამში </div> </div> <script> $(document).ready(function(){ console.log(window.innerHeight); var bannerHeight = window.innerHeight - window.innerHeight / 100; $('.banner-place').css('height',bannerHeight+'px'); $('#mobile-banner').find('img').css({'height':bannerHeight+'px','width':'auto'}); var sec = 3; var interval = setInterval(function(){
<div class="content"> <?php get_module('five-article'); ?> </div> <!-- BANNER PLACE --> <div class="index-banner-place"> <div class="banner-place" style="width:800px;height:100px;line-height:100px;"> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner(3) == true) { ?> <?php echo get_banner(3); ?> <?php } else { ?> <span>სარეკლამო ბანერი (800x100)</span> <?php } ?> <?php } ?> </div> </div> <!-- END BANNER PLACE-->
} ?> <?php } ?> </div> <br> <div class="saknatuno-banner-place"> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner('F12', $registry['post'][0]['cat_id']) == true) { ?> <?php echo get_banner('F12', $registry['post'][0]['cat_id']); ?> <?php } else { ?> <span>სარეკლამო ბანერი (200x500)</span> <?php } ?> <?php } ?> </div> </div> <?php }
?> </div> </div> <div class="comment-respond"> <h3>Задать вопрос</h3> <?php echo do_shortcode('[contact-form-7 id="32821"]'); //21171 ?> </div> <div class="banner banner-880x110" id="med-banner-880x110"> <?php get_banner("med-banner-880x110"); ?> </div> <div class="comment-respond dr-comments"> <h3>Последние вопросы и ответы</h3> <?php comments_template('/comments-medical.php'); ?> </div> <div class="health-confirm-text"> <?php if (is_active_sidebar('sidebar-medical-text')) { dynamic_sidebar('sidebar-medical-text'); } ?>
?> <div class="height"></div> <div class="content" style="margin-top:40px;"> <!-- BANNER PLACE--> <div class="index-banner-place"> <div class="banner-place" style="width:800px;height:100px;line-height:100px;"> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner('F1', 1) == true) { ?> <?php echo get_banner('F1', 1); ?> <?php } else { ?> <span>სარეკლამო ბანერი (800x100)</span> <?php } ?> <?php } ?> </div> </div> <!-- END BANNER PLACE--> <div class="search-title"><?php
</div> <div class="right-banners-bot"> <div class="banner banner-305x350" id="recipe-banner-305x350x1"> <?php get_banner("recipe-banner-305x350x1"); ?> </div> <div class="banner banner-305x350" id="recipe-banner-305x350x2"> <?php get_banner("recipe-banner-305x350x2"); ?> </div> </div> </div> <div class="left"> <div class="page"> <div class="tags-block">
?> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" ></script> <? wp_enqueue_script('cookie', get_template_directory_uri() . '/js/jquery.cookie.js', 'jquery', false); wp_enqueue_script('script', get_template_directory_uri() . '/js/script.js', 'jquery', false); ?> </head> <body style=" background-color:#E4E4E4; padding-top:0px"> <div style="margin: auto; width: 1080px; overflow: hidden; background-color:#fff;"> <?php get_banner("som1"); ?> </div> <div class="wrapper" style="max-width:1000px !important; padding: 20px 40px 10px 40px !important; margin: 0 auto !important; overflow: hidden !important; position: relative !important; z-index: 2 !important; background: #ffffff !important;"> <div class="header-min" style=" border-bottom: 3px #E7E7E9 solid; height: inherit !important; margin-bottom:15px;"> <div class="menus-auto" style="height: auto !important; width: auto !important;
<div style="/*float: right;*/ width: 297px; /*margin-top: -1116px;*/ display: block; overflow: hidden; height: 1120px;"> <div style="overflow:hidden; height: 1095px;"> <div style=" display:block; padding:0px; margin-bottom:20px; height:90px; border: 1px #E8E8E8 solid;"> <?php get_banner("som1min"); ?> </div> <div style="display:block; margin-bottom: 20px; height: 353px; overflow: hidden;"> <?php get_banner("som3"); ?> </div> <div style=" display:block; padding:10px 20px; background-color:#EEE;"> <?php if (function_exists('democracy_poll')) { ?> <ul> <li><?php democracy_poll(); ?> </li> </ul> <?php }
font-size:14px; } </style> <div id="content"> <!-- BANNER PLACE--> <div class="index-banner-place"> <div class="index-banner"> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner(1) == true) { ?> <?php echo get_banner(1); ?> <?php } else { ?> <img src="/<?php echo $theme; ?> images/banner.jpg"/> <?php } ?> <?php } ?> </div>
<link type="text/css" rel="stylesheet" href="/<?php echo $theme; ?> css/new_slider/prettyPhotoOriginal1.css?ver=1.4" /> <script src="/<?php echo $theme; ?> js/new_slider/jquery.prettyPhotoOriginal.js?ver=1.2"></script> <?php if (function_exists('get_banner')) { ?> <?php if (get_banner('SL2', $registry['post'][0]['cat_id']) == true) { ?> <?php $sl = '<div class="index-banner-place" style="position:relative;top:5px;"><div class="banner-place" style="width:340px;height:200px;">' . get_banner("SL2", $registry["post"][0]["cat_id"]) . '</div></div>'; ?> <?php } else { ?> <?php $sl = ''; ?> <?php } } ?> <script type="text/javascript" charset="utf-8"> function setupSwipe() { $(function() { $("#pp_full_res").swipe( {
echo $val['yuan_price']; ?> </del> </em> </span> </li><?php } } } else { echo ""; } ?> </ul> <ol> <?php $_result = get_banner(9); if (is_array($_result)) { $i = 0; $__LIST__ = $_result; if (count($__LIST__) == 0) { echo ""; } else { foreach ($__LIST__ as $key => $val) { $mod = $i % 2; ++$i; ?> <a href="<?php echo $val['url']; ?> " title="<?php echo $val['title'];
?> <img src="http://mgorod.kz/wp-content/uploads/2015/07/12eye.png" style=" width: 10px; height: 7px; opacity: 0.4; top: -4px; margin-left:6px; position: relative; right: 2px;"><?php echo getPostViews(get_the_ID()); ?> </div> </div> <?php } wp_reset_postdata(); ?> </div> <div style="display:block; margin-top: 20px; margin-bottom:0px; width: 297px; overflow: hidden;"> <?php get_banner("som4"); ?> </div> </div> </div> <?php include 'foot.php';
<div class="banner banner-880x110" id="banner-880x110"> <?php get_banner("banner-880x110"); ?> </div>