• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP thumb_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: _get_list


//.........这里部分代码省略.........
                 $result['list'][$key]['title'] = element('subject_length', $board) ? cut_str(element('post_title', $val), element('subject_length', $board)) : element('post_title', $val);
             }
             if (element('post_del', $val)) {
                 $result['list'][$key]['title'] = '게시물이 삭제 되었습니다';
             }
             $is_blind = element('blame_blind_count', $board) > 0 && element('post_blame', $val) >= element('blame_blind_count', $board) ? true : false;
             if ($is_blind) {
                 $result['list'][$key]['title'] = '신고가 접수된 게시글입니다.';
             }
             $result['list'][$key]['display_name'] = display_username(element('post_userid', $val), element('post_nickname', $val), element('mem_icon', $val), $use_sideview ? 'Y' : 'N');
             $result['list'][$key]['display_datetime'] = display_datetime(element('post_datetime', $val), $list_date_style, $list_date_style_manual);
             $result['list'][$key]['category'] = '';
             if (element('use_category', $board) && element('post_category', $val)) {
                 $result['list'][$key]['category'] = $this->Board_category_model->get_category_info(element('brd_id', $val), element('post_category', $val));
             }
             if ($param->output()) {
                 $result['list'][$key]['post_url'] .= '?' . $param->output();
             }
             $result['list'][$key]['num'] = $list_num--;
             $result['list'][$key]['is_hot'] = false;
             $hot_icon_day = $this->cbconfig->get_device_view_type() === 'mobile' ? element('mobile_hot_icon_day', $board) : element('hot_icon_day', $board);
             $hot_icon_hit = $this->cbconfig->get_device_view_type() === 'mobile' ? element('mobile_hot_icon_hit', $board) : element('hot_icon_hit', $board);
             if ($hot_icon_day && ctimestamp() - strtotime(element('post_datetime', $val)) <= $hot_icon_day * 86400) {
                 if ($hot_icon_hit && $hot_icon_hit <= element('post_hit', $val)) {
                     $result['list'][$key]['is_hot'] = true;
                 }
             }
             $result['list'][$key]['is_new'] = false;
             $new_icon_hour = $this->cbconfig->get_device_view_type() === 'mobile' ? element('mobile_new_icon_hour', $board) : element('new_icon_hour', $board);
             if ($new_icon_hour && ctimestamp() - strtotime(element('post_datetime', $val)) <= $new_icon_hour * 3600) {
                 $result['list'][$key]['is_new'] = true;
             }
             $result['list'][$key]['is_mobile'] = element('post_device', $val) === 'mobile' ? true : false;
             $result['list'][$key]['thumb_url'] = '';
             $result['list'][$key]['origin_image_url'] = '';
             if (element('use_gallery_list', $board)) {
                 if (element('post_image', $val)) {
                     $filewhere = array('post_id' => element('post_id', $val), 'pfi_is_image' => 1);
                     $file = $this->Post_file_model->get_one('', '', $filewhere, '', '', 'pfi_id', 'ASC');
                     $result['list'][$key]['thumb_url'] = thumb_url('post', element('pfi_filename', $file), $gallery_image_width, $gallery_image_height);
                     $result['list'][$key]['origin_image_url'] = thumb_url('post', element('pfi_filename', $file));
                 } else {
                     $thumb_url = get_post_image_url(element('post_content', $val), $gallery_image_width, $gallery_image_height);
                     $result['list'][$key]['thumb_url'] = $thumb_url ? $thumb_url : thumb_url('', '', $gallery_image_width, $gallery_image_height);
                     $result['list'][$key]['origin_image_url'] = $thumb_url;
                 }
             }
         }
     }
     $return['data'] = $result;
     $return['notice_list'] = $noticeresult;
     if (empty($from_view)) {
         $board['headercontent'] = $this->cbconfig->get_device_view_type() === 'mobile' ? element('mobile_header_content', $board) : element('header_content', $board);
     }
     $board['footercontent'] = $this->cbconfig->get_device_view_type() === 'mobile' ? element('mobile_footer_content', $board) : element('footer_content', $board);
     $board['cat_display_style'] = $this->cbconfig->get_device_view_type() === 'mobile' ? element('mobile_category_display_style', $board) : element('category_display_style', $board);
     $return['board'] = $board;
     $return['point_info'] = '';
     if ($this->cbconfig->item('use_point') && element('use_point', $board) && element('use_point_info', $board)) {
         $point_info = '';
         if (element('point_write', $board)) {
             $point_info .= '원글작성 : ' . element('point_write', $board) . '<br />';
         }
         if (element('point_comment', $board)) {
             $point_info .= '댓글작성 : ' . element('point_comment', $board) . '<br />';
         }
开发者ID:smboy86,项目名称:zzing,代码行数:67,代码来源:Board_post.php


示例2: function

?>
", "mData": "link", "sType": "string"},
    { "bVisible": false, "sWidth": "60px", "sClass": "text-align-center widget-filemanager", "sTitle": "<?php 
echo $this->lang->line("Presentación");
?>
", "mData": "fm1file", "sType":"html", "mRender" : function( data, type, full ){ 
      var type = 0;
      if(data) type = full["fm1type"];
      return (data ? '<a class="no-propagation" href="<?php 
echo upload();
?>
'+ full["fm1file"] +'<?php 
echo thumb_version();
?>
" target="_blank">' : '') + '<div data-type="'+type +'" class="file-info type-'+ type +'"><div class="file-ico">' + ((data  && type == 1) ? '<img src="<?php 
echo thumb_url();
?>
'+ full["id_file"] +'<?php 
echo thumb_version();
?>
" />' : '' ) +'</div></div>' + (data ? '</a>' : '');
    }},
    { "bVisible": false, "sClass": "text-align-center", "sTitle": "<?php 
echo $this->lang->line("Orden");
?>
", "mData": "num", "sType": "string"},
    { "bVisible": false, "sClass": "text-align-center", "sTitle": "<?php 
echo $this->lang->line("Data");
?>
", "mData": "data", "sType": "string"},
    { "sClass": "text-align-center", "sWidth": "40px", "sTitle": "<?php 
开发者ID:juanazareno,项目名称:identty,代码行数:31,代码来源:list-script.php


示例3: foreach

    foreach ($photos as $photo) {
        ?>
					<div id="photo-item-<?php 
        echo $photo->uid;
        ?>
" class="photo-item">
						<div id="photo-<?php 
        echo $photo->uid;
        ?>
" class="x-photo">
							<a class="p-img" href="<?php 
        echo photo_link($photo->uid);
        ?>
">
						<img src="<?php 
        echo thumb_url($photo->storage, $photo->name);
        ?>
" alt="<?php 
        echo $photo->title;
        ?>
" width="200" />
							</a>
						</div><!-- #photo-<?php 
        echo $photo->uid;
        ?>
 -->
						
						<div id="photo-meta-<?php 
        echo $photo->uid;
        ?>
"  class="x-photo-meta">
开发者ID:Git-Host,项目名称:gdxkc-code,代码行数:31,代码来源:list.php


示例4: while

    <?php 
$counter = 0;
while (have_posts()) {
    the_post();
    $counter++;
    ?>
      <div class="col_12 <?php 
    if ($counter % 2 == 0) {
        echo ' last';
    }
    ?>
" style="margin-bottom: 20px;">
      <blockquote>    
        <?php 
    if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
        echo do_shortcode('[image source="' . thumb_url() . '" align="left" size="medium" image_style="rounded" margin_bottom=30]');
    }
    ?>
        <p><?php 
    echo get_the_content();
    ?>
</p>
        </blockquote>
        <p class="testiname"><strong><?php 
    the_title();
    ?>
</strong></p>
      </div>
      <?php 
}
?>
开发者ID:googlecode-mirror,项目名称:wpmu-demo,代码行数:31,代码来源:category-testimonials.php


示例5: index

 /**
  * 목록을 가져오는 메소드입니다
  */
 public function index()
 {
     // 이벤트 라이브러리를 로딩합니다
     $eventname = 'event_admin_page_banner_index';
     $this->load->event($eventname);
     $view = array();
     $view['view'] = array();
     // 이벤트가 존재하면 실행합니다
     $view['view']['event']['before'] = Events::trigger('before', $eventname);
     /**
      * 페이지에 숫자가 아닌 문자가 입력되거나 1보다 작은 숫자가 입력되면 에러 페이지를 보여줍니다.
      */
     $param =& $this->querystring;
     $page = (int) $this->input->get('page') > 0 ? (int) $this->input->get('page') : 1;
     $view['view']['sort'] = array('ban_id' => $param->sort('ban_id', 'asc'), 'ban_title' => $param->sort('ban_title', 'asc'), 'ban_url' => $param->sort('ban_url', 'asc'), 'ban_start_date' => $param->sort('ban_start_date', 'asc'), 'ban_end_date' => $param->sort('ban_end_date', 'asc'), 'ban_hit' => $param->sort('ban_hit', 'asc'), 'ban_order' => $param->sort('ban_order', 'asc'), 'ban_activated' => $param->sort('ban_activated', 'asc'));
     $findex = $this->input->get('findex') ? $this->input->get('findex') : $this->{$this->modelname}->primary_key;
     $forder = $this->input->get('forder', null, 'desc');
     $sfield = $this->input->get('sfield', null, '');
     $skeyword = $this->input->get('skeyword', null, '');
     $per_page = admin_listnum();
     $offset = ($page - 1) * $per_page;
     /**
      * 게시판 목록에 필요한 정보를 가져옵니다.
      */
     $this->{$this->modelname}->allow_search_field = array('ban_id', 'ban_title', 'ban_url');
     // 검색이 가능한 필드
     $this->{$this->modelname}->search_field_equal = array('ban_id');
     // 검색중 like 가 아닌 = 검색을 하는 필드
     $this->{$this->modelname}->allow_order_field = array('ban_id', 'ban_start_date', 'ban_end_date', 'ban_title', 'ban_url', 'ban_hit', 'ban_order', 'ban_activated');
     // 정렬이 가능한 필드
     $result = $this->{$this->modelname}->get_admin_list($per_page, $offset, '', '', $findex, $forder, $sfield, $skeyword);
     $list_num = $result['total_rows'] - ($page - 1) * $per_page;
     if (element('list', $result)) {
         foreach (element('list', $result) as $key => $val) {
             if (element('ban_image', $val)) {
                 $result['list'][$key]['thumb_url'] = thumb_url('banner', element('ban_image', $val), '80');
             }
             if (empty($val['ban_start_date']) or $val['ban_start_date'] === '0000-00-00') {
                 $result['list'][$key]['ban_start_date'] = '미지정';
             }
             if (empty($val['ban_end_date']) or $val['ban_end_date'] === '0000-00-00') {
                 $result['list'][$key]['ban_end_date'] = '미지정';
             }
             $result['list'][$key]['num'] = $list_num--;
         }
     }
     $view['view']['data'] = $result;
     /**
      * primary key 정보를 저장합니다
      */
     $view['view']['primary_key'] = $this->{$this->modelname}->primary_key;
     /**
      * 페이지네이션을 생성합니다
      */
     $config['base_url'] = admin_url($this->pagedir) . '?' . $param->replace('page');
     $config['total_rows'] = $result['total_rows'];
     $config['per_page'] = $per_page;
     $this->pagination->initialize($config);
     $view['view']['paging'] = $this->pagination->create_links();
     $view['view']['page'] = $page;
     /**
      * 쓰기 주소, 삭제 주소등 필요한 주소를 구합니다
      */
     $search_option = array('ban_title' => '이미지 설명', 'ban_url' => '이미지 URL');
     $view['view']['skeyword'] = $sfield && array_key_exists($sfield, $search_option) ? $skeyword : '';
     $view['view']['search_option'] = search_option($search_option, $sfield);
     $view['view']['listall_url'] = admin_url($this->pagedir);
     $view['view']['write_url'] = admin_url($this->pagedir . '/write');
     $view['view']['list_delete_url'] = admin_url($this->pagedir . '/listdelete/?' . $param->output());
     // 이벤트가 존재하면 실행합니다
     $view['view']['event']['before_layout'] = Events::trigger('before_layout', $eventname);
     /**
      * 어드민 레이아웃을 정의합니다
      */
     $layoutconfig = array('layout' => 'layout', 'skin' => 'index');
     $view['layout'] = $this->managelayout->admin($layoutconfig, $this->cbconfig->get_device_view_type());
     $this->data = $view;
     $this->layout = element('layout_skin_file', element('layout', $view));
     $this->view = element('view_skin_file', element('layout', $view));
 }
开发者ID:smboy86,项目名称:zzing,代码行数:83,代码来源:Banner.php


示例6: NewFileFromFile

 function NewFileFromFile($id = 0, $nfile = '')
 {
     if (!$id || !$nfile) {
         return false;
     }
     $sql = "select * from {$this->dbfiles}nz_file where id_file='{$id}'";
     $row = $this->db->query($sql)->row_array();
     if (!$row) {
         return false;
     }
     unset($row['id_file']);
     $row['date'] = date('d-m-Y H:i');
     $fc = str_replace('/admin/', '/', str_replace('\\', '/', FCPATH)) . 'files/';
     $nfile = str_replace($fc, '', $nfile);
     $info = pathinfo($nfile);
     $row['file'] = $nfile;
     $row['name'] = $info['basename'];
     $sql = $this->db->insert_string("{$this->dbfiles}nz_file", $row);
     $this->db->query($sql);
     $row['id'] = $this->db->insert_id();
     if ($row['id_type'] == 1) {
         $row['thumb'] = thumb_url($row['id'], $this->fglobal);
     }
     $row['url'] = upload($row['file'], $this->fglobal);
     return $row;
 }
开发者ID:juanazareno,项目名称:nz,代码行数:26,代码来源:filemanagermodel.php


示例7: foreach

    foreach (element('list', element('data', $view)) as $result) {
        ?>
    <div class="media">
<?php 
        if (element('images', $result)) {
            ?>
        <div class="media-left">
            <a href="<?php 
            echo element('post_url', $result);
            ?>
" title="<?php 
            echo html_escape(element('post_title', $result));
            ?>
">
                <img class="media-object" src="<?php 
            echo thumb_url('post', element('pfi_filename', element('images', $result)), 100, 80);
            ?>
" alt="<?php 
            echo html_escape(element('post_title', $result));
            ?>
" title="<?php 
            echo html_escape(element('post_title', $result));
            ?>
" style="width:100px;height:80px;" />
            </a>
        </div>
<?php 
        }
        ?>
        <div class="media-body">
            <h4 class="media-heading"><a href="<?php 
开发者ID:smboy86,项目名称:zzing,代码行数:31,代码来源:search.php


示例8: bcn_display

if (function_exists('bcn_display')) {
    bcn_display();
}
?>
				</ul>
			</div>
			<?php 
if (has_post_thumbnail()) {
    ?>

				<div class="featured-img">
					
					<?php 
    $img_height = 222;
    $img_width = 700;
    resize_image(thumb_url(), $img_width, $img_height);
    ?>
								
				</div>

			<?php 
}
?>
							
			<div class="content-main">
				<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
				
开发者ID:essl-pvac,项目名称:cihm-relationship-toolkit,代码行数:30,代码来源:single.php


示例9: thumb_url

					</li>
					<li><span class="pmeta">图片规格:</span><?php 
echo $pthis->width . '*' . $pthis->height;
?>
</li>
					<li><span class="pmeta">图片大小:</span><?php 
echo $pthis->size;
?>
 KB</li>
					<li><span class="pmeta">上传时间:</span><?php 
echo $pthis->upload_time;
?>
</li>
					<li class="outlink"><span class="pmeta">外链地址:</span>
						<a href="<?php 
echo thumb_url($pthis->storage, $pthis->name);
?>
">200</a>
						<a href="<?php 
echo photo_url($pthis->storage, $pthis->name);
?>
">original</a>
					</li>
					<?php 
if ($LOGIN) {
    ?>
					<li><span class="pmeta">操作:</span>
						<a href="javascript:void(0)" onclick="delete_photo('<?php 
    echo $pthis->name;
    ?>
','<?php 
开发者ID:Git-Host,项目名称:gdxkc-code,代码行数:31,代码来源:photo.php


示例10: latest


//.........这里部分代码省略.........
             return $html;
         }
     }
     if (empty($skin)) {
         $skin = 'basic';
     }
     $view['view']['config'] = $config;
     $view['view']['length'] = $length;
     if ($brd_key) {
         if (is_array($brd_key)) {
             foreach ($brd_key as $v) {
                 $brd_id[] = $this->CI->board->item_key('brd_id', $v);
             }
         } else {
             $brd_id = $this->CI->board->item_key('brd_id', $brd_key);
         }
     }
     if ($exclude_brd_key) {
         if (is_array($exclude_brd_key)) {
             foreach ($exclude_brd_key as $v) {
                 $exclude_brd_id[] = $this->CI->board->item_key('brd_id', $v);
             }
         } else {
             $exclude_brd_id = $this->CI->board->item_key('brd_id', $exclude_brd_key);
         }
     }
     if ($brd_id && !is_array($brd_id)) {
         $view['view']['board'] = $this->CI->board->item_all($brd_id);
     }
     $where = array();
     $where['post_del'] = 0;
     $where['post_secret'] = 0;
     $this->CI->db->from('post');
     $this->CI->db->where($where);
     if ($brd_id) {
         if (is_array($brd_id)) {
             $this->CI->db->group_start();
             foreach ($brd_id as $v) {
                 $this->CI->db->or_where('brd_id', $v);
             }
             $this->CI->db->group_end();
         } else {
             $this->CI->db->where('brd_id', $brd_id);
         }
     }
     if ($exclude_brd_id) {
         if (is_array($exclude_brd_id)) {
             foreach ($exclude_brd_id as $v) {
                 $this->CI->db->where('brd_id <>', $v);
             }
         } else {
             $this->CI->db->where('brd_id <>', $exclude_brd_id);
         }
     }
     if ($period_second) {
         $post_start_datetime = cdate('Y-m-d H:i:s', ctimestamp() - $period_second);
         $this->CI->db->where('post_datetime >=', $post_start_datetime);
     }
     if ($findex && $forder) {
         $forder = strtoupper($forder) === 'ASC' ? 'ASC' : 'DESC';
         $this->CI->db->order_by($findex, $forder);
     }
     if (is_numeric($limit)) {
         $this->CI->db->limit($limit);
     }
     $result = $this->CI->db->get();
     $view['view']['latest'] = $latest = $result->result_array();
     $view['view']['latest_limit'] = $limit;
     if ($latest && is_array($latest)) {
         foreach ($latest as $key => $value) {
             $view['view']['latest'][$key]['name'] = display_username(element('post_userid', $value), element('post_nickname', $value));
             $brd_key = $this->CI->board->item_id('brd_key', element('brd_id', $value));
             $view['view']['latest'][$key]['url'] = post_url($brd_key, element('post_id', $value));
             $view['view']['latest'][$key]['title'] = $length ? cut_str(element('post_title', $value), $length) : element('post_title', $value);
             $view['view']['latest'][$key]['display_datetime'] = display_datetime(element('post_datetime', $value), '');
             $view['view']['latest'][$key]['category'] = '';
             if (element('post_category', $value)) {
                 $view['view']['latest'][$key]['category'] = $this->CI->Board_category_model->get_category_info(element('brd_id', $value), element('post_category', $value));
             }
             if ($is_gallery) {
                 if (element('post_image', $value)) {
                     $imagewhere = array('post_id' => element('post_id', $value), 'pfi_is_image' => 1);
                     $file = $this->CI->Post_file_model->get_one('', '', $imagewhere, '', '', 'pfi_id', 'ASC');
                     if (element('pfi_filename', $file)) {
                         $view['view']['latest'][$key]['thumb_url'] = thumb_url('post', element('pfi_filename', $file), $image_width, $image_height);
                     }
                 } else {
                     $thumb_url = get_post_image_url(element('post_content', $value), $image_width, $image_height);
                     $view['view']['latest'][$key]['thumb_url'] = $thumb_url ? $thumb_url : thumb_url('', '', $image_width, $image_height);
                 }
             }
         }
     }
     $view['view']['skinurl'] = base_url(VIEW_DIR . 'latest/' . $skin);
     $html = $this->CI->load->view('latest/' . $skin . '/latest', $view, true);
     if ($cache_minute > 0) {
         $this->CI->cache->save($cachename, $html, $cache_minute);
     }
     return $html;
 }
开发者ID:smboy86,项目名称:zzing,代码行数:101,代码来源:Board.php


示例11: index

 /**
  * 목록을 가져오는 메소드입니다
  */
 public function index()
 {
     // 이벤트 라이브러리를 로딩합니다
     $eventname = 'event_admin_board_trash_index';
     $this->load->event($eventname);
     $view = array();
     $view['view'] = array();
     // 이벤트가 존재하면 실행합니다
     $view['view']['event']['before'] = Events::trigger('before', $eventname);
     /**
      * 페이지에 숫자가 아닌 문자가 입력되거나 1보다 작은 숫자가 입력되면 에러 페이지를 보여줍니다.
      */
     $param =& $this->querystring;
     $page = (int) $this->input->get('page') > 0 ? (int) $this->input->get('page') : 1;
     $findex = 'post_id';
     $forder = 'desc';
     $sfield = $this->input->get('sfield', null, '');
     $skeyword = $this->input->get('skeyword', null, '');
     $per_page = admin_listnum();
     $offset = ($page - 1) * $per_page;
     /**
      * 게시판 목록에 필요한 정보를 가져옵니다.
      */
     $this->{$this->modelname}->allow_search_field = array('post_id', 'post_title', 'post_content', 'mem_id', 'post_username', 'post_nickname', 'post_email', 'post_homepage', 'post_datetime', 'post_ip', 'post_device');
     // 검색이 가능한 필드
     $this->{$this->modelname}->search_field_equal = array('post_id', 'mem_id');
     // 검색중 like 가 아닌 = 검색을 하는 필드
     $this->{$this->modelname}->allow_order_field = array('post_id desc');
     // 정렬이 가능한 필드
     $where = array('post_del' => 2);
     if ($brdid = (int) $this->input->get('brd_id')) {
         $where['brd_id'] = $brdid;
     }
     $result = $this->{$this->modelname}->get_admin_list($per_page, $offset, $where, '', $findex, $forder, $sfield, $skeyword);
     $list_num = $result['total_rows'] - ($page - 1) * $per_page;
     if (element('list', $result)) {
         foreach (element('list', $result) as $key => $val) {
             $result['list'][$key]['meta'] = $meta = $this->Post_meta_model->get_all_meta(element('post_id', $val));
             if (element('trash_mem_id', $meta)) {
                 $select = 'mem_id, mem_userid, mem_nickname, mem_icon';
                 $result['list'][$key]['member'] = $dbmember = $this->Member_model->get_by_memid(element('trash_mem_id', $meta), $select);
                 $result['list'][$key]['display_name'] = display_username(element('mem_userid', $dbmember), element('mem_nickname', $dbmember));
             }
             $result['list'][$key]['board'] = $board = $this->board->item_all(element('brd_id', $val));
             $result['list'][$key]['num'] = $list_num--;
             if ($board) {
                 $result['list'][$key]['baordurl'] = board_url(element('brd_key', $board));
                 $result['list'][$key]['posturl'] = post_url(element('brd_key', $board), element('post_id', $val));
                 $filewhere = array('post_id' => element('post_id', $val), 'pfi_is_image' => 1);
                 $file = $this->Post_file_model->get_one('', '', $filewhere, '', '', 'pfi_id', 'ASC');
                 if (element('pfi_filename', $file)) {
                     $result['list'][$key]['origin_image_url'] = thumb_url('post', element('pfi_filename', $file));
                     $result['list'][$key]['thumb_url'] = thumb_url('post', element('pfi_filename', $file), '80');
                 }
             }
         }
     }
     $view['view']['data'] = $result;
     $view['view']['boardlist'] = $this->Board_model->get_board_list();
     /**
      * primary key 정보를 저장합니다
      */
     $view['view']['primary_key'] = $this->{$this->modelname}->primary_key;
     /**
      * 페이지네이션을 생성합니다
      */
     $config['base_url'] = admin_url($this->pagedir) . '?' . $param->replace('page');
     $config['total_rows'] = $result['total_rows'];
     $config['per_page'] = $per_page;
     $this->pagination->initialize($config);
     $view['view']['paging'] = $this->pagination->create_links();
     $view['view']['page'] = $page;
     /**
      * 쓰기 주소, 삭제 주소등 필요한 주소를 구합니다
      */
     $search_option = array('post_title' => '제목', 'post_content' => '내용', 'post_username' => '실명', 'post_nickname' => '닉네임', 'post_email' => '이메일', 'post_homepage' => '홈페이지', 'post_datetime' => '작성일', 'post_ip' => 'IP');
     $view['view']['skeyword'] = $sfield && array_key_exists($sfield, $search_option) ? $skeyword : '';
     $view['view']['search_option'] = search_option($search_option, $sfield);
     $view['view']['listall_url'] = admin_url($this->pagedir);
     $view['view']['list_delete_url'] = admin_url($this->pagedir . '/listdelete/?' . $param->output());
     $view['view']['list_truncate_url'] = admin_url($this->pagedir . '/truncate/?' . $param->output());
     $view['view']['list_recover_url'] = admin_url($this->pagedir . '/listrecover/?' . $param->output());
     // 이벤트가 존재하면 실행합니다
     $view['view']['event']['before_layout'] = Events::trigger('before_layout', $eventname);
     /**
      * 어드민 레이아웃을 정의합니다
      */
     $layoutconfig = array('layout' => 'layout', 'skin' => 'index');
     $view['layout'] = $this->managelayout->admin($layoutconfig, $this->cbconfig->get_device_view_type());
     $this->data = $view;
     $this->layout = element('layout_skin_file', element('layout', $view));
     $this->view = element('view_skin_file', element('layout', $view));
 }
开发者ID:smboy86,项目名称:zzing,代码行数:96,代码来源:Trash.php


示例12: get_anythingslider

function get_anythingslider($cat = "", $slideshow_order)
{
    global $post;
    ?>
    <?php 
    $cycle_speed = get_option('corbiz_anything_speed') ? get_option('corbiz_anything_speed') : 3000;
    $slideshow_order = get_option('corbiz_slideshow_order') ? get_option('corbiz_slideshow_order') : "date";
    $slideshow_cat = get_option('corbiz_slideshow_cat');
    ?>
    <script type="text/javascript"> 
     jQuery(document).ready(function($) {
      $('#cycle-slider').anythingSlider({
       autoPlay            : true,
       pauseOnHover        : true,
       buildStartStop      : false,
       infiniteSlides      : true,
       autoPlayLocked      : true,     // If true, user changing slides will not stop the slideshow
       resumeDelay         : <?php 
    echo $cycle_speed;
    ?>
,
       autoPlayDelayed     : false,
       delay               : <?php 
    echo $cycle_speed;
    ?>
,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
       animationTime       : 300,
       vertical            : false,
       delayBeforeAnimate  : 0,
       hashTags            : false
      })
      .anythingSliderFx({
        // base FX definitions
        // '.selector' : [ 'effect(s)', 'size', 'time', 'easing' ]
        // 'size', 'time' and 'easing' are optional parameters, but must be kept in order if added
        '.slide-text-wide h3'       : [ 'top', '400px', '500', 'easeInOutSine' ],
        '.slide-text-wide h4'       : [ 'left', '700px', '500', 'easeInOutSine' ],
        '.slide-text-wide h5, .slide-text-wide p'       : [ 'right', '700px', '500', 'easeInOutSine' ],
        '.slide-text-wide .button'       : [ 'bottom', '400px', '500', 'easeInOutSine' ],
        '.slide-image-left img':  [ 'top', '400px', '700', 'easeOutQuart' ],
        '.slide-text-wide li'       : [ 'listLR' ]
      });
      $(".forward").click(function(){
        $('#cycle-slider').data('AnythingSlider').goForward();
      });
		});
    </script> 
      
        <!-- Slideshow Start -->
        <ul id="cycle-slider">
        <?php 
    query_posts(array('post_type' => 'slideshow', 'posts_per_page' => -1, 'slideshow_category' => $cat, 'orderby' => $slideshow_order, 'order' => 'DESC'));
    ?>
          <?php 
    $counter = 0;
    while (have_posts()) {
        the_post();
        $counter++;
        $slideshow_url = get_post_meta($post->ID, '_slideshow_url', true) ? get_post_meta($post->ID, '_slideshow_url', true) : get_permalink();
        ?>
              <li>
                <div class="slide-image-left">
                  <?php 
        if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
            ?>
                    <a href="<?php 
            echo $slideshow_url;
            ?>
"><img src="<?php 
            echo get_template_directory_uri();
            ?>
/timthumb.php?src=<?php 
            echo thumb_url();
            ?>
&amp;h=300&amp;w=300&amp;zc=2" alt="" /></a>
                  <?php 
        }
        ?>
                </div>
                <div class="slide-text-wide">
                  <h3 class="slide-title"><?php 
        the_title();
        ?>
</h3>
                  <?php 
        the_content();
        ?>
                  <a href="#" class="button buttongreen"><span>Read More</span></a>
                </div>
              </li>
          <?php 
    }
    ?>
          <?php 
    wp_reset_query();
    ?>
   
          </ul>
<?php 
}
开发者ID:googlecode-mirror,项目名称:wpmu-demo,代码行数:100,代码来源:theme-functions.php


示例13: while

        
    <?php 
$counter = 0;
while (have_posts()) {
    the_post();
    $counter++;
    ?>
      <div class="col_12 <?php 
    if ($counter % 2 == 0) {
        echo ' last';
    }
    ?>
" style="margin-bottom: 20px;">
        <?php 
    if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
        echo do_shortcode('[image source="' . thumb_url() . '" align="left" size="small" image_style="square" margin_bottom=40]');
    }
    ?>
        <h4><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h4>
        <p><?php 
    echo get_the_excerpt();
    ?>
</p>
      </div>
      <?php 
开发者ID:googlecode-mirror,项目名称:wpmu-demo,代码行数:30,代码来源:category-team.php


示例14: widget

    function widget($args, $instance)
    {
        global $post;
        extract($args);
        $postid = apply_filters('postid', $instance['postid']);
        $opt_thumbnail = apply_filters('opt_thumbnail', $instance['opt_thumbnail']);
        $postexcerpt = apply_filters('postexcerpt', $instance['postexcerpt']);
        if ($postexcerpt == "") {
            $postexcerpt = 20;
        }
        echo $before_widget;
        $postlist = new WP_Query('p=' . $postid);
        while ($postlist->have_posts()) {
            $postlist->the_post();
            $image_thumbnail = get_post_meta($post->ID, '_image_thumbnail', true);
            $title = $before_title . get_the_title() . $after_title;
            echo $title;
            ?>
      <?php 
            if ($opt_thumbnail == "on") {
                ?>
        <div class="boximg2">
        <?php 
                if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
                    ?>
        <div class="side-box">
          <?php 
                    if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
                        ?>
            <img src="<?php 
                        echo get_template_directory_uri();
                        ?>
/timthumb.php?src=<?php 
                        echo thumb_url();
                        ?>
&amp;h=124&amp;w=236&amp;zc=1"  alt="" />
          <?php 
                    }
                    ?>
        </div>
        <?php 
                }
                ?>
        </div>
        <?php 
            }
            ?>
    <p><?php 
            echo excerpt($postexcerpt);
            ?>
<a href="<?php 
            the_permalink();
            ?>
"  class="linkreadmore"> <?php 
            echo __('Read more &raquo;', 'corbiz');
            ?>
</a></p>
    <?php 
        }
        echo $after_widget;
    }
