Plugin Directory

Changeset 2170493


Ignore:
Timestamp:
10/09/2019 09:26:34 AM (6 years ago)
Author:
emailsystem
Message:

Removed bootstrap and improved compatibility

Location:
emailsystem/trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • emailsystem/trunk/assets/css/emailsystem.css

    r2127080 r2170493  
    1 #sortable2{min-height:200px;margin:50px;background-color:#ffffff;width:100%;}ul#sortable1{list-style:none;}ul#sortable1 li{border:1px solid black;border-radius:3px;padding:5px;max-width:150px;font-weight:900;margin-bottom:10px;cursor:move;}ul#sortable1 li i{float:right;margin-top:4px;}.field-options{display:none;border:1px solid gray;padding:20px;background:lightgray;border-radius:10px;margin-top:-1rem;}.field-actions{display:none;text-align:right;position:absolute;right:0;}.form-field.dropped{padding:10px;background:none;border:none;}.form-field.dropped:hover{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 0 8px rgba(102,175,233,.6);}.form-field.dropped:hover>.field-actions{display:block;}.close-field{display:block;text-align:center;cursor:pointer;}.field-actions{display:none;text-align:right;position:absolute;right:60px;}.required-asterisk{color:red;margin:0 3px;}.button-field .btn.button-field{background:green;border:0;color:white;border-radius:0;margin-top:10px;}.info_text{margin:2em 0 2em 0;display:block;}.field-actions a{cursor:pointer;padding:0px 10px 0 0;}.field-actions img{width:18px;float:right;}.component img{width:40px;float:right;margin-top:0px;}.row{margin-bottom:40px;}label{cursor:auto;}.helper_text{font-size:11px;display:block;color:#999;}.form-group button.mysubmit{margin:40px auto 0;}#em-settings-table {margin-top:20px;}li#menu-posts-emailsystemform div img{max-height:34px;height:34px;max-width:34px;width:34px;padding:0px !important;}#emailsystemform-metabox.postbox {border:none;}#emailsystemform-metabox>button.handlediv {display:none;}#emailsystemform-metabox>h2 {display:none;}span.alert{display:block;text-align:center;width:100%;}span.alert.error{color:red;background:rgba(255,0,0,0.1);border:1px solid red;}span.alert.success{color:green;background:rgba(0,255,0,0.1);border:1px solid green;}#form-container{border:3px dashed #b4b9be;}label{margin-bottom:0px !important;}#components-container .row{margin-bottom:5px;}textarea#form-consent,textarea#form-preface,iframe#form-preface_ifr,iframe#form-consent_ifr{height:150px !important;}#sortable2 [type=button],#sortable2 [type=reset],#sortable2[type=submit],#sortable2 button{-webkit-appearance:none;}#preview_title{font-size:20px;font-style:italic;text-align:center;display:block;border-bottom:3px dashed #b4b9be;}#form-preview .btn.button-field{background:green;border:0;color:white;border-radius:0;margin-top:10px;}#em_woo_form .row{margin-bottom:3rem;}.center{margin:0 auto !important;}#em_woo_form{width:80vw;}
     1.form-group button.mysubmit{margin:40px auto 0;}#sortable2{min-height:200px;margin:50px;background-color:#ffffff;width:100%;}ul#sortable1{list-style:none;}ul#sortable1 li{border:1px solid black;border-radius:3px;padding:5px;max-width:150px;font-weight:900;margin-bottom:10px;cursor:move;}ul#sortable1 li i{float:right;margin-top:4px;}.field-options{display:none;border:1px solid gray;padding:20px;background:lightgray;border-radius:10px;margin-top:-1rem;}.field-actions{display:none;text-align:right;position:absolute;right:0;}.form-field.dropped{padding:10px;background:none;border:none;}.form-field.dropped:hover{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 0 8px rgba(102,175,233,.6);}.form-field.dropped:hover>.field-actions{display:block;}.close-field{display:block;text-align:center;cursor:pointer;}.field-actions{display:none;text-align:right;position:absolute;right:60px;}.required-asterisk{color:red;margin:0 3px;}.info_text{margin:2em 0 2em 0;display:block;}.field-actions a{cursor:pointer;padding:0px 10px 0 0;}.field-actions img{width:18px;float:right;}.component img{width:40px;float:right;margin-top:0px;}.row{margin-bottom:40px;}label{cursor:auto;}.helper_text{font-size:11px;display:block;color:#999;}#em-settings-table{margin-top:20px;}li#menu-posts-emailsystemform div img{max-height:34px;height:34px;max-width:34px;width:34px;padding:0px !important;}#emailsystemform-metabox.postbox{border:none;}#emailsystemform-metabox>button.handlediv{display:none;}#emailsystemform-metabox>h2{display:none;}span.alert{display:block;text-align:center;width:100%;}span.alert.error{color:red;background:rgba(255,0,0,0.1);border:1px solid red;}span.alert.success{color:green;background:rgba(0,255,0,0.1);border:1px solid green;}#form-container{border:3px dashed #b4b9be;}label{margin-bottom:0px !important;}#components-container .row{margin-bottom:5px;}textarea#form-consent,textarea#form-preface,iframe#form-preface_ifr,iframe#form-consent_ifr{height:150px !important;}#sortable2 [type=button],#sortable2 [type=reset],#sortable2[type=submit],#sortable2 button{-webkit-appearance:none;}#preview_title{font-size:20px;font-style:italic;text-align:center;display:block;border-bottom:3px dashed #b4b9be;}#em_woo_form .row{margin-bottom:3rem;}.center{margin:0 auto !important;}#em_woo_form{width:80vw;}#emailsystemform-metabox #form-preview .btn.button-field{background:green;border:0;color:white;border-radius:0;margin-top:10px;}#emailsystemform-metabox .button-field .btn.button-field{background:green;border:0;color:white;border-radius:0;margin-top:10px;}#emailsystemform-metabox .row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px;}#emailsystemform-metabox .col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%;}#emailsystemform-metabox .form-group{margin-bottom:1rem;}#emailsystemform-metabox .col,#emailsystemform-metabox  .col-1,#emailsystemform-metabox  .col-10,#emailsystemform-metabox  .col-11,#emailsystemform-metabox  .col-12,#emailsystemform-metabox  .col-2,#emailsystemform-metabox  .col-3,#emailsystemform-metabox  .col-4,#emailsystemform-metabox  .col-5,#emailsystemform-metabox  .col-6,#emailsystemform-metabox  .col-7,#emailsystemform-metabox  .col-8,#emailsystemform-metabox  .col-9,#emailsystemform-metabox  .col-auto,#emailsystemform-metabox  .col-lg,#emailsystemform-metabox  .col-lg-1,#emailsystemform-metabox  .col-lg-10,#emailsystemform-metabox  .col-lg-11,#emailsystemform-metabox  .col-lg-12,#emailsystemform-metabox  .col-lg-2,#emailsystemform-metabox  .col-lg-3,#emailsystemform-metabox  .col-lg-4,#emailsystemform-metabox  .col-lg-5,#emailsystemform-metabox  .col-lg-6,#emailsystemform-metabox  .col-lg-7,#emailsystemform-metabox  .col-lg-8,#emailsystemform-metabox  .col-lg-9,#emailsystemform-metabox  .col-lg-auto,#emailsystemform-metabox  .col-md,#emailsystemform-metabox  .col-md-1,#emailsystemform-metabox  .col-md-10,#emailsystemform-metabox  .col-md-11,#emailsystemform-metabox  .col-md-12,#emailsystemform-metabox  .col-md-2,#emailsystemform-metabox  .col-md-3,#emailsystemform-metabox  .col-md-4,#emailsystemform-metabox  .col-md-5,#emailsystemform-metabox  .col-md-6,#emailsystemform-metabox  .col-md-7,#emailsystemform-metabox  .col-md-8,#emailsystemform-metabox  .col-md-9,#emailsystemform-metabox  .col-md-auto,#emailsystemform-metabox  .col-sm,#emailsystemform-metabox  .col-sm-1,#emailsystemform-metabox  .col-sm-10,#emailsystemform-metabox  .col-sm-11,#emailsystemform-metabox  .col-sm-12,#emailsystemform-metabox  .col-sm-2,#emailsystemform-metabox  .col-sm-3,#emailsystemform-metabox  .col-sm-4,#emailsystemform-metabox  .col-sm-5,#emailsystemform-metabox  .col-sm-6,#emailsystemform-metabox  .col-sm-7,#emailsystemform-metabox  .col-sm-8,#emailsystemform-metabox  .col-sm-9,#emailsystemform-metabox  .col-sm-auto,#emailsystemform-metabox  .col-xl,#emailsystemform-metabox  .col-xl-1,#emailsystemform-metabox  .col-xl-10,#emailsystemform-metabox  .col-xl-11,#emailsystemform-metabox  .col-xl-12,#emailsystemform-metabox  .col-xl-2,#emailsystemform-metabox  .col-xl-3,#emailsystemform-metabox  .col-xl-4,#emailsystemform-metabox  .col-xl-5,#emailsystemform-metabox  .col-xl-6,#emailsystemform-metabox  .col-xl-7,#emailsystemform-metabox  .col-xl-8,#emailsystemform-metabox  .col-xl-9,#emailsystemform-metabox  .col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px;}#emailsystemform-metabox label{display:inline-block;}#emailsystemform-metabox .form-group{margin-bottom:1rem;}#emailsystemform-metabox .form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;background-color:#fff;background-clip:padding-box;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;}#emailsystemform-metabox .container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;padding-top:40px;}#post-body-content #titlediv #titlewrap #title-prompt-text{line-height:37px;}#emailsystemform-metabox select{word-wrap:normal;}#emailsystemform-metabox button,#emailsystemform-metabox select{text-transform:none;}#emailsystemform-metabox button:not(.add_media):not(.wp-switch-editor):not(.wp-color-result):not(.mysubmit),#emailsystemform-metabox input,#emailsystemform-metabox optgroup,#emailsystemform-metabox select,#emailsystemform-metabox textarea{margin: 0;font-family: inherit;font-size: inherit;line-height: inherit;}#emailsystemform-metabox .wp-switch-editor {box-sizing: content-box !important;}#emailsystemform-metabox *,#emailsystemform-metabox ::after,#emailsystemform-metabox ::before{box-sizing:border-box;}#emailsystemform-metabox .col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%;}#emailsystemform-metabox .col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;}#emailsystemform-metabox .col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%;}#emailsystemform-metabox .col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%;}#emailsystemform-metabox .col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%;}#emailsystemform-metabox .btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;}#emailsystemform-metabox .btn-primary{color:#fff;background-color:#007bff;border-color:#007bff;}#emailsystemform-metabox .btn:hover{color:#212529;text-decoration:none;}[type="button"]:not(:disabled),[type="reset"]:not(:disabled),[type="submit"]:not(:disabled),button:not(:disabled){cursor:pointer;}#emailsystemform-metabox .btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc;}#emailsystemform-metabox .form-check{position:relative;display:block;padding-left:1.25rem;}#emailsystemform-metabox input[type="checkbox"],#emailsystemform-metabox input[type="radio"]{margin:4px 4px 0 0 !important;box-sizing:border-box;padding:0;}#emailsystemform-metabox .form-check-label{margin-bottom:0;}#emailsystemform-metabox label{display:inline-block;margin-bottom:.5rem;}#emailsystemform-metabox .form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem;}#emailsystemform-metabox button,#emailsystemform-metabox input{overflow:visible;}#emailsystemform-metabox .alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;}
  • emailsystem/trunk/emailsystem.php

    r2163466 r2170493  
    44* Plugin URI: https://www.emailsystem.gr/
    55* Description: EmailSystem Plugin
    6 * Version: 1.0.4
     6* Version: 1.1
    77* Author: EmailSystem Email Marketing
    88* Author URI: https://www.emailsystem.gr/
     
    225225   
    226226    function emailsystem_activate() {
    227         wp_enqueue_style( 'wp-color-picker' );
    228         wp_register_script( 'emailsystem-js', plugins_url('/assets/js/emailsystem.js', __FILE__), array('jquery','jquery-ui-sortable','wp-color-picker'));
    229         //wp_localize_script('emailsystem-js','post_object',array( 'posturl' => plugins_url('/assets/scripts/form_process.php', __FILE__)));
    230         //wp_localize_script('emailsystem-js','post_object',array( 'posturl' => plugins_url('/emailsystem.php', __FILE__)));
    231         wp_enqueue_script( 'emailsystem-js' );
    232         wp_enqueue_style( 'emailsystem-css', plugins_url('/assets/css/emailsystem.css', __FILE__));
    233         wp_register_script( "bootstrap-js",plugins_url('/assets/js/bootstrap.min.js', __FILE__));
    234         wp_enqueue_script( 'bootstrap-js' );
    235         wp_enqueue_style("bootstrap-css",plugins_url('/assets/css/bootstrap.min.css', __FILE__));
     227        if (strpos($_SERVER[REQUEST_URI], 'emailsystemform') !== false) {
     228            wp_register_script( 'emailsystem-js', plugins_url('/assets/js/emailsystem.js', __FILE__), array('jquery','jquery-ui-sortable','wp-color-picker'));
     229            wp_enqueue_style( 'wp-color-picker' );
     230            wp_enqueue_script( 'emailsystem-js' );
     231            wp_enqueue_style( 'emailsystem-css', plugins_url('/assets/css/emailsystem.css', __FILE__));
     232        }
    236233    }
    237234    function emailsystem_setting(){
  • emailsystem/trunk/readme.txt

    r2163466 r2170493  
    33Contributors: emailsystem
    44Tested up to: 5.2.2
    5 Stable tag: 1.0.4
     5Stable tag: 1.1
    66Requires at least: 4.9.8
    77License: GPLv2
     
    4747== Changelog ==
    4848
    49 =1.0.1,1.0.2,1.0.3=
    50 Minor bug fixes.
     49=1.1=
     50Bootstrap was removed since it was causing incompatibilities.
    5151
    5252= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.