Giter Site home page Giter Site logo

sashabeep / multitv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from extras-evolution/multitv

0.0 0.0 0.0 2.2 MB

Custom TV for Evolution CMS: Transform a template variables into a sortable multi item list for the Evolution content management framework

JavaScript 62.65% PHP 30.71% CSS 5.17% HTML 1.42% Smarty 0.05%

multitv's Introduction

multiTV custom template variable

Custom Template Variabe containing a sortable multi item list or a datatable for the Evolution CMS content management framework

Features

With this Evolution CMS package a new template variable type is introduced. The template variable could contain a sortable multi item list or a datatable.

Documentation could be found on http://docs.evo.im/en/04_extras/multitv.html

new type "crop"

new type "crop" uses Cropper.js to get parameters for further use with phpthumb.

example of configuration in images.config.inc.php

'image' => array(
    'caption' => 'Image',
    'type' => 'image'
),
'img16x9' =>array (
    'caption' => 'Ratio 16x9',
    'type' => 'crop',
    'cropof' => 'image'
),
'img4x3' =>array (
    'caption' => 'Ratio 4x3',
    'type' => 'crop',
    'cropof' => 'image'
),
'img1x1' =>array (
    'caption' => 'Ratio 1x1',
    'type' => 'crop',
    'cropof' => 'image'
),
'img2x3' =>array (
    'caption' => 'Ratio 2x3',
    'type' => 'crop',
    'cropof' => 'image'
),

where, imgNxN - name that will be used as aspectRatio of Cropper.js initialization, cropof - image field

  1. update tvs\multitv
  2. create/update any config.inc.php to use new type "crop"

As a result, you will get the parameters in the form of a string that can be substituted into phpthumb to crop the image (using snippet, etc.).

Example: let [+img16x9+] be 'x:18,y:216,width:918,height:516'

[[to_hpthumb?&imgRatio=[+img16x9+]]]

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.