This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a18812c
commit 1ff3c2a
Showing
103 changed files
with
3,082 additions
and
139 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,4 +1,10 @@ | ||
*.log | ||
*.pot | ||
*.pyc | ||
dist/* | ||
build/* | ||
*.egg-info/* | ||
.project | ||
.pydevproject | ||
.settings | ||
build | ||
env* | ||
dist | ||
aldryn_style.egg-info |
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,6 +1,5 @@ | ||
include LICENSE.txt | ||
recursive-include aldryn_style/templates * | ||
recursive-include aldryn_style/static * | ||
include README.md | ||
recursive-include aldryn_style/locale * | ||
recursive-include aldryn_style/migrations * | ||
recursive-include aldryn_style/templates * | ||
recursive-exclude * *.pyc |
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,39 @@ | ||
aldryn-style | ||
============ | ||
|
||
A Plugin for django CMS to add CSS classes to other plugins | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
This plugin requires `django CMS` 2.4 or higher to be properly installed. | ||
|
||
* In your projects `virtualenv`_, run ``pip install aldryn-style``. | ||
* Add ``'aldryn_style'`` to your ``INSTALLED_APPS`` setting. | ||
* Run ``manage.py migrate aldryn_style``. | ||
|
||
|
||
Usage | ||
----- | ||
|
||
You can define styles in your settings.py: | ||
|
||
``` | ||
CMS_STYLE_NAMES = ( | ||
('info', _("info")), | ||
('new', _("new")), | ||
('hint', _("hint")), | ||
) | ||
``` | ||
|
||
After that you can place other plugins inside this style plugin. | ||
It will create a div with a class that was prior selected around this plugin. | ||
|
||
Translations | ||
------------ | ||
|
||
If you want to help translate the plugin please do it on transifex: | ||
|
||
https://www.transifex.com/projects/p/django-cms/resource/aldryn-style/ | ||
|
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,2 +1 @@ | ||
# -*- coding: utf-8 -*- | ||
__version__ = '0.0.5' | ||
__version__ = "1.0.6" |
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,23 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
from cms.plugin_base import CMSPluginBase | ||
from cms.plugin_pool import plugin_pool | ||
|
||
from aldryn_style import models | ||
from aldryn_style.forms import StyleForm | ||
|
||
from cms.plugin_base import CMSPluginBase | ||
from django.utils.translation import ugettext_lazy as _ | ||
from cms.models import CMSPlugin | ||
from aldryn_style.models import Style | ||
|
||
class StylePlugin(CMSPluginBase): | ||
|
||
render_template = 'aldryn_style/style.html' | ||
name = _('Style') | ||
model = models.StylePlugin | ||
model = Style | ||
name = _("Style") | ||
render_template = "cms/plugins/style.html" | ||
allow_children = True | ||
form = StyleForm | ||
|
||
def render(self, context, instance, placeholder): | ||
context['instance'] = instance | ||
return context | ||
fieldsets = ( | ||
(None, { | ||
'fields': ('class_name',) | ||
}), | ||
(_('Advanced Settings'), { | ||
'classes': ('collapse',), | ||
'fields': ( | ||
'tag_type', | ||
'additional_classes', | ||
'id_name', | ||
('padding_left', 'padding_right', 'padding_top', 'padding_bottom'), | ||
('margin_left', 'margin_right', 'margin_top', 'margin_bottom'), | ||
), | ||
}), | ||
) | ||
|
||
plugin_pool.register_plugin(StylePlugin) |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,63 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# | ||
# Translators: | ||
# draco003 <[email protected]>, 2013 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: django-cms\n" | ||
"Report-Msgid-Bugs-To: https://github.com/divio/django-cms/issues\n" | ||
"POT-Creation-Date: 2012-12-14 14:09+0100\n" | ||
"PO-Revision-Date: 2013-04-29 08:58+0000\n" | ||
"Last-Translator: Patrick Lauber <[email protected]>\n" | ||
"Language-Team: Arabic (http://www.transifex.com/projects/p/django-cms/language/ar/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: ar\n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | ||
|
||
#: cms_plugins.py:9 | ||
msgid "Style" | ||
msgstr "نمط" | ||
|
||
#: cms_plugins.py:17 | ||
msgid "Padding" | ||
msgstr "مسافة تبطين" | ||
|
||
#: cms_plugins.py:21 | ||
msgid "Margin" | ||
msgstr "هامش" | ||
|
||
#: models.py:7 | ||
msgid "info" | ||
msgstr "معلومات" | ||
|
||
#: models.py:8 | ||
msgid "new" | ||
msgstr "جديد" | ||
|
||
#: models.py:9 | ||
msgid "hint" | ||
msgstr "تلميح" | ||
|
||
#: models.py:17 | ||
msgid "class name" | ||
msgstr "اسم الطراز" | ||
|
||
#: models.py:19 models.py:24 | ||
msgid "left" | ||
msgstr "يسار" | ||
|
||
#: models.py:20 models.py:25 | ||
msgid "right" | ||
msgstr "يمين" | ||
|
||
#: models.py:21 models.py:26 | ||
msgid "top" | ||
msgstr "أعلى" | ||
|
||
#: models.py:22 models.py:27 | ||
msgid "bottom" | ||
msgstr "أسفل" |
Binary file not shown.
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,62 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# | ||
# Translators: | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: django-cms\n" | ||
"Report-Msgid-Bugs-To: https://github.com/divio/django-cms/issues\n" | ||
"POT-Creation-Date: 2012-12-14 14:09+0100\n" | ||
"PO-Revision-Date: 2013-04-29 08:58+0000\n" | ||
"Last-Translator: Patrick Lauber <[email protected]>\n" | ||
"Language-Team: Bulgarian (http://www.transifex.com/projects/p/django-cms/language/bg/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: bg\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: cms_plugins.py:9 | ||
msgid "Style" | ||
msgstr "" | ||
|
||
#: cms_plugins.py:17 | ||
msgid "Padding" | ||
msgstr "" | ||
|
||
#: cms_plugins.py:21 | ||
msgid "Margin" | ||
msgstr "" | ||
|
||
#: models.py:7 | ||
msgid "info" | ||
msgstr "" | ||
|
||
#: models.py:8 | ||
msgid "new" | ||
msgstr "" | ||
|
||
#: models.py:9 | ||
msgid "hint" | ||
msgstr "" | ||
|
||
#: models.py:17 | ||
msgid "class name" | ||
msgstr "" | ||
|
||
#: models.py:19 models.py:24 | ||
msgid "left" | ||
msgstr "ляво" | ||
|
||
#: models.py:20 models.py:25 | ||
msgid "right" | ||
msgstr "дясно" | ||
|
||
#: models.py:21 models.py:26 | ||
msgid "top" | ||
msgstr "" | ||
|
||
#: models.py:22 models.py:27 | ||
msgid "bottom" | ||
msgstr "" |
Binary file not shown.
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,63 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# | ||
# Translators: | ||
# Roger Pons <[email protected]>, 2013 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: django-cms\n" | ||
"Report-Msgid-Bugs-To: https://github.com/divio/django-cms/issues\n" | ||
"POT-Creation-Date: 2012-12-14 14:09+0100\n" | ||
"PO-Revision-Date: 2013-04-29 08:58+0000\n" | ||
"Last-Translator: Patrick Lauber <[email protected]>\n" | ||
"Language-Team: Catalan (http://www.transifex.com/projects/p/django-cms/language/ca/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: ca\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: cms_plugins.py:9 | ||
msgid "Style" | ||
msgstr "Estil" | ||
|
||
#: cms_plugins.py:17 | ||
msgid "Padding" | ||
msgstr "Farciment" | ||
|
||
#: cms_plugins.py:21 | ||
msgid "Margin" | ||
msgstr "Marge" | ||
|
||
#: models.py:7 | ||
msgid "info" | ||
msgstr "informació" | ||
|
||
#: models.py:8 | ||
msgid "new" | ||
msgstr "nou" | ||
|
||
#: models.py:9 | ||
msgid "hint" | ||
msgstr "Indici" | ||
|
||
#: models.py:17 | ||
msgid "class name" | ||
msgstr "nom de classe" | ||
|
||
#: models.py:19 models.py:24 | ||
msgid "left" | ||
msgstr "esquerra" | ||
|
||
#: models.py:20 models.py:25 | ||
msgid "right" | ||
msgstr "dret" | ||
|
||
#: models.py:21 models.py:26 | ||
msgid "top" | ||
msgstr "part superior" | ||
|
||
#: models.py:22 models.py:27 | ||
msgid "bottom" | ||
msgstr "part inferior" |
Binary file not shown.
Oops, something went wrong.
Looks like you got an old license