Exemple #1
0
def get_cover_url(title, width):
    """Returns the url to the cover image """
    return get_cover_url_at_width(title, width)
Exemple #2
0
def show_titlecover(title, width):
    """Returns  Image Tag for Cover at Specified Width"""
    return {"title": title, "url": get_cover_url_at_width(title, width)}
Exemple #3
0
 def image(self, obj):
     if settings.MEDIA_DOMAIN:
         return get_cover_url_at_width(obj, 1400)
     else:
         return add_domain(Site.objects.get_current().domain,
                           get_cover_url_at_width(obj, 1400))
Exemple #4
0
 def image(self, obj):
     if settings.MEDIA_DOMAIN:
         return get_cover_url_at_width(obj, 1400)
     else:
         return add_domain(Site.objects.get_current().domain, get_cover_url_at_width(obj, 1400))
def get_cover_url(title, width):
    """Returns the url to the cover image """
    return get_cover_url_at_width(title, width)
def show_titlecover(title, width):
    """Returns  Image Tag for Cover at Specified Width"""
    return {"title": title, "url": get_cover_url_at_width(title, width)}