This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A reusable Django app that renders a set of social media links, i.e. for your website footer.

Installation

To get the latest stable release from PyPi:

$ pip install django-social-media-links

To get the latest commit from GitHub:

$ pip install -e git+git://github.com/bitmazk/django-social-media-links.git#egg=social_media_links

Add social_media_links to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...,
    'social_media_links',
)

Don’t forget to migrate your database:

./manage.py migrate social_media_links

If you want to use the social icons as provided by [monosocialfont](http://drinchev.github.io/monosocialiconsfont/) you should add the following stylesheet to your base.html:

<head>
    <link href="{% static "social_media_links/css/styles.css" %}" rel="stylesheet" media="screen">
</head>
<body>
    // Use it like so:
    <span class="symbol">&#xe224;</span>
</body>

Usage

First you need to create a set of LinkType objects. You may want to assign symbols to them. In order to find out the codes for the symbols, please refer to http://drinchev.github.io/monosocialiconsfont/

We provide an assignment tag that returns all social media links in your database. You can use it like so:

{% load social_media_links_tags %}
{% get_social_media_links as social_media_links %}
{% if social_media_links %}
    <ul>
        {% for link in social_media_links %}
            <li><span class="symbol">{{ link.link_type.symbol|safe }}</span><a href="{{ link.url }}" title="{{ link.title }}">{{ link.name }}</a></li>
        {% endfor %}
    </ul>
{% endif %}

Or shorter:

{% load social_media_links_tags %}
{% get_social_media_links as social_media_links %}
{% if social_media_links %}
    <ul>
        {% include "social_media_links/partials/link_list.html" with links=social_media_links %}
    </ul>
{% endif %}

Contribute

If you want to contribute to this project, please perform the following steps:

# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-social-media-links
$ python setup.py install
$ pip install -r dev_requirements.txt

$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branch

License

This repository makes use of [monosocialiconfonts](https://github.com/drinchev/monosocialiconsfont) so please have a look at the license of that project.

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-social-media-links-0.2.tar.gz (432.3 kB) Copy SHA256 Checksum SHA256 Source Jun 15, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting