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


PHP Assets::image方法代码示例

本文整理汇总了PHP中helpers\Assets::image方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::image方法的具体用法?PHP Assets::image怎么用?PHP Assets::image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在helpers\Assets的用法示例。


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

示例1:

							  <div class="controls">
								<textarea class="input-xlarge" name="description" id="textarea2" rows="8"><?php 
echo $album_data->album_description;
?>
</textarea>
							  </div>
							</div>

							<div class="control-group">
								<label class="control-label">Cover Photo</label>
								<div class="controls">
								  <input type="file" name="image">
								</div>
								<div class="controls">
									<?php 
echo Assets::image($album_data->album_image, '', 'width: 120px');
?>
								</div>
							  </div>
							<div class="form-actions">
							  <button type="submit" class="btn btn-primary">Save</button>
							  <button type="reset" class="btn">Cancel</button>
							</div>
						  </fieldset>
						</form>   
					</div>
				</div><!--/span-->

			</div><!--/row-->
			
	</div><!--/.fluid-container-->
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:editalbum.php

示例2:

                        <span>Jazz</span>
                      </a>
                    </li>
                  </ul>
                </nav>
                <!-- / nav -->
              </div>
            </section>
            
            <!-- <footer class="footer hidden-xs no-padder text-center-nav-xs">
              <div class="bg hidden-xs ">
                  <div class="dropdown dropup wrapper-sm clearfix">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      <span class="thumb-sm avatar pull-left m-l-xs">                        
                      <?php 
echo Assets::image('images/a3.png', 'dker', '');
?>
                        <i class="on b-black"></i>
                      </span>
                      <span class="hidden-nav-xs clear">
                        <span class="block m-l">
                          <strong class="font-bold text-lt">John.Smith</strong> 
                          <b class="caret"></b>
                        </span>
                        <span class="text-muted text-xs block m-l">Art Director</span>
                      </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight aside text-left">                      
                      <li>
                        <span class="arrow bottom hidden-nav-xs"></span>
                        <a href="#">Settings</a>
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:sidebar.php

示例3:

" width="100" > -->
								</div>
							  </div>



							  <div class="control-group">
								<label class="control-label" for="selectError3">Thumbnail</label>
								<div class="controls">
								<!-- <input type="text" name="image2" class="span6" value="<?php 
echo $page_data->page_content_image2;
?>
"> -->
								<input type="file" name="image2_extra"><br>
									<?php 
echo Assets::image($page_data->page_content_image2);
?>

									<!-- <img src="<?php 
//echo PIC_PATH.$page_data->page_content_image2;
?>
" width="100" > -->

								</div>
							  </div>


							  <div class="control-group">
								<label class="control-label">Homepage</label>
								<div class="controls">
								  <label class="checkbox inline">
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:pages.index.php

示例4:

									<!-- <img src="<?php 
//echo PIC_PATH.$page_data->content_image1;
?>
" width="100" > -->
								</div>
							  </div>



							  <div class="control-group">
								<label class="control-label" for="selectError3">Thumbnail</label>
								<div class="controls">
								<input type="file" name="image2_extra"><br>
									<?php 
echo Assets::image($page_data->content_thumbnail, '', 'width: 100px');
?>
								</div>
							  </div>


							  <div class="control-group">
								<label class="control-label">Homepage</label>
								<div class="controls">
								  <label class="checkbox inline">
									<input type="checkbox" name="homepage" value="0" <?php 
if ($page_data->content_homepage != 0) {
    echo "checked";
}
?>
 >
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:30,代码来源:editcontent.php

示例5: url

        height: auto;
      }
    </style>

    <div class="container inner-page">
      
      

      <div class="col-md-9">
        <div class="page-header">
          <h5><?php 
echo $pagedetails->page_name;
?>
</h5>
          <div style="background: url('<?php 
echo Assets::image('images/evet-slider.png', '', '', true);
?>
') no-repeat; height: 319px;
  background-size: contain;  ">



          </div>

        </div>
        <?php 
echo $pagedetails->page_content_content;
?>
      </div>

      <div class="col-md-3 sidebar-container">
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:page.index.php

示例6: date

									<td class="center"><?php 
    echo $item->category_title;
    ?>
</td>
									<td class="center"><?php 
    echo $item->media_title;
    ?>
</td>
									<td class="center"><?php 
    echo $item->media_description;
    ?>
</td>
									<td class="center">
									<?php 
    if ($item->category_title == 'image') {
        echo Assets::image($item->media_file, '', 'width: 200px');
    } else {
        if (Assets::media($item->media_file) == true) {
            echo "<a href='" . ROOT_DIR . $item->media_file . "' target='_blank'>View in Browser</a>";
        } else {
            echo 'File does not exist';
        }
    }
    ?>
									</td>
									<td class="center"><?php 
    echo date("d/m/Y", $item->media_created);
    ?>
</td>
									<td class="center">
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:30,代码来源:album.add_item.php

示例7: date

							  <tbody>

							  <?php 
