Beispiel #1
0
/**
 * @deprecated
 * @since 1.2.7
 */
function printAlbumRating($object = NULL)
{
    deprecated_functions::notify(gettext('Use printRating().'));
    global $_zp_current_album;
    if (is_null($object)) {
        $object = $_zp_current_album;
    }
    printRating(3, $object);
}
Beispiel #2
0
/**
 * @deprecated
 * @since 1.4.6
 */
function getCommentsAllowed()
{
    global $_zp_current_image, $_zp_current_album;
    deprecated_functions::notify(gettext("use the object’s getCommentsAllowed() method"));
    if (in_context(ZP_IMAGE)) {
        if (is_null($_zp_current_image)) {
            return false;
        }
        return $_zp_current_image->getCommentsAllowed();
    } else {
        return $_zp_current_album->getCommentsAllowed();
    }
}
Beispiel #3
0
 /**
  *
  * @deprecated
  */
 function PersistentObject($tablename, $unique_set, $cache_by = NULL, $use_cache = true, $is_transient = false, $allowCreate = true)
 {
     deprecated_functions::PersistentObject();
     return instantiate($tablename, $unique_set, $cache_by, $use_cache, $is_transient, $allowCreate);
 }
Beispiel #4
0
/**
 * @deprecated
 * @since 1.4.6
 *
 */
function printFavoritesLink($text = NULL)
{
    deprecated_functions::notify(gettext('use printFavoritesURL()'));
    printFavoritesURL($text);
}
/**
 * Publishes a page or news article
 *
 * @param object $obj
 * @param int $show the value for publishing
 * @return string
 */
function zenpagePublish($obj, $show)
{
    deprecated_functions::notify(gettext('Use the setShow method directly.'));
    $obj->setShow($show);
    $obj->save();
}
Beispiel #6
0
 /**
  * @deprecated
  * @since 1.4.6
  */
 static function setSubalbumSortType($sorttype)
 {
     deprecated_functions::notify(gettext('Use the setSortType() method instead'));
 }
Beispiel #7
0
/**
 * @deprecated
 * @since 1.4.5
 */
function printSlideShowJS()
{
    deprecated_functions::notify(gettext('This feature is now done by a "theme_head" filter. You can remove the function call.'));
}
Beispiel #8
0
 /**
  * @deprecated
  * @since 1.4.6
  */
 static function getRSSLink($option)
 {
     deprecated_functions::notify(sprintf(gettext('The %1$s feed is deprecated.'), $option));
 }
Beispiel #9
0
 /**
  * @deprecated
  * @since 1.4.6
  */
 static function getBody($option)
 {
     deprecated_functions::notify(gettext('Use the getContent() method.'));
 }
Beispiel #10
0
/**
 * @deprecated since version 1.4.6
 */
function printjCarouselThumbNav($thumbscroll = NULL, $width = NULL, $height = NULL, $cropw = NULL, $croph = NULL, $fullimagelink = NULL, $vertical = NULL)
{
    deprecated_functions::notify(gettext('Use printThumbNav().'));
    printThumbNav(NULL, NULL, $width, $height, $cropw, $croph, $fullimagelink, $mode, NULL, $thumbscroll);
}
/**
 * @deprecated
 * @since 1.0.1
 */
function getAllTagsCount($language = NULL)
{
    deprecated_functions::notify(gettext('Use getAllTagsUnique()'));
    return getAllTagsUnique($language, 1, true);
}
Beispiel #12
0
 /**
  * @deprecated
  * @since 1.4.5
  */
 static function getSubPages()
 {
     deprecated_functions::notify(gettext('Use the Zenpage Page class->getPages() method.'));
 }
Beispiel #13
0
/**
 * @deprecated
 * @since 1.4.6
 */
function printDownloadLinkAlbumZip($file, $linktext = NULL)
{
    deprecated_functions::notify(gettext('use printDownloadAlbumZipURL()'));
    printDownloadURL($file, $linktext);
}