forked from luminum-solutions/djangocms-slider-easy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme, templates and fix manifest.in for building the pkg
- Loading branch information
Showing
10 changed files
with
72 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
include LICENSE.txt | ||
include README.md | ||
recursive-include djangocms_slider/locale * | ||
recursive-include djangocms_slider/templates * | ||
recursive-exclude * *.py[co] | ||
recursive-include djangocms_slider_uploadcare *.html *.png *.gif *js *jpg *jpeg *svg *py *css *po *mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.3.0' | ||
__version__ = '0.3.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
djangocms_slider_uploadcare/templates/djangocms_slider/slide.html
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
djangocms_slider_uploadcare/templates/djangocms_slider/slider.html
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
djangocms_slider_uploadcare/templates/djangocms_slider_uploadcare/slide.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<li class="slideshow-slide"> | ||
{% if instance.url or instance.page_link %} | ||
<a href="{% if instance.url %}{{ instance.url }}{% else %} {{instance.page_link.get_absolute_url}}{% endif %}"> | ||
<img src="{{ instance.image }}" alt="{{ instance.alt }}" | ||
{% if instance.longdesc %} | ||
title="{{ instance.longdesc }}" | ||
{% endif %}/> | ||
</a> | ||
{% else %} | ||
<img src="{{ instance.image }}" alt="{{ instance.alt }}" | ||
{% if instance.longdesc %} | ||
title="{{ instance.longdesc }}" | ||
{% endif %}/> | ||
{% endif %} | ||
</li> |
29 changes: 29 additions & 0 deletions
29
djangocms_slider_uploadcare/templates/djangocms_slider_uploadcare/slider.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% load sekizai_tags cms_tags %} | ||
<div class="slider"> | ||
<ul class="slides"> | ||
{% autoescape off %} | ||
{% for plugin in instance.child_plugin_instances %} | ||
{% render_plugin plugin %} | ||
{% endfor %} | ||
{% endautoescape %} | ||
</ul> | ||
</div> | ||
|
||
{% addtoblock "css" %} | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.0/flexslider.min.css"/> | ||
{% endaddtoblock %} | ||
|
||
{% addtoblock "js" %} | ||
<script type="text/javascript" | ||
src="http://cdnjs.cloudflare.com/ajax/libs/flexslider/2.2.2/jquery.flexslider-min.js"></script> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('.slider').flexslider({ | ||
animation: "slide" | ||
, pauseOnAction: false | ||
, pauseOnHover: true | ||
, controlNav: false | ||
}); | ||
}); | ||
</script> | ||
{% endaddtoblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ def read(fname): | |
INSTALL_REQUIRES = [ | ||
"django>=1.8.0, <1.11", | ||
"django-cms>=3.0", | ||
"easy-thumbnails==2.3", | ||
"pyuploadcare==2.2.1", | ||
] | ||
|
||
CLASSIFIERS = [ | ||
|
@@ -45,9 +45,9 @@ def read(fname): | |
author_email="[email protected]", | ||
description="A slider plugin for djangocms that lets you arrange slides like any other djangocms plugin. Fork of urga/djangocms-slider, but using uploadcare.", | ||
license="BSD", | ||
keywords=["slideshow", "django", "cms", "plugin"], | ||
url="https://github.com/Akoten/djangocms-slider-easy-uploadcare", | ||
packages=['djangocms_slider_uploadcare', 'djangocms_slider_uploadcare.migrations'], | ||
keywords=["slideshow", "django", "cms", "plugin", "uploadcare", "flexslider", "jquery"], | ||
url="https://github.com/Zowie/djangocms-slider-easy-uploadcare", | ||
packages=['djangocms_slider_uploadcare'], | ||
install_requires=INSTALL_REQUIRES, | ||
classifiers=CLASSIFIERS, | ||
long_description=read('README.md'), | ||
|