当前位置: 首页>>代码示例>>PHP>>正文


PHP piratenkleider_get_image_attributs函数代码示例

本文整理汇总了PHP中piratenkleider_get_image_attributs函数的典型用法代码示例。如果您正苦于以下问题:PHP piratenkleider_get_image_attributs函数的具体用法?PHP piratenkleider_get_image_attributs怎么用?PHP piratenkleider_get_image_attributs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了piratenkleider_get_image_attributs函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: the_post

<div class="section content" id="main-content">
  <div class="row">
    <div class="content-primary">
	<?php 
if (have_posts()) {
    the_post();
}
?>
	<?php 
$image_url = '';
$attribs = array("credits" => $options['img-meta-credits']);
if ($options['aktiv-platzhalterbilder-indexseiten'] == 1 && isset($options['src-default-symbolbild-author'])) {
    if (isset($options['src-default-symbolbild-author_id']) && $options['src-default-symbolbild-author_id'] > 0) {
        $image_url_data = wp_get_attachment_image_src($options['src-default-symbolbild-author_id'], 'full');
        $image_url = $image_url_data[0];
        $attribs = piratenkleider_get_image_attributs($options['src-default-symbolbild-author_id']);
    } else {
        $image_url = $options['src-default-symbolbild-author'];
    }
}
if (isset($image_url) && strlen($image_url) > 4) {
    if ($options['indexseitenbild-size'] == 1) {
        echo '<div class="content-header-big">';
    } else {
        echo '<div class="content-header">';
    }
    ?>
    		    		    		        
		   <h1 class="post-title"><span><?php 
    printf(__('%s', 'piratenkleider'), get_the_author());
    ?>
开发者ID:JustThomas,项目名称:Piratenkleider,代码行数:31,代码来源:author.php

示例2: get_post_custom

        $custom_fields = get_post_custom();
        $attribs = array("credits" => $options['img-meta-credits']);
        $image_url = '';
        $image_alt = '';
        if (has_post_thumbnail()) {
            $thumbid = get_post_thumbnail_id(get_the_ID());
            $image_url_data = wp_get_attachment_image_src($thumbid, 'full');
            $image_url = $image_url_data[0];
            $attribs = piratenkleider_get_image_attributs($thumbid);
        }
        if (!(isset($image_url) && strlen($image_url) > 4)) {
            if ($options['aktiv-defaultseitenbild'] == 1 && isset($options['seiten-defaultbildsrc'])) {
                if (isset($options['seiten-defaultbildsrc_id']) && $options['seiten-defaultbildsrc_id'] > 0) {
                    $image_url_data = wp_get_attachment_image_src($options['seiten-defaultbildsrc_id'], 'full');
                    $image_url = $image_url_data[0];
                    $attribs = piratenkleider_get_image_attributs($options['seiten-defaultbildsrc_id']);
                } else {
                    $image_url = $options['seiten-defaultbildsrc'];
                }
            }
        }
        if (isset($image_url) && strlen($image_url) > 4) {
            if ($options['seitenbild-size'] == 1) {
                echo '<div class="content-header-big">';
            } else {
                echo '<div class="content-header">';
            }
            ?>
			<header>
			    <h1 class="post-title"><span itemprop="name"><?php 
            the_title();
开发者ID:tierce,项目名称:Piratenkleider,代码行数:31,代码来源:page.php

示例3: tribe_events_before_html

tribe_events_before_html();
?>

<div class="section content" id="main-content">
  <div class="row">
    <div class="content-primary">
	

	<?php 
$image_url = '';
$image_alt = '';
if (has_post_thumbnail()) {
    $thumbid = get_post_thumbnail_id(get_the_ID());
    $image_url_data = wp_get_attachment_image_src($thumbid, 'full');
    $image_url = $image_url_data[0];
    $attribs = piratenkleider_get_image_attributs($thumbid);
} else {
    if ($options['aktiv-platzhalterbilder-indexseiten'] == 1 && isset($options['src-default-symbolbild'])) {
        $image_url = $options['src-default-symbolbild'];
    }
}
if (isset($image_url) && strlen($image_url) > 4) {
    if ($options['indexseitenbild-size'] == 1) {
        echo '<div class="content-header-big">';
    } else {
        echo '<div class="content-header">';
    }
    ?>
    		    		    		        
		   <h1 class="post-title"><span><?php 
    tribe_events_title();
开发者ID:JustThomas,项目名称:Piratenkleider,代码行数:31,代码来源:ecp-page-template.php

示例4: get_post_custom

        $custom_fields = get_post_custom();
        $image_url = '';
        $image_alt = '';
        $attribs = array("credits" => $options['img-meta-credits']);
        if (has_post_thumbnail()) {
            $thumbid = get_post_thumbnail_id(get_the_ID());
            $image_url_data = wp_get_attachment_image_src($thumbid, 'full');
            $image_url = $image_url_data[0];
            $attribs = piratenkleider_get_image_attributs($thumbid);
        }
        if (!(isset($image_url) && strlen($image_url) > 4)) {
            if ($options['aktiv-artikelbild'] == 1 && isset($options['artikelbild-src'])) {
                if (isset($options['artikelbild-src_id']) && $options['artikelbild-src_id'] > 0) {
                    $image_url_data = wp_get_attachment_image_src($options['artikelbild-src_id'], 'full');
                    $image_url = $image_url_data[0];
                    $attribs = piratenkleider_get_image_attributs($options['artikelbild-src_id']);
                } else {
                    $image_url = $options['artikelbild-src'];
                }
            }
        }
        if (isset($image_url) && strlen($image_url) > 4) {
            if ($options['artikelbild-size'] == 1) {
                echo '<div class="content-header-big">';
            } else {
                echo '<div class="content-header">';
            }
            ?>
  
		    <header>
			<h1 class="post-title"><span itemprop="headline"><?php 
开发者ID:piratas,项目名称:piratas-site,代码行数:31,代码来源:single.php


注:本文中的piratenkleider_get_image_attributs函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。