Coder Social home page Coder Social logo

wardrobe-disqus's Introduction

Wardrobe Disqus

This package for Wardrobe CMS allows quick integration of disqus comment systems using a simple call to Disqus::comments() from your theme views.

While designed for Wardrobe, this package works across all Laravel installations.

Installation Using Laravel 4 Package Installer

If you have Laravel 4 Package Installer installed you can install Wardrobe Disqus by running php artisan package:install rtablada/wardrobe-disqus and then publishing the configuration by running php artisan config:publish rtablada/wardrobe-disqus.

Installing Using Composer

If you do not have Pacakge Installer, you can install Wardrobe Disqus by running composer require rtablada/wardrobe-disqus and then modifying your providers in app/config/app.php to include Rtablada\WardrobeDisqus\WardrobeDisqusServiceProvider and your aliases to include 'Disqus' => 'Rtablada\WardrobeDisqus\Facades\Disqus'. Then run php artisan config:publish rtablada/wardrobe-disqus.

Configuring Wardrobe Disqus

Configuring Wardrobe Disqus is as easy as going into app/config/packages/rtablada/wardrobe-disqus/config.php and modifying the disqus_shortname to the shortname found at disqus.com/admin/settings/

Using Wardrobe Disqus

To include Disqus comments in your blog or project, simply include a call to Disqus::comments() and it will display the defaut Disqus comment form for each post or page.

In Wardrobe CMS it is best to place this in individual pages, or within your theme's post.blade.php so it may look like this:

@extends(theme_path('layout'))

@section('title')
  {{ $post->title }}
@stop

@section('content')
  <section>
    <h2 class="title">{{ $post->title }}</h2>
    {{ md($post->content) }}

    @include(theme_path('inc.tags'))
    {{ Disqus::comments() }}
  </section>
@stop

wardrobe-disqus's People

Contributors

rtablada avatar

Watchers

Tom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.