Plugin Directory

Changeset 2186241


Ignore:
Timestamp:
11/05/2019 03:01:09 PM (6 years ago)
Author:
wpemaker
Message:

bug correction: tinyMCE dialog
Email verify - alert premium required

Location:
download-sender/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • download-sender/trunk/assets/css/admin.css

    r2186034 r2186241  
    2727    top: -4px;
    2828}
     29
     30/*-------------------------------------------------------------------------*/
     31/*  tinyMCE
     32/*-------------------------------------------------------------------------*/
     33
     34body .ui-dialog[aria-describedby="downloadsender-mce-dialog"] {
     35    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
     36    font-size: 13px;
     37    line-height: 1.4em;
     38    padding: 0;
     39    border: 0;
     40    color: #444;
     41    background: transparent;
     42}
     43[aria-describedby="downloadsender-mce-dialog"] .ui-dialog-title {
     44    color: #444;
     45}
     46form#downloadsender-mce-dialog  {
     47    position: unset;
     48}
     49body [aria-describedby="downloadsender-mce-dialog"] .ui-button .ui-icon {
     50    background-image: url(../images/ui-icons_777777_256x240.png)!important;
     51}
     52body [aria-describedby="downloadsender-mce-dialog"] .ui-button-icon-only {
     53    text-indent: inherit;
     54    white-space:normal;
     55}
     56body [aria-describedby="downloadsender-mce-dialog"] .ui-state-default, body [aria-describedby="downloadsender-mce-dialog"] .ui-widget-content .ui-state-default, body [aria-describedby="downloadsender-mce-dialog"] .ui-widget-header .ui-state-default {
     57    border: 0;
     58    background: transparent;
     59    font-weight:unset;
     60    color: #444;
     61}
     62body [aria-describedby="downloadsender-mce-dialog"] .ui-dialog-titlebar-close span {
     63    display: none;
     64}
     65form#downloadsender-mce-dialog {
     66    margin-bottom: 60px;
     67    padding-top: 0px;
     68    background: #f1f1f1;
     69}
     70form#downloadsender-mce-dialog select, form#downloadsender-mce-dialog input[type="text"] {
     71    min-width: 250px;
     72}
     73form#downloadsender-mce-dialog .wp-picker-container {
     74    display: inline-block;
     75}
     76.mce-dialog-tabs .toggle-button:before {
     77    height: 32px;
     78    width: 32px;
     79    line-height: 32px;
     80}
     81.mce-dialog-tabs .downloadsender_options-tab label {
     82    min-width: 150px;
     83}
     84.mce-dialog-tabs .downloadsender_options-tab.disabled {
     85    display: none;
     86}
     87.mce-dialog-tabs .downloadsender_tab-title:not(.no-background) {
     88    height: 32px;
     89    line-height: 32px;
     90}
     91.downloadsender_tab-title.active {
     92    z-index: 15;
     93    border-bottom: 1px solid #f1f1f1;
     94    background: #f1f1f1;
     95    color: #000;
     96}
     97.mce-dialog-tabs {
     98    margin-bottom: 40px;
     99}
     100[aria-describedby="downloadsender-mce-dialog"] {
     101    max-width: 96% !important;
     102    border-radius: 10px;
     103    overflow: hidden;
     104    z-index: 100102!important;
     105}
     106[aria-describedby="downloadsender-mce-dialog"] .ui-button.ui-dialog-titlebar-close,
     107[aria-describedby="downloadsender-mce-dialog"] .ui-dialog-titlebar {
     108    height: 60px;
     109    background: #fff!important;
     110    border-radius: 0;
     111    text-shadow: none;
     112}
     113[aria-describedby="downloadsender-mce-dialog"] .ui-widget-header,
     114[aria-describedby="downloadsender-mce-dialog"] .ui-widget-header .ui-state-default:not(.ui-dialog-titlebar-close) {
     115    border: 0!important;
     116    border-bottom: 1px solid #dfdfdf !important;
     117}
     118
     119[aria-describedby="downloadsender-mce-dialog"] .ui-button.ui-dialog-titlebar-close {
     120    top: 0;
     121    margin: 0;
     122    width: 45px;
     123}
     124[aria-describedby="downloadsender-mce-dialog"] .ui-button.ui-dialog-titlebar-close:hover {
     125    color: #00a0d2;
     126}
     127[aria-describedby="downloadsender-mce-dialog"] .ui-dialog-titlebar {   
     128    line-height: 60px;
     129    padding: 0 15px;
     130    font-weight: 400;
     131}
     132[aria-describedby="downloadsender-mce-dialog"] .ui-dialog-title {
     133    position: relative;
     134    padding-left: 30px;
     135}
     136[aria-describedby="downloadsender-mce-dialog"] .ui-dialog-title:before {
     137    position: absolute;
     138    content: '';
     139    width: 20px;
     140    height: 20px;
     141    background: url('../images/downloadsender-blue.png') no-repeat;
     142    left: 0;
     143    top: 50%;
     144    margin-top: -10px;
     145}
     146.downloadsender-submitbox {
     147    position: absolute;
     148    bottom: 0;
     149    left: 0;
     150    background: #fff;
     151    padding: 18px 18px;
     152    right: 0;
     153    text-align: right;
     154    border-top: 1px solid #e3e3e3;
     155}
     156#downloadsender-mce-dialog-default {
     157    float: left;
     158    text-align: center;
     159}
     160
    29161
    30162/* chosen */
  • download-sender/trunk/assets/css/form.css

    r2186034 r2186241  
    442442}
    443443*/
    444 /*-------------------------------------------------------------------------*/
    445 /*  tinyMCE
    446 /*-------------------------------------------------------------------------*/
    447 
    448 [aria-describedby="downloadsender-mce-dialog"] .ui-dialog-title {
    449     color: #444;
    450 }
    451 form#downloadsender-mce-dialog {
    452     margin-bottom: 60px;
    453     padding-top: 0px;
    454     background: #f1f1f1;
    455 }
    456 form#downloadsender-mce-dialog select, form#downloadsender-mce-dialog input[type="text"] {
    457     min-width: 250px;
    458 }
    459 form#downloadsender-mce-dialog .wp-picker-container {
    460     display: inline-block;
    461 }
    462 .mce-dialog-tabs .toggle-button:before {
    463     height: 32px;
    464     width: 32px;
    465     line-height: 32px;
    466 }
    467 .mce-dialog-tabs .downloadsender_options-tab label {
    468     min-width: 150px;
    469 }
    470 .mce-dialog-tabs .downloadsender_options-tab.disabled {
    471     display: none;
    472 }
    473 .mce-dialog-tabs .downloadsender_tab-title:not(.no-background) {
    474     height: 32px;
    475     line-height: 32px;
    476 }
    477 .downloadsender_tab-title.active {
    478     z-index: 15;
    479     border-bottom: 1px solid #f1f1f1;
    480     background: #f1f1f1;
    481     color: #000;
    482 }
    483 .mce-dialog-tabs {
    484     margin-bottom: 40px;
    485 }
    486 [aria-describedby="downloadsender-mce-dialog"] {
    487     max-width: 96% !important;
    488     border-radius: 10px;
    489     overflow: hidden;
    490     z-index: 100102!important;
    491 }
    492 [aria-describedby="downloadsender-mce-dialog"] .ui-button.ui-dialog-titlebar-close,
    493 [aria-describedby="downloadsender-mce-dialog"] .ui-dialog-titlebar {
    494     height: 60px;
    495     background: #fff!important;
    496     border-radius: 0;
    497     text-shadow: none;
    498 }
    499 [aria-describedby="downloadsender-mce-dialog"] .ui-widget-header,
    500 [aria-describedby="downloadsender-mce-dialog"] .ui-widget-header .ui-state-default {
    501     border: 0!important;
    502     border-bottom: 1px solid #dfdfdf !important;
    503 }
    504 
    505 [aria-describedby="downloadsender-mce-dialog"] .ui-button.ui-dialog-titlebar-close {
    506     top: 0;
    507     margin: 0;
    508     width: 45px;
    509 }
    510 [aria-describedby="downloadsender-mce-dialog"] .ui-button.ui-dialog-titlebar-close:hover {
    511     color: #00a0d2;
    512 }
    513 [aria-describedby="downloadsender-mce-dialog"] .ui-dialog-titlebar {   
    514     line-height: 60px;
    515     padding: 0 15px;
    516     font-weight: 400;
    517 }
    518 [aria-describedby="downloadsender-mce-dialog"] .ui-dialog-title {
    519     position: relative;
    520     padding-left: 30px;
    521 }
    522 [aria-describedby="downloadsender-mce-dialog"] .ui-dialog-title:before {
    523     position: absolute;
    524     content: '';
    525     width: 20px;
    526     height: 20px;
    527     background: url('../images/downloadsender-blue.png') no-repeat;
    528     left: 0;
    529     top: 50%;
    530     margin-top: -10px;
    531 }
    532 .downloadsender-submitbox {
    533     position: absolute;
    534     bottom: 0;
    535     left: 0;
    536     background: #fff;
    537     padding: 18px 18px;
    538     right: 0;
    539     text-align: right;
    540     border-top: 1px solid #e3e3e3;
    541 }
    542 #downloadsender-mce-dialog-default {
    543     float: left;
    544     text-align: center;
    545 }
    546444
    547445/* Buttons */
  • download-sender/trunk/assets/js/settings.js

    r2186034 r2186241  
    164164    $( document.body ).delegate( "#make_log_verified", "click", function() {
    165165        if (!downloadSender.is_premium_v){
    166             //alert(downloadSender.premium_required_msg);
     166            alert(downloadSender.premium_required_msg);
    167167            //return false;
    168168        }
    169169    });
    170170   
    171     $('#make_log_verified').modaal({
    172         type: 'inline',
    173         content_source: '#email_verify_modaal',
    174         overlay_close: false,
    175         hide_close: true,
    176         background_scroll: true,
    177         width: 500,
    178     });
     171    if (!downloadSender.is_premium_v){
     172        $('#make_log_verified').modaal({
     173            type: 'inline',
     174            content_source: '#email_verify_modaal',
     175            overlay_close: false,
     176            hide_close: true,
     177            background_scroll: true,
     178            width: 500,
     179        });
     180    }
     181   
    179182   
    180183    $( document.body ).delegate( "#modaal-close", "click", function() {
  • download-sender/trunk/assets/js/tinymce.js

    r2067451 r2186241  
    3131            $('.ui-dialog-titlebar-close').click();
    3232            return false;
    33         });
    34        
     33        });     
    3534        tinymce.PluginManager.add('download_sender', function( editor, url ) {
    3635           
     
    7776                   
    7877                    editor.windowManager.open( {
     78                        //file   : url+'/dialog.php',
    7979                        width: 880,
    8080                        height: 550,
     
    8282                        wpDialog: true,
    8383                        id : 'downloadsender-mce-dialog'
     84                        //inline: 1,
    8485                        }, {
    85                         //plugin_url : url,
     86                            //plugin_url : url,
    8687                    });
    8788                }
  • download-sender/trunk/includes/admin/class-admin-assets.php

    r2186034 r2186241  
    2121        add_action( 'admin_enqueue_scripts', array( $this, 'dynamic_styles' ) );
    2222    }
    23 
     23   
     24    /**
     25     * Dynamic_styles.
     26     */
    2427    public function dynamic_styles() {
    2528        $options = new Options;
     
    154157                    array(
    155158                        'ajax'                  => admin_url( 'admin-ajax.php' ),
     159                        'ABSURL'                => DOWNLOAD_SENDER_ABSURL,
    156160                        'settings_saved'        => __( 'Settings saved.' ),
    157161                        'download_sent'         => __( 'Download link were sent to %s', 'download-sender' ),
     
    163167                        'set_default'           => __( 'Set Default' ),
    164168                        'is_premium_v'          => is_downloadsender_premium_activated(),
    165                         //'premium_required_msg'    => __( 'The premium version is required to use this feature.', 'download-sender' ),
     169                        'premium_required_msg'  => __( 'You have free version. Buy Premium Version to access this feature.', 'download-sender' ),   
    166170                        'confirm_resend_msg'    => __( '<strong>File :</strong> {file}<br><strong>To Email :</strong> {email}', 'download-sender' ),
    167171                        'confirm_resend'            => __( 'Are you sure you want to resend file?', 'download-sender' ),
  • download-sender/trunk/includes/core-functions.php

    r2186034 r2186241  
    115115}
    116116
     117
     118
     119add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 );
     120
     121function remove_default_stylesheet() {
     122   
     123    wp_dequeue_style( 'widgetopts-jquery-ui' );
     124    wp_deregister_style( 'widgetopts-jquery-ui' );
     125
     126    //wp_register_style( 'new-style', get_stylesheet_directory_uri() . '/new.css', false, '1.0.0' );
     127    //wp_enqueue_style( 'new-style' );
     128
     129}
     130
    117131/**
    118132 * Check if Download Sender Premium is activated
Note: See TracChangeset for help on using the changeset viewer.