Plugin Directory

Changeset 1608009


Ignore:
Timestamp:
03/05/2017 06:07:29 AM (9 years ago)
Author:
fifthsegment
Message:

Committing 1.9 to trunk

Location:
documentpress-display-any-document-on-your-site/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • documentpress-display-any-document-on-your-site/trunk/documentpress.php

    r1341856 r1608009  
    22/*
    33 * Plugin Name: DocumentPress
    4  * Version: 1.8
     4 * Version: 1.9
    55 * Plugin URI: http://www.fifthsegment.com/
    66 * Description: Allows you to embed your documents in any format (.docx, .xls, .pdf, .ppt .anything!) on to your wordpress site.
  • documentpress-display-any-document-on-your-site/trunk/includes/class-documentpress-settings.php

    r1337764 r1608009  
    130130                    'type'          => 'checkbox',
    131131                    'default'       => 'on'
     132                ),
     133                array(
     134                    'id'            => 'restrict_uploaded_docs',
     135                    'label'         => __( 'Restrict Uploaded documents to disallow downloads/printing.', 'documentpress' ),
     136                    'description'   => __( 'Restrict Uploaded documents to disallow downloads/printing.', 'documentpress' ),
     137                    'type'          => 'checkbox',
     138                    'default'       => ''
    132139                ),
    133140               
  • documentpress-display-any-document-on-your-site/trunk/includes/class-documentpress.php

    r1341302 r1608009  
    169169
    170170function myplugin_register_tinymce_javascript( $plugin_array ) {
    171    $plugin_array['docupress'] = esc_url( $this->assets_url ) . 'js/buttons.js';
     171   $restrict_uploaded_docs = get_option( $this->base.'restrict_uploaded_docs' );
     172   if ( $restrict_uploaded_docs != "on" ){
     173        $plugin_array['docupress'] = esc_url( $this->assets_url ) . 'js/buttons.js';
     174   }else{
     175        $plugin_array['docupress'] = esc_url( $this->assets_url ) . 'js/buttons_priv.js';
     176   }
     177   
    172178   return $plugin_array;
    173179}
  • documentpress-display-any-document-on-your-site/trunk/readme.txt

    r1341856 r1608009  
    44Tags: wordpress, plugin, template
    55Requires at least: 4.0
    6 Tested up to: 4.4
    7 Stable tag: 1.8
     6Tested up to: 4.7
     7Stable tag: 1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     43= 1.9 =
     44* 2017-3-5
     45* Allows users to set permissions to restricted on Google Drive files.
     46
    4347= 1.0 =
    4448* 2016-1-25
Note: See TracChangeset for help on using the changeset viewer.