Plugin Directory

Changeset 1942932


Ignore:
Timestamp:
09/18/2018 07:55:46 AM (8 years ago)
Author:
emtly
Message:

Update 1

Location:
master-modal-login-lite/trunk
Files:
39 added
4 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • master-modal-login-lite/trunk/assets/lib/click/core.php

    r1917336 r1942932  
    66include_once plugin_dir_path(__FILE__).'scripts.php';
    77
    8 add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
    98function add_login_logout_link($items, $args) {
    109   
     
    3534    return $items;
    3635}
     36add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
    3737
    3838//include_once plugin_dir_path(__FILE__).'shortcodes.php';
  • master-modal-login-lite/trunk/assets/lib/click/scripts.php

    r1917336 r1942932  
    1919
    2020    if ( !is_user_logged_in() ) {
    21 
    2221        echo '<script type="text/javascript">';
    23         echo "jQuery(document).ready(function(){jQuery('".$tmp_menu_item_id."').on('click',qt_popup_up);});";
     22        echo 'jQuery(document).on( "click","'.$tmp_menu_item_id.'", function(e) { e.preventDefault(); qt_popup_up(); });';
     23//      echo "jQuery(function(){jQuery('".$tmp_menu_item_id."').on('click',qt_popup_up);});";
     24//      echo "jQuery(document).ready(function(){jQuery('".$tmp_menu_item_id."').on('click',qt_popup_up);});";
    2425        echo "</script>\n";
    25 
    2626    }
    2727}
  • master-modal-login-lite/trunk/assets/lib/plugin/admin/core.php

    r1917336 r1942932  
    1111include_once plugin_dir_path(__FILE__).'custom-options.php';
    1212
    13 function qt_popup_register_settings_1() {
     13function qt_popup_lte_register_settings() {
    1414    global $qt_popup_x1x_data;
    1515    register_setting( $qt_popup_x1x_data['settings_name'], $qt_popup_x1x_data['options_name'], 'qt_popup_validate_1' );
    1616
    17     if ( !get_option( $qt_popup_x1x_data['options_name'] ) ) {
     17    if ( false == get_option( $qt_popup_x1x_data['options_name'] ) ) {
    1818        qt_popup_do_def( $qt_popup_x1x_data['options_name'] );
    19     } else {
    20 // !!!
    2119    }
    2220}
    23 add_action('admin_init', 'qt_popup_register_settings_1' );
     21add_action('admin_init', 'qt_popup_lte_register_settings' );
    2422
    2523function qt_popup_admin_menu() {
  • master-modal-login-lite/trunk/assets/lib/plugin/admin/css/admin.css

    r1917336 r1942932  
     1p.submit {
     2    text-align: center !important;
     3    margin: 0 auto;
     4}
    15.qt-popup-text-center {
    26    text-align: center;
  • master-modal-login-lite/trunk/assets/lib/plugin/admin/tmpl-options.php

    r1917336 r1942932  
    1010?>
    1111
    12     <div class="wrap">
     12    <div class="wrap">
    1313        <div class="qt-popup-left">
    1414
    15             <form method="post" action="options.php">
     15            <form method="post" action="options.php">
    1616
    1717                <?php settings_fields( $qt_popup_x1x_data['settings_name'] ); ?>
     
    2323                </p>
    2424
    25             </form>
     25            </form>
    2626
    27         </div>
     27        </div>
    2828        <div class="qt-popup-right qt-popup-postbox qt-popup-text-center">
    2929<?php
     
    4141}
    4242
     43$count_cust_qt_popup_posts = wp_count_posts( 'qt_popup_templates' )->publish;
     44if ($count_cust_qt_popup_posts<1) {
    4345?>
    44             <p></p>
    45 
    46         </div>
    47     </div>
     46<form action="<?php echo admin_url( 'admin-post.php' ); ?>">
     47<input type="hidden" name="action" value="chup_mmpl">
     48<input type="hidden" name="chup_mmpl" value="">
     49<?php submit_button( 'Get Demo PopUp Templates' ); ?>
     50</form>
     51<?php
     52}
     53?>
     54        </div>
     55    </div>
  • master-modal-login-lite/trunk/assets/lib/plugin/functions.php

    r1917336 r1942932  
    11<?php
     2if ( ! function_exists( 'qt_popup_populate_pages' ) ) {
     3    function qt_popup_populate_pages($pre=null) {
     4        global $qt_popup_x1x_data, $qt_popup_x1x_options;
    25
    3 function qt_popup_populate_pages($pre=null) {
    4     global $qt_popup_x1x_data, $qt_popup_x1x_options;
     6        $ct_pages = get_pages();
     7        if ($pre) {
     8            $arr_tmp = $pre;
     9        } else {
     10            $arr_tmp = array();
     11        }
     12        foreach ( $ct_pages as $ct_page ) {
     13            $arr_tmp[ $ct_page->ID ] = $ct_page->post_title;
     14        }
     15        return $arr_tmp;
     16    }
     17}
     18if ( ! function_exists( 'qt_popup_populate_pages_slug' ) ) {
     19    function qt_popup_populate_pages_slug($pre=null) {
     20        global $qt_popup_x1x_data, $qt_popup_x1x_options;
    521
    6     $ct_pages = get_pages();
    7     if ($pre) {
    8         $arr_tmp = $pre;
    9     } else {
    10         $arr_tmp = array();
     22        $ct_pages = get_pages();
     23        if ($pre) {
     24            $arr_tmp = $pre;
     25        } else {
     26            $arr_tmp = array();
     27        }
     28        foreach ( $ct_pages as $ct_page ) {
     29            $arr_tmp[ $ct_page->post_name ] = $ct_page->post_title;
     30        }
     31        return $arr_tmp;
    1132    }
    12     foreach ( $ct_pages as $ct_page ) {
    13         $arr_tmp[ $ct_page->ID ] = $ct_page->post_title;
    14     }
    15     return $arr_tmp;
    1633}
    17 
    18 function qt_popup_populate_pages_slug($pre=null) {
    19     global $qt_popup_x1x_data, $qt_popup_x1x_options;
    20 
    21     $ct_pages = get_pages();
    22     if ($pre) {
    23         $arr_tmp = $pre;
    24     } else {
    25         $arr_tmp = array();
    26     }
    27     foreach ( $ct_pages as $ct_page ) {
    28         $arr_tmp[ $ct_page->post_name ] = $ct_page->post_title;
    29     }
    30     return $arr_tmp;
    31 }
  • master-modal-login-lite/trunk/assets/lib/plugin/runtime/css/tmpl.css

    r1917336 r1942932  
    110110}
    111111
    112 #qt_popup_popup .qtpad5 {
    113     padding: 10px !important;
    114 }
    115 
    116 #qt_popup_popup .qt-fr-form-zero {
    117     background: transparent;
    118     padding: 0;
    119     margin: 0;
    120 }
    121 
    122 #qt_popup_popup .qt-fr-form {
    123     padding: 5px 0 30px 0;
    124     margin: 10px 0 0 0;
    125 }
    126 
    127112#qt_popup_popup .qt-popup-close-button {
    128113    font-family: Verdana, Geneva, sans-serif;
    129114    font-size: 1em; font-weight: bold;
    130     margin-left: 95%;
    131     margin-bottom: 15px;
     115    margin-left:99%;
     116    margin-bottom:15px;
    132117    width: 1.4em;
    133118    line-height: 1.1em;
  • master-modal-login-lite/trunk/assets/lib/plugin/runtime/scripts.php

    r1917336 r1942932  
    55    $qt_popup_tmpl_options = get_option( $qt_popup_x1x_data['options_name'] );
    66
    7     if ($qt_popup_tmpl_options['load_grid']) {
     7    if ( isset($qt_popup_tmpl_options['load_grid']) && $qt_popup_tmpl_options['load_grid'] ) {
    88        wp_enqueue_style( 'qt-popup-style', plugins_url( '/css/qtstyle.css', __FILE__), false );
    99    }
  • master-modal-login-lite/trunk/assets/lib/signacc/core.php

    r1917336 r1942932  
    5858            $tmp_usr_id             = qt_popup_sign_up( 'form', $user_email, $tmp_name, $user_pass, $after );
    5959
    60             if ( $qt_popup_tmp_options['signin_after_signup'] ) {
     60            if ( isset($qt_popup_tmp_options['signin_after_signup']) ) {
    6161                qt_popup_sign_in( $tmp_usr_id, $qt_popup_tmp_options['page_after_signup'] );
    6262            } else {
     
    6666        } else {
    6767            if ( isset( $qt_popup_tmp_options['signup_err_message'] ) ) {
    68                 $tmp_msg = $qt_popup_tmp_options['signup_err_message'];// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
     68                $tmp_msg = $qt_popup_tmp_options['signup_err_message']; // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
    6969            }
    7070            $qt_popup_x1x_data['qt_popup_error_msg'] = $tmp_msg;
  • master-modal-login-lite/trunk/master-modal-login-lite.php

    r1934513 r1942932  
    9292include_once plugin_dir_path(__FILE__).'assets/lib/popup-free/core.php';
    9393
    94 include_once plugin_dir_path(__FILE__).'assets/lib/signsimple/core.php';
     94//include_once plugin_dir_path(__FILE__).'assets/lib/signsimple/core.php';
    9595include_once plugin_dir_path(__FILE__).'assets/lib/signacc/core.php';
    9696include_once plugin_dir_path(__FILE__).'assets/lib/redirect/core.php';
     97include_once plugin_dir_path(__FILE__).'assets/lib/chup/core.php';
    9798//include_once plugin_dir_path(__FILE__).'assets/lib/facebook/core.php';
    9899
    99 
    100 /*
    101 if ( $qt_popup_x1x_data['debug'] == true ) {
    102     register_activation_hook( __FILE__, 'my_activation_func' );
    103     function my_activation_func() {
    104         file_put_contents(__DIR__.'/err_log.txt', ob_get_contents());
    105     }
    106 }
    107 */
Note: See TracChangeset for help on using the changeset viewer.