foreach ($albums as $item) {
    ?>
								<tr>
									<td class="center"><?php 
    echo $item->album_name;
    ?>
</td>
									<td class="center"><?php 
    echo $item->album_description;
    ?>
</td>
									<td class="center"><?php 
    echo Assets::image($item->album_image, '', 'width: 120px');
    ?>
</td>
									<td class="center"><?php 
    echo $item->album_slug;
    ?>
</td>
									<td class="center"><?php 
    echo Song::itemCount($item->album_id);
    ?>
</td>
									<td class="center"><?php 
    echo date('d/m/Y', $item->album_created);
    ?>
</td>
									<td class="center"><span class="label label-success">Active</span></td> 
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:song.album.php

示例8:

if (Assets::media($song->song_file) == true) {
    echo "<a href='" . ROOT_DIR . $song->song_file . "' target='_blank'>View in Browser</a>";
} else {
    echo 'File does not exist';
}
?>
								</div>
							  </div>


							  <div class="control-group">
								<label class="control-label">Song Cover</label>
								<div class="controls">
								  <input type="file" name="image">
								  <?php 
echo Assets::image($song->song_image, '', 'width: 100px');
?>
								</div>
							  </div>
							   
							   
							<div class="control-group hidden-phone">
							  <label class="control-label" for="textarea2">Description</label>
							  <div class="controls">
								<textarea class="input-xlarge" name="description" id="textarea2" rows="5"><?php 
echo $song->song_description;
?>
</textarea>
							  </div>
							</div>
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:30,代码来源:song.edit.php

示例9:

							  <tbody>

							  <?php 
foreach ($albums as $item) {
    ?>
								<tr>
									<td class="center"><?php 
    echo $item->album_name;
    ?>
</td>
									<td class="center"><?php 
    echo $item->album_description;
    ?>
</td>
									<td class="center"><?php 
    echo Assets::image($item->album_image, '', 'height: 80px');
    ?>
</td>
									<td class="center"><?php 
    echo $item->category_title;
    ?>
</td>
									<td class="center"><?php 
    echo $item->album_slug;
    ?>
</td>
									<td class="center"><?php 
    echo Playlist::itemCount($item->album_id);
    ?>
</td>
									<td class="center"><?php 
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:song.playlist.php

示例10:

                        </a>
                        <a href="#">
                          <?php 
echo Assets::image('images/m44.jpg', 'img-full', '');
?>
                        </a>
                      </div>
                      <div class="item pos-rlt">
                        <a href="#" class="item-overlay active opacity wrapper-md font-xs">
                          <span class="block h3 font-bold text-danger-lter text-u-c">Top10</span>
                          <span class="text-muted">Selected songs</span>
                          <span class="bottom wrapper-md block">- <i class="icon-arrow-right i-lg pull-right"></i></span>
                        </a>
                        <a href="#">
                          <?php 
echo Assets::image('images/m45.jpg', 'img-full', '');
?>
                        </a>
                      </div>
                    </div>
                  </section>
                </section>
              </section>
            </section>
          </section>
          <footer class="footer bg-success dker">
            <div id="jp_container_N">
                    <div class="jp-type-playlist">
                      <div id="jplayer_N" class="jp-jplayer hide"></div>
                      <div class="jp-gui">
                        <div class="jp-video-play hide">
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:listen.playlist.php

示例11:

?>
">
								</div>
							</div>
 


							  <div class="control-group">
								<label class="control-label" for="selectError3">Post Image</label>
								<div class="controls">
								<input type="file" name="image"><br>
								<?php 
if ($post->post_image != '') {
    ?>
									<img src="<?php 
    echo Assets::image($post->post_image);
    ?>
" width="100" >
								<?php 
}
?>
								</div>
							  </div>
									

							  


							 

							
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:23,代码来源:post.add.php

示例12:

    ?>
</td>
								<td class="center"><?php 
    echo $item->album_name;
    ?>
</td>
								<td class="center"><?php 
    echo $item->post_title;
    ?>
</td>
								<td class="center"><?php 
    echo $item->post_excerpt;
    ?>
</td>
								<td class="center"><img src="<?php 
    echo Assets::image($item->post_image);
    ?>
" width="100"></td>
								<td class="center">
									<div class="btn-group">
							<button class="btn btn-small">Option</button>
							<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">
							<span class="caret"></span></button>
							<ul class="dropdown-menu">
								<li><a href="<?php 
    echo DIR . 'post/edit/' . $item->post_id;
    ?>
"><i class="halflings-icon  tag"></i> Edit Record</a></li>
								<li><a href="<?php 
    echo DIR . 'post/delete/' . $item->post_id;
    ?>
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:post.index.php

示例13:

                              <a href="#" class="pull-right">
                                <i class="fa fa-heart-o"></i>
                              </a>
                              <a href="#">
                                <i class="fa fa-plus-circle"></i>
                              </a>
                            </div>
                          </div>
                          <div class="top">
                            <span class="pull-right m-t-n-xs m-r-sm text-white">
                              <i class="fa fa-bookmark i-lg"></i>
                            </span>
                          </div>
                          <a href="#">
                          <?php 
echo Assets::image('images/p4.jpg', 'r r-2x img-full', '');
?>
                          </a>
                        </div>
                        <div class="padder-v">
                          <a href="#" class="text-ellipsis">Tincidunt libero</a>
                          <a href="#" class="text-ellipsis text-xs text-muted">Amanda Conlan</a>
                        </div>
                      </div>
                    </div>
                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
                      <div class="item">
                        <div class="pos-rlt">
                          <div class="item-overlay opacity r r-2x bg-black">
                            <div class="text-info padder m-t-sm text-sm">
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:31,代码来源:index.playlist.php


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