rtmatt/privacy-policy

There is no license information available for the latest version (0.0.2) of this package.

Quick, drop-in privacy policy

0.0.2 2016-06-14 01:41 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:17:50 UTC


README

  • jQuery(loaded before any calls to components)
  • Bootstrap Modal CSS (see below)

Installation

via composer:

composer require rtmatt/privacy-policy

Add to configuration file (above route service provider)

RTMatt\PrivacyPolicy\Providers\PrivacyPolicyServiceProvider::class

Publish Config

php artisan vendor:publish --provider="RTMatt\PrivacyPolicy\Providers\PrivacyPolicyServiceProvider" --tag="config"

Modal Usage

Include the modal and the link in the appropriate layout file (jQuery required, bootstrap will be included if it's not already)

//Put this wherever it should show in the layout
@include('rtprivacypolicy::link')
//...
//Include this near the closing body tag
@include('rtprivacypolicy::modal')

If you want the modal to not look like a pile of shit (read:work stylisitically) you will need to include bootstraps modal css somewhere and somehow.

OVERRIDE VIEW

Make a file in

/resources/views/vendor/rtprivacypolicy/privacy-policy.blade.php

Configuration

 	'business_name'    => '[ENTER BUSINESS NAME HERE]', //business name for display in PP
    'contact_email'    => '[ENTER CONTACT EMAIL ADDRESS HERE]', //contact email for display in PP
    'contact_phone'    => '[ENTER PHONE NUMBER HERE]', // contact phone for display in PP
    'site_url'         => url('/'), //site url for display in PP
    'master_layout'    => 'rtprivacypolicy::blank', //Layout for the PP content to extend (when register route active)
    'section_name'     => 'content', // section name within master page for PP content
    'register_route'   => false, //resister route for PP to display on own page
    'link_text'        => 'Terms & Privacy' // the text to display in the modal link when included as a modal