Dotclear


Ignore:
Timestamp:
02/11/16 15:35:39 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with sort of "un-attached" media → allows new features as "featured media" plugin. Video and Audio HTML5 element are now used (if possible) rather than Flash object for attachments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.postmedia.php

    r2566 r3167  
    7878               $strReq .= $params['sql']; 
    7979          } 
    80      //echo $strReq; exit; 
     80 
    8181          $rs = $this->con->select($strReq); 
    8282 
     
    8787     Attaches a media to a post. 
    8888 
    89      @param    post_id   <b>integer</b>      Post ID 
     89     @param    post_id        <b>integer</b>      Post ID 
    9090     @param    media_id  <b>integer</b>      Optionnal media ID 
     91     @param    link_type <b>string</b>       Optionnal link type (default: attachment) 
    9192     */ 
    9293     public function addPostMedia($post_id,$media_id,$link_type='attachment') 
     
    113114     Detaches a media from a post. 
    114115 
    115      @param    post_id   <b>integer</b>      Post ID 
     116     @param    post_id        <b>integer</b>      Post ID 
    116117     @param    media_id  <b>integer</b>      Optionnal media ID 
     118     @param    link_type <b>string</b>       Optionnal link type 
    117119     */ 
    118120     public function removePostMedia($post_id,$media_id,$link_type=null) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map