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


PHP upload_advf函数代码示例

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


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

示例1: GetCharactersCloud

 public function GetCharactersCloud()
 {
     $sql = "SELECT COUNT(*) AS total, t.`nombre`, t.`id`, t.`id_categoria`, advf.`advLink` as advLink\n          FROM `contenidos_tags` ct\n          LEFT JOIN contenidos c ON c.id = ct.`id_contenido`\n          LEFT JOIN tags t ON t.id = ct.`id_tag`\n          LEFT JOIN advf AS advf ON t.`id_foto` = advf.advID\n          WHERE c.fecha BETWEEN DATE_SUB(NOW(),INTERVAL 1 WEEK) AND NOW() AND nombre != '' AND t.`id_tipo` = '2' AND t.`id_foto`\n          GROUP BY ct.id_tag\n          ORDER BY total DESC\n          LIMIT 7";
     $result = $this->db->query($sql)->result();
     $json = array();
     $total = 0;
     foreach ($result as $key => $tag) {
         $total = $total + $tag->total;
     }
     foreach ($result as $key => $tag) {
         $json[$key]['section'] = $tag->id_categoria;
         $json[$key]['tag'] = $tag->nombre;
         $json[$key]['href'] = $this->config->item("link-infonews", 'app') . 'tag/' . $tag->id . '/' . prep_word_url($tag->nombre);
         if ($key < 2) {
             $size = 137;
         } else {
             $size = 67;
         }
         $json[$key]['picture'] = upload_advf($tag->advLink, $size, $size, true);
     }
     return $json;
 }
开发者ID:INFOnews,项目名称:infonews,代码行数:22,代码来源:tagsmodel.php

示例2: upload_advf

                <?php 
        if ($article->picture) {
            ?>
                <span class="figure">

                    <?php 
            /* if($article->videohome):*/
            ?>
<span class="video-ico"></span><?php 
            /* endif */
            ?>
                    <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 218, 140, true);
            ?>
" />

                </span>
                <?php 
        }
        ?>
 
                
                <h2><?php 
        echo $article->title;
        ?>
</h2>
                </a>
              </div>
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:row-sensatv.php

示例3: upload_advf

    <div class="figure">
      <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
        <img alt="<?php 
            echo $article->title;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 480, 320, true);
            ?>
" data-mobile-src="<?php 
            echo upload_advf($article->picture, 162, 120, true);
            ?>
" />
      </a>
    </div>
    <?php 
        }
        ?>
      
    <?php 
        if ($article->subtitle) {
            ?>
    <div class="mouseover"><div class="mouseover-inside"><?php 
            echo $article->subtitle;
            ?>
</div></div>
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:style4.php

示例4: upload_advf

          <article class="widget-article third-article">        
            <a title="<?php 
echo $article->title;
?>
" target="_blank" class="app-link" href="<?php 
echo $article->link;
?>
">
              <figure class="figure">
                  <img alt="<?php 
echo $article->title;
?>
" src="<?php 
echo upload_advf($article->picture, 388, 320, true);
?>
" />
                  <?php 
if (count($article->tags)) {
    ?>
<h1><?php 
    echo $article->tags[0]->tag;
    ?>
</h1><?php 
}
?>
              </figure>
              <div class="article-content">
                <span class="icon"><i class="material-icons">&#xE029;</i></span>
                <?php 
if ($article->title) {
    ?>
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:third.php

示例5: foreach

          <?php 
foreach ($data->data->articles as $article) {
    $article = $this->Data->DataArticleHome($article->id);
    if ($article && $article->picture) {
        ?>
<li><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo upload_advf($article->picture, 474, 600, true);
        ?>
" data-lightbox="roadtrip"><img alt="<?php 
        echo $article->title;
        ?>
" src="<?php 
        echo upload_advf($article->picture, 183, 232, true);
        ?>
" /></a></li><?php 
    }
    ?>
          <?php 
}
?>
          </ul>
          <span u="arrowleft" class="slider-arrow slider-arrow-left">
          </span>
          <span u="arrowright" class="slider-arrow slider-arrow-right">
          </span>
      </div>
    </div>
  </div>
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:covers.php

示例6: upload_advf

      <?php 
        if ($article->picture) {
            ?>
      <div class="figure">
        <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
          <img alt="<?php 
            echo $article->title;
            ?>
" class="app-lazy" data-src="<?php 
            echo upload_advf($article->picture, 265, 175);
            ?>
" />
        </a>
      </div>
      <?php 
        }
        ?>
    <div class="content-info">
      <h2><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
"><?php 
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:open.php

示例7: upload_advf

">
        <?php 
            if ($article->picture) {
                ?>
          <figure class="figure">
              <?php 
                if ($article->videohome) {
                    ?>
<span class="video-ico"></span><?php 
                }
                ?>
              <img alt="<?php 
                echo $article->title;
                ?>
" class="app-lazy" data-src="<?php 
                echo upload_advf($article->picture, 115, 90, true);
                ?>
" />
          </figure>
          <?php 
            }
            ?>
        </a>
          <span class="article-content">
          <a ga-event="Click,Home Bloque <?php 
            echo $i;
            ?>
,Notas varias" title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:type-4.php

示例8: upload_advf

        ?>
        <div class="open-first zoom-figure">
            <div class="widget-article">   
              <div class="figure">
                <a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
">
                  <img alt="<?php 
        echo $article->title;
        ?>
" src="<?php 
        echo upload_advf($article->picture, 620, 325, true);
        ?>
" />
                </a>
                <h2><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
"><?php 
        echo $article->title;
        ?>
</a></h2>
              </div>           
              <div class="article-content">
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:row-1.php

示例9: upload_advf

          <?php 
        if ($article->picture) {
            ?>
          <div class="figure">
            <a title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
              <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 470, 280, true);
            ?>
" />
            </a>
          </div>
          <?php 
        }
        ?>
 
          <div class="article-content">
            <h2><a title="<?php 
        echo $article->title;
        ?>
" class="app-link" href="<?php 
        echo $article->link;
        ?>
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:row-3.php

示例10: upload_advf

        ?>
    <div class="open-second-col col-pdf">
      <div class="widget-article">  
        <?php 
        if ($article->picture) {
            ?>
        <div class="figure">
          <a target="_blank" title="Descargar PDF" class="app-link" href="<?php 
            echo $article->cover_link;
            ?>
">
            <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 313, 423, true);
            ?>
" />
          </a>
        </div>       
        <?php 
        }
        ?>
        <div class="mouseover"><div class="mouseover-inside"><a class="button" target="_blank" href="<?php 
        echo $article->cover_link;
        ?>
