本文整理汇总了PHP中get_banner函数的典型用法代码示例。如果您正苦于以下问题:PHP get_banner函数的具体用法?PHP get_banner怎么用?PHP get_banner使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_banner函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: doUpload
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"]) . '"}';
}
开发者ID:robkub,项目名称:tc-tools,代码行数:55,代码来源:ajax.php
示例2: get_banner
</div>
</div>
<?php
}
?>
<?php
$ban305x384 = get_banner("banner-305x384", false);
?>
<?php
if ($ban305x248) {
?>
<div class="banner banner-305x248" id="banner-305x248">
<?php
echo $ban305x248;
?>
开发者ID:TimurMG,项目名称:mg-red,代码行数:30,代码来源:right-sidebar.php
示例3: do_shortcode
?>
</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');
}
?>
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:single-people.php
示例4: get_banner
</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">
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:taxonomy-somcat.php
示例5: get_banner
<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
}
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:left-som.php
示例6: get_banner
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>
开发者ID:Vatia13,项目名称:funtime,代码行数:31,代码来源:default.php
示例7: get_banner
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'];
开发者ID:wuwenbao,项目名称:paimai,代码行数:31,代码来源:d5c71f29275d1560b2e53826cc0ee917.php
示例8: get_banner
<div class="banner banner-880x110" id="banner-880x110">
<?php
get_banner("banner-880x110");
?>
</div>
开发者ID:TimurMG,项目名称:mg-red,代码行数:20,代码来源:pvote.php
示例9: get_banner
});
$("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(); }
});
开发者ID:Vatia13,项目名称:funtime,代码行数:31,代码来源:post.php
示例10: get_banner
</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>
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:pmedical.php
示例11: get_banner
<!-- ================================== 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>
开发者ID:BeoSagittarius,项目名称:gamecenter,代码行数:31,代码来源:banner.php
示例12: get_banner
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
开发者ID:wuwenbao,项目名称:paimai,代码行数:31,代码来源:2a94b8bda04ff446dcedd42276fc99ee.php
示例13: while
</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();
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:add-recipe-page.php
示例14: wp_reset_postdata
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>
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:index.php
示例15: get_banner
// 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=""; }
开发者ID:Online-Marketing,项目名称:drawWEBKATALOG,代码行数:31,代码来源:class_system.php
示例16: get_header
<?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;">
开发者ID:hera04,项目名称:theRecipe,代码行数:30,代码来源:archive-restaurants.php
示例17: linkClient
$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;
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:taxonomy-medcat.php
示例18: get_module
<?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-->
开发者ID:Vatia13,项目名称:funtime,代码行数:29,代码来源:default.php
示例19: getPostViews
?>
<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';
开发者ID:TimurMG,项目名称:mg-red,代码行数:31,代码来源:psomic.php
示例20: get_banner
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
}
开发者ID:Vatia13,项目名称:funtime,代码行数:31,代码来源:edit.php
注:本文中的get_banner函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论