开发者ID:googlecode-mirror,项目名称:wpmu-demo,代码行数:61,代码来源:theme-widgets.php


示例15: post

 /**
  * 마이페이지>나의작성글 입니다
  */
 public function post()
 {
     // 이벤트 라이브러리를 로딩합니다
     $eventname = 'event_mypage_post';
     $this->load->event($eventname);
     /**
      * 로그인이 필요한 페이지입니다
      */
     required_user_login();
     $mem_id = (int) $this->member->item('mem_id');
     $view = array();
     $view['view'] = array();
     // 이벤트가 존재하면 실행합니다
     $view['view']['event']['before'] = Events::trigger('before', $eventname);
     $this->load->model(array('Post_model', 'Post_file_model'));
     /**
      * 페이지에 숫자가 아닌 문자가 입력되거나 1보다 작은 숫자가 입력되면 에러 페이지를 보여줍니다.
      */
     $param =& $this->querystring;
     $page = (int) $this->input->get('page') > 0 ? (int) $this->input->get('page') : 1;
     $findex = $this->Post_model->primary_key;
     $forder = 'desc';
     $per_page = $this->cbconfig->item('list_count') ? $this->cbconfig->item('list_count') : 20;
     $offset = ($page - 1) * $per_page;
     /**
      * 게시판 목록에 필요한 정보를 가져옵니다.
      */
     $where = array('post.mem_id' => $mem_id, 'post_del' => 0);
     $result = $this->Post_model->get_post_list($per_page, $offset, $where, '', $findex, $forder);
     $list_num = $result['total_rows'] - ($page - 1) * $per_page;
     if (element('list', $result)) {
         foreach (element('list', $result) as $key => $val) {
             $brd_key = $this->board->item_id('brd_key', element('brd_id', $val));
             $result['list'][$key]['post_url'] = post_url($brd_key, element('post_id', $val));
             $result['list'][$key]['num'] = $list_num--;
             if (element('post_image', $val)) {
                 $filewhere = array('post_id' => element('post_id', $val), 'pfi_is_image' => 1);
                 $file = $this->Post_file_model->get_one('', '', $filewhere, '', '', 'pfi_id', 'ASC');
                 $result['list'][$key]['thumb_url'] = thumb_url('post', element('pfi_filename', $file), 50, 40);
             } else {
                 $result['list'][$key]['thumb_url'] = get_post_image_url(element('post_content', $val), 50, 40);
             }
         }
     }
     $view['view']['data'] = $result;
     /**
      * 페이지네이션을 생성합니다
      */
     $config['base_url'] = site_url('mypage/post') . '?' . $param->replace('page');
     $config['total_rows'] = $result['total_rows'];
     $config['per_page'] = $per_page;
     $this->pagination->initialize($config);
     $view['view']['paging'] = $this->pagination->create_links();
     $view['view']['page'] = $page;
     // 이벤트가 존재하면 실행합니다
     $view['view']['event']['before_layout'] = Events::trigger('before_layout', $eventname);
     /**
      * 레이아웃을 정의합니다
      */
     $page_title = $this->cbconfig->item('site_meta_title_mypage_post');
     $meta_description = $this->cbconfig->item('site_meta_description_mypage_post');
     $meta_keywords = $this->cbconfig->item('site_meta_keywords_mypage_post');
     $meta_author = $this->cbconfig->item('site_meta_author_mypage_post');
     $page_name = $this->cbconfig->item('site_page_name_mypage_post');
     $layoutconfig = array('path' => 'mypage', 'layout' => 'layout', 'skin' => 'post', 'layout_dir' => $this->cbconfig->item('layout_mypage'), 'mobile_layout_dir' => $this->cbconfig->item('mobile_layout_mypage'), 'use_sidebar' => $this->cbconfig->item('sidebar_mypage'), 'use_mobile_sidebar' => $this->cbconfig->item('mobile_sidebar_mypage'), 'skin_dir' => $this->cbconfig->item('skin_mypage'), 'mobile_skin_dir' => $this->cbconfig->item('mobile_skin_mypage'), 'page_title' => $page_title, 'meta_description' => $meta_description, 'meta_keywords' => $meta_keywords, 'meta_author' => $meta_author, 'page_name' => $page_name);
     $view['layout'] = $this->managelayout->front($layoutconfig, $this->cbconfig->get_device_view_type());
     $this->data = $view;
     $this->layout = element('layout_skin_file', element('layout', $view));
     $this->view = element('view_skin_file', element('layout', $view));
 }
