Plugin Directory

Changeset 1362653


Ignore:
Timestamp:
03/02/2016 02:37:28 PM (10 years ago)
Author:
Methodos
Message:

new version

Location:
indent-lists-button
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • indent-lists-button/trunk/css/admin/ili-admin.css

    r1359581 r1362653  
    33    display: table;
    44    font: 20px 'dashicons';
    5     position: absolute;
    6     top:0;
     5
    76}
    87i.mce-i-ili_button::before {
     
    1211    content: "\f139";
    1312    left:7px;
     13    position: absolute;
     14    top:2.5px;
    1415}
    1516i.mce-i-ili_button.ili-indented::after {
    1617    content: "\f141";
    1718}
    18 
     19@media screen and (max-width: 782px){
     20    i.mce-i-ili_button::after {
     21        top:6.5px;
     22        left:10px;
     23    }
     24}
  • indent-lists-button/trunk/ili-indent-lists-button.php

    r1360404 r1362653  
    22/*
    33 * Plugin Name: Indent Lists Button
    4  * Version: 0.1.1
     4 * Version: 0.1.2
    55 * Plugin URI: http://www.elisewebredactie.nl/indent-lists-button
    66 * Author: Klaas van der Linden
     
    88 * Text Domain: indent-lists-button
    99 * Domain Path: /languages
     10 * Description: Indent all lists! Once activated, an "Indent List" button appears in the regular WordPress editor.
    1011 */
    1112// Direct access to this file is not permitted
     
    6162}
    6263
     64// Add a javascript object in the header; to be used by mce-plugin.js
    6365foreach ( array('post.php','post-new.php') as $hook ) {
    6466    add_action( "admin_head-$hook", 'ili_admin_head' );
    6567}
    66 
    67 /**
    68  * Localize Script
    69  */
    7068function ili_admin_head() {
    7169    /* translators: this is the tooltip when hovering the Indent Lists button */
    7270    $title = esc_html__('Indent List', 'indent-lists-button');
     71    $data = get_plugin_data(__FILE__,false,true);
    7372    ?>
    7473    <script type='text/javascript'>
    7574    var iliGlob = {
    7675        'title': '<?php echo $title ?>',
     76        'version': '<?php echo $data['Version']; ?>',
     77        'pluginURI': '<?php echo $data['PluginURI']; ?>',
     78        'name': '<?php echo $data['Name']; ?>',
    7779    };
    7880    </script>
  • indent-lists-button/trunk/js/mce-plugin.js

    r1360404 r1362653  
    1818             */
    1919            ed.addButton('the_ili_button', {
    20                 title : iliGlob.title,
     20                title : (typeof(iliGlob.title) !== 'undefined') ? iliGlob.title : 'Indent List',
    2121                cmd : 'indent_lists',
    2222                icon : 'ili_button',
     
    6868        getInfo : function() {
    6969            return {
    70                 longname : 'Indent Lists Button mce-plugin',
     70                longname : ((typeof(iliGlob.name) !== 'undefined') ? iliGlob.name : 'Indent Lists Button') + ' mce-plugin',
    7171                author : 'Klaas van der Linden',
    7272                authorurl : 'http://culturalservices.nl',
    73                 infourl : 'http://elisewebredactie.nl/indent-lists-button',
    74                 version : "0.1.0"
     73                infourl : (typeof(iliGlob.pluginURI) !== 'undefined') ? iliGlob.pluginURI : '',
     74                version : (typeof(iliGlob.version) !== 'undefined') ? iliGlob.version : ''
    7575            };
    7676        }
  • indent-lists-button/trunk/readme.txt

    r1360180 r1362653  
    22Contributors: Methodos
    33Donate link: http://elisewebredactie.nl/indent-lists-button
    4 Tags: lists, indent, indentation, bullet lists, list, opsomming, inspringen, Twenty Sixteen, Twenty Fifteen, indent lists
     4Tags: lists, indent, indentation, bullet lists, list, opsomming, inspringen, Twenty Sixteen, Twenty Fifteen, indent lists, opsommingen inspringen,
    55Requires at least: 3.0.1
    66Tested up to: 4.4.2
    7 Stable tag: 0.1.1
     7Stable tag: 0.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515= Why this plugin? =
    1616
    17 In WordPress it's not possible to indent lists. The regular indent-button is greyed out after selecting a bullet list or numbered list. This plugin offers a solution to this problem.
     17In WordPress it's not possible to indent lists. The regular indent button is greyed out after selecting a bullet list or numbered list. This plugin offers a solution to this problem.
    1818
    1919= How to use this plugin =
Note: See TracChangeset for help on using the changeset viewer.