<commit_before>What is it?
===========

LFS Carousel is pluggable carousel/slider application for use with LFS (Lightning Fast Shop)

See project wiki for more details: https://bitbucket.org/pigletto/lfs-carousel/wiki/Home

Basic usage
===========

* add lfs_carousel to INSTALLED_APPS in your settings.py
* add lfs_carousel urls to your site urls.py like:

  from lfs_carousel import carousel
  urlpatterns += patterns("",
    (...)
    (r'^carousel/', include(carousel.urls)),
    (...)
  )
  
* add carousel to management panel to 'Shop' -> settings page as new tab:
  copy lfs/templates/manage/shop/shop.html to your theme and modify it by adding:
  {% load lfs_carousel_tags %}
  ( ... )
  <div id="manage-tabs">
    <ul>
        <li class="ui-tabs-nav-item"><a href="#data">{% trans 'Shop' %}</a></li>
        <li class="ui-tabs-nav-item"><a href="#default-values">{% trans 'Default Values' %}</a></li>
        <li class="ui-tabs-nav-item"><a href="#portlets">{% trans 'Portlets' %}</a></li>
        **<li class="ui-tabs-nav-item"><a href="#carousel-items">{% trans 'Carousel' %}</a></li>**
    </ul>
  (...)
  <div id="portlets">
    {{ portlets|safe }}
  </div>
  **{% carousel_management shop %}**
  
* add carousel to your shop's start page
  By default lfs_carousel uses coin-slider but you can use anything you want. 
  First add necessary JavaScript and CSS files either to base.html or to shop.html:
  
  <link rel="stylesheet" href="{{ STATIC_URL }}coin-slider/coin-slider-styles.css" type="text/css" />
  <script type="text/javascript" src="{{ STATIC_URL }}coin-slider/coin-slider.min.js"></script>
  <script type="text/javascript">
        $(document).ready(function() {
            $('#coin-slider').coinslider({ width: 400, navigation: true, delay: 10000, hoverPause: true });
        });
  </script>
  
  Second: copy lfstheme/templates/lfs/shop/shop.html to your theme and add:
    {% load lfs_carousel_tags %}
    (...)
    {% carousel_show shop %}
  
* run syncdb (!)<commit_msg>markdown<commit_after>What is it?
===========

LFS Carousel is pluggable carousel/slider application for use with LFS (Lightning Fast Shop)

See project wiki for more details: https://bitbucket.org/pigletto/lfs-carousel/wiki/Home

Basic usage
===========

* add lfs_carousel to INSTALLED_APPS in your settings.py
* add lfs_carousel urls to your site urls.py like:

  <pre><code>
      from lfs_carousel import carousel
      urlpatterns += patterns("",
        (...)
        (r'^carousel/', include(carousel.urls)),
        (...)
      )
  </code></pre>
  
* add carousel to management panel to 'Shop' -> settings page as new tab:
  copy lfs/templates/manage/shop/shop.html to your theme and modify it by adding:
  <pre><code>
      {% load lfs_carousel_tags %}
      ( ... )
      <div id="manage-tabs">
        <ul>
            <li class="ui-tabs-nav-item"><a href="#data">{% trans 'Shop' %}</a></li>
            <li class="ui-tabs-nav-item"><a href="#default-values">{% trans 'Default Values' %}</a></li>
            <li class="ui-tabs-nav-item"><a href="#portlets">{% trans 'Portlets' %}</a></li>
            **<li class="ui-tabs-nav-item"><a href="#carousel-items">{% trans 'Carousel' %}</a></li>**
        </ul>
      (...)
      <div id="portlets">
        {{ portlets|safe }}
      </div>
      {% carousel_management shop %}
  </code></pre>
  
* add carousel to your shop's start page
  By default lfs_carousel uses coin-slider but you can use anything you want. 
  First add necessary JavaScript and CSS files either to base.html or to shop.html:

  <pre><code>
      <link rel="stylesheet" href="{{ STATIC_URL }}coin-slider/coin-slider-styles.css" type="text/css" />
      <script type="text/javascript" src="{{ STATIC_URL }}coin-slider/coin-slider.min.js"></script>
      <script type="text/javascript">
            $(document).ready(function() {
                $('#coin-slider').coinslider({ width: 400, navigation: true, delay: 10000, hoverPause: true });
            });
      </script>
  </code></pre>
  
  Second: copy lfstheme/templates/lfs/shop/shop.html to your theme and add:
  <pre><code>
    {% load lfs_carousel_tags %}
    (...)
    {% carousel_show shop %}
  </code></pre>
  
* run syncdb (!)
{'fraction_non_alphanumeric': 0.17626154939587776, 'fraction_numerical': 0.0037905709547500594, 'mean_word_length': 3.0792270531400967, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '432531', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1367, 'n_words': 362}