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


PHP getCMSArticleImageUrl函数代码示例

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


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

示例1: foreach

</h3>
      </div>
      <div class="content">
        <?php 
if (!empty($output['hot_picture_list']) && is_array($output['hot_picture_list'])) {
    ?>
        <ul class="recommand-pic-list">
          <?php 
    foreach ($output['hot_picture_list'] as $value) {
        ?>
          <li>
            <div class="thumb"> <a href="<?php 
        echo getCMSPictureUrl($value['picture_id']);
        ?>
" target="_blank"> <img src="<?php 
        echo getCMSArticleImageUrl($value['picture_attachment_path'], $value['picture_image']);
        ?>
" alt="<?php 
        echo $value['picture_title'];
        ?>
" class="t-img"/> </a></div>
            <p class="title"> <a href="<?php 
        echo getCMSPictureUrl($value['picture_id']);
        ?>
" target="_blank"> <?php 
        echo $value['picture_title'];
        ?>
 </a> </p>
          </li>
          <?php 
    }
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:picture_list.php

示例2: article_image_uploadOp

 /**
  * 文章图片上传
  */
 public function article_image_uploadOp()
 {
     $data = array();
     $data['status'] = 'success';
     if (!empty($this->publisher_name)) {
         if (!empty($_FILES['article_image_upload']['name'])) {
             $upload = new UploadFile();
             $upload->set('default_dir', ATTACH_CMS . DS . 'article' . DS . $this->attachment_path);
             $upload->set('thumb_width', '1024,240');
             $upload->set('thumb_height', '50000,5000');
             $upload->set('thumb_ext', '_max,_list');
             $result = $upload->upfile('article_image_upload');
             if (!$result) {
                 $data['status'] = 'fail';
                 $data['error'] = '图片上传失败';
             }
             $data['file_name'] = $upload->file_name;
             $data['origin_file_name'] = $_FILES['article_image_upload']['name'];
             $data['file_url'] = getCMSArticleImageUrl($this->attachment_path, $upload->file_name, 'max');
             $data['file_path'] = $this->attachment_path;
         }
     } else {
         $data['status'] = 'fail';
         $data['error'] = Language::get('no_login');
     }
     self::echo_json($data);
 }
开发者ID:noikiy,项目名称:cunkou,代码行数:30,代码来源:publish.php

示例3: date

echo date('Y-m-d', $output['article_detail']['article_publish_time']);
?>
</span> <span class="PV" title="<?php 
echo $lang['cms_text_view_count'];
?>
"><i></i><?php 
echo $lang['cms_text_view'];
?>
<em>(<b><?php 
echo $output['article_detail']['article_click'];
?>
</b>)</em></span> <span id="btn_sns_share" data-title="<?php 
echo $output['article_detail']['article_title'];
?>
" data-image="<?php 
echo getCMSArticleImageUrl($output['article_detail']['article_attachment_path'], $output['article_detail']['article_image'], 'list');
?>
" data-publisher="<?php 
echo empty($output['article_detail']['article_author']) ? $lang['cms_text_guest'] : $output['article_detail']['article_author'];
?>
" data-origin="<?php 
echo empty($output['article_detail']['article_origin']) ? C('site_name') : $output['article_detail']['article_origin'];
?>
" data-publish_time="<?php 
echo date('Y-m-d', $output['article_detail']['article_publish_time']);
?>
" data-abstract="<?php 
echo $output['article_detail']['article_abstract'];
?>
" class="cms-share" title="<?php 
echo $lang['cms_text_share_count'];
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:article_detail.php

示例4: getCMSArticleImageUrl

          <td class="w24"><input type="checkbox" value="<?php 
        echo $val['article_id'];
        ?>
" class="checkitem"></td>
          <td class="w48 sort"><span nc_type="article_sort" column_id="<?php 
        echo $val['article_id'];
        ?>
" title="<?php 
        echo $lang['nc_editable'];
        ?>
" class="editable "><?php 
        echo $val['article_sort'];
        ?>
</span>
          <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><img onload="javascript:DrawImage(this,56,56);" src="<?php 
        echo getCMSArticleImageUrl($val['article_attachment_path'], $val['article_image']);
        ?>
"></span></div></td>
          <td><p><?php 
        echo $val['article_title'];
        ?>
</p>
            <p><?php 
        echo $lang['cms_text_publisher'];
        echo $lang['nc_colon'];
        echo $val['article_publisher_name'];
        ?>
</p></td>
          <td class="w48 sort"><span nc_type="article_click" column_id="<?php 
        echo $val['article_id'];
        ?>
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:cms_article.list.php

示例5: getCMSArticleImageUrl

/index.php?act=share&op=share_save&type=<?php 
    echo $_GET['act'];
    ?>
" method="post" id="share_form" class="feededitor">
  <input type="hidden" value="<?php 
    echo $output['detail_object_id'];
    ?>
" name="share_id">
  </input>
  <input type="hidden" value="<?php 
    echo $output[$_GET['act'] . '_detail'][$_GET['act'] . '_title'];
    ?>
" name="share_title">
  </input>
  <input type="hidden" value="<?php 
    echo getCMSArticleImageUrl($output[$_GET['act'] . '_detail'][$_GET['act'] . '_attachment_path'], $output[$_GET['act'] . '_detail'][$_GET['act'] . '_image']);
    ?>
" name="share_image">
  </input>
  <dl class="share-target">
    <dt id="_share_title" class="title"></dt>    
    <dd class="cover"><a href="JavaScript: void(0);"><img id="_share_image" src="" alt="" /></a></dd>
    <dd class="sub"><span id="_share_publisher"></span><span id="_share_origin"></span><!--<span id="_share_publish_time"></span>--></dd>
    <dd class="abstract"><span id="_share_abstract"></span></dd>
  </dl>
  <div class="share-content">
    <textarea name="commend_message" id="commend_message" placeholder="<?php 
    echo $lang['cms_sns_share_title'];
    ?>
"></textarea>
  </div>
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:widget_sns_share.php

示例6: getCMSArticleImageUrl

        ?>
<a href="<?php 
        echo $article_url;
        ?>
" target="_blank"><?php 
        echo $lang['cms_read_more'];
        ?>
</a></div>
        <?php 
        if (!empty($value['article_image'])) {
            ?>
        <div class="article-cover"><a href="<?php 
            echo $article_url;
            ?>
" target="_blank"> <img class="image_lazy_load" data-src="<?php 
            echo getCMSArticleImageUrl($value['article_attachment_path'], $value['article_image'], 'list');
            ?>
" src="<?php 
            echo getLoadingImage();
            ?>
" alt="" /></a></div>
        <?php 
        }
        ?>
        <div class="article-tag"><?php 
        echo $lang['cms_keyword'];
        echo $lang['nc_colon'];
        ?>
          <?php 
        if (!empty($value['article_keyword'])) {
            ?>
开发者ID:mengtaolin,项目名称:shopping,代码行数:31,代码来源:article_list.php

示例7: foreach

            <td colspan="2">
            <div id="pic-upload-scrollbar"><ul class="picture-image-list">
                <?php 
if (!empty($output['picture_image_list'])) {
    ?>
                <?php 
    if (!empty($output['picture_image_list']) && is_array($output['picture_image_list'])) {
        ?>
                <?php 
        foreach ($output['picture_image_list'] as $key => $value) {
            ?>
                <li>
                  <dl class="picture-content">
                    <dt class="picture-img">
                      <div class="upload-thumb"><a href="Javascript: void(0);"><img nctype="picture_image_item" alt="" src="<?php 
            echo getCMSArticleImageUrl(empty($value['image_path']) ? $output['picture_detail']['picture_attachment_path'] : $value['image_path'], $value['image_name'], 'list');
            ?>
"></a></div>
                      <div class="handle"><a image_name="<?php 
            echo $value['image_name'];
            ?>
" nctype="btn_set_picture_image"><?php 
            echo $lang['cms_cover'];
            ?>
</a><a image_name="<?php 
            echo $value['image_name'];
            ?>
" nctype="btn_drop_picture_image"><?php 
            echo $lang['nc_delete'];
            ?>
</a></div>
开发者ID:ff00x0,项目名称:shopnc-api,代码行数:31,代码来源:publish_picture.php

示例8: getCMSPictureUrl

          <div class="clear"></div>
        </div>
        <div class="picture-nav-next"><a id="btn_next_page" href="JavaScript:;"></a></div>
        <div class="next-album">
          <div class="cover thumb">
            <?php 
if (!empty($output['next_picture'])) {
    ?>
            <a href="<?php 
    echo getCMSPictureUrl($output['next_picture']['picture_id']);
    ?>
" class="size60" title="<?php 
    echo $output['next_picture']['picture_title'];
    ?>
"> <img src="<?php 
    echo getCMSArticleImageUrl($output['next_picture']['picture_attachment_path'], $output['next_picture']['picture_image']);
    ?>
" class="t-img" /> </a>
            <?php 
} else {
    ?>
            <span><?php 
    echo $lang['cms_picture_null'];
    ?>
</span>
            <?php 
}
?>
          </div>
        </div>
      </div>
开发者ID:noikiy,项目名称:haifenbao,代码行数:31,代码来源:picture_detail.php


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