">Descargar PDF</a></div></div>
      </div>      
    </div>
    <?php 
    }
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:open.php

示例11: upload_advf

  <div class="header-title<?php 
if (!$article->author->picture) {
    ?>
 no-picture<?php 
}
?>
">
    <span class="app-hidden" itemprop="articleSection"><?php 
echo $article->category_name;
?>
</span>
    <?php 
if ($article->author->picture) {
    ?>
<div class="picture"><a class="picture-author" style="background-image:url(<?php 
    echo upload_advf($article->author->picture, 170, 170, true);
    ?>
)" title="<?php 
    echo $article->author->author_name;
    ?>
 <?php 
    echo $article->author->author_lastname;
    ?>
" target="_blank" href="<?php 
    echo $this->config->item('link-infonews', 'app') . "autor/{$article->author->id}/" . prep_word_url($article->author->author_name . ' ' . $article->author->author_lastname);
    ?>
"><?php 
    echo $article->author->author_name;
    ?>
 <?php 
    echo $article->author->author_lastname;
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:header-review.php

示例12: upload_advf

  <a title="<?php 
echo $article->title;
?>
" target="_blank" class="app-link" href="<?php 
echo $article->link;
?>
">
    <figure class="figure">
        <?php 
if ($article->picture) {
    ?>
<img alt="<?php 
    echo $article->title;
    ?>
" src="<?php 
    echo upload_advf($article->picture, 555, 420, true);
    ?>
" /><?php 
}
?>
        <?php 
if (count($article->tags)) {
    ?>
<h1><?php 
    echo $article->tags[0]->tag;
    ?>
</h1><?php 
}
?>
    </figure>
    <span class="article-content">
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:lead.php

示例13: upload_advf

        /* src="<?= upload_advf($image->picture, 100, 67, true) ?>" */
        ?>
                    data-position="<?php 
        echo $i;
        ?>
"
                    data-thumb="<?php 
        echo upload_advf($image->picture, 100, 67, true);
        ?>
"
                    data-image="<?php 
        echo upload_advf($image->picture, 735, 490, true);
        ?>
"
                    data-big="<?php 
        echo upload_advf($image->picture, 1153, 768, true);
        ?>
"
                    data-category="<?php 
        echo $image->category;
        ?>
"
                    data-categoryName="<?php 
        echo $image->category_name;
        ?>
"
                    <?php 
        if ($image->title) {
            ?>
data-title="<?php 
            if ($image->category_name) {
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:-gallery.php

示例14: upload_advf

          <div class="figure">
            <a ga-event="Click,Home Bloque <?php 
            echo $i;
            ?>
,Trending Nota Principal" title="<?php 
            echo $article->title;
            ?>
" class="app-link" href="<?php 
            echo $article->link;
            ?>
">
              <img alt="<?php 
            echo $article->title;
            ?>
" src="<?php 
            echo upload_advf($article->picture, 230, 153, true);
            ?>
" />
            </a>
          </div>
          <?php 
        }
        ?>
          <div class="subtitle"><?php 
        echo strip_tags($article->subtitle);
        ?>
</div>
        </div>
      </div>
    </div>
    <?php 
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:trending.php

示例15: upload_advf

    ?>
				<article class="widget-intimo-article">
					
		            <a title="<?php 
    echo $article->title;
    ?>
" class="app-link" href="<?php 
    echo $article->link;
    ?>
">
						<figure class="figure">
			               <img alt="<?php 
    echo $article->title;
    ?>
" class="app-lazy" data-src="<?php 
    echo upload_advf($article->picture, $w, $h, true);
    ?>
" />
			            </figure>
			            <div class="article-content">
			            	
							<h1><?php 
    echo $article->title;
    ?>
</h1>
							<p class="subtitle"><?php 
    echo $article->subtitle;
    ?>
</p>
			            </div>
		            </a>
开发者ID:INFOnews,项目名称:infonews,代码行数:31,代码来源:intimo.php


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