开发者ID:smboy86,项目名称:zzing,代码行数:73,代码来源:Mypage.php


示例16: upload

        echo $i->id;
        ?>
" class="gallery-item ctype-<?php 
        echo $i->type;
        ?>
"><a class="file-box link" href="<?php 
        echo upload($i->file, $field['global']);
        ?>
" target="_blank"><div class="file-info type-<?php 
        echo $i->type;
        ?>
"><div class="file-ico"><?php 
        if ($i->type == 1) {
            ?>
<img src="<?php 
            echo thumb_url($i->id, $field['global']);
            ?>
" /><?php 
        }
        ?>
</div></div><span class="file-name"><?php 
        echo $i->name;
        ?>
</span></a><div class="gallery-item-actions">
    <?php 
        if ($this->MApp->secure->edit && !$field['disabled'] && !$field['readonly']) {
            ?>
    <button type="button" class="btn btn-success button-edit"><i class="glyphicon glyphicon-edit"></i></button>
    <button type="button" class="btn btn-danger button-delete"><i class="glyphicon glyphicon-trash"></i></button>
    <?php 
        }
开发者ID:juanazareno,项目名称:nz,代码行数:31,代码来源:form.php


示例17: function

?>
", "mData": "url", "sType": "html", "mRender" : function( data, type, full ){ 
      if(!data) return '-';
      return '<a class="no-propagation" target="_blank" href="' + data + '">' + data.replace('http://', '').replace('https://', '').replace(/\/+$/g,''); + '</a>';
    }},
    { "sWidth": "60px", "sClass": "text-align-center widget-filemanager", "sTitle": "<?php 
echo $this->lang->line("Imagen");
?>
", "mData": "fm1file", "sType":"html", "mRender" : function( data, type, full ){ 
      var type = 0;
      if(data) type = full["fm1type"];
      return (data ? '<a class=&q 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP thumbnail函数代码示例发布时间:2022-05-23
下一篇:
PHP thumb函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap