Plugin Directory

Changeset 1529213


Ignore:
Timestamp:
11/06/2016 05:24:55 PM (9 years ago)
Author:
wassereimer
Message:

new version 16.11 for trunk

Location:
easy-code-placement/trunk
Files:
224 added
22 edited

Legend:

Unmodified
Added
Removed
  • easy-code-placement/trunk/easy-code-placement.php

    r1512852 r1529213  
    44 * Text Domain: easy-code-placement
    55 * Domain Path: /lang
    6  * Version: 16.10
    7  * Plugin URI: http://www.randnotizen.org/easy-code-placement/
     6 * Version: 16.11
     7 * Plugin URI: https://www.randnotizen.org/easy-code-placement/
    88 * Author: Jens Herdy
    9  * Author URI: http://www.randnotizen.org/
     9 * Author URI: https://www.randnotizen.org/
    1010 * Description: A great Wordpress Plugin to place ANY Code ANYWHERE you want.
    1111 * License: GPLv3
    1212 */
    1313
     14// ************************
     15// check for direct accesss
     16// ************************
     17function ecp_check_access() {
     18    if ( !function_exists( 'add_action' ) ) {
     19        echo 'I\'s not allowed to access any file directly!';
     20        exit;
     21    }
     22}
     23
     24// *******************
     25// block direct access
     26// *******************
     27ecp_check_access();
     28
     29// *******************************************
    1430// quick and dirty fix for output buffer error
     31// *******************************************
    1532ob_start();
    1633
     34// *********
    1735// standards
    18 define('ECP_FILE',__FILE__);
    19 define('ECP_VERSION','16.10');
     36// *********
     37define( 'ECP_FILE', __FILE__ );
     38define( 'ECP_VERSION', '16.11' );
    2039
     40// ***********************
    2141// load functions, classes
     42// ***********************
    2243include( dirname( __FILE__ ) . '/inc/functions.php' );
    2344
     45// *********************************
    2446// set filters to replace shortcodes
     47// *********************************
    2548add_filter( 'the_title', 'do_shortcode', 99);
    2649add_filter( 'the_content', 'do_shortcode', 99);
     
    3053add_filter( 'the_tags', 'do_shortcode', 99);
    3154
     55// **************
    3256// load languages
    33 load_plugin_textdomain('easy-code-placement', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
     57// **************
     58load_plugin_textdomain( 'easy-code-placement', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
    3459
     60// ***********************************
    3561// include install and uninstall files
     62// ***********************************
    3663include( dirname( __FILE__ ) . '/inc/install.php' );
    3764include( dirname( __FILE__ ) . '/inc/uninstall.php' );
    3865
     66// *******************
    3967// update if neccesary
     68// *******************
    4069ecp_do_update();
    4170
     71// ****************
    4272// add options menu
    43 add_action( 'admin_menu', 'ecp_add_page');
     73// ****************
     74add_action( 'admin_menu', 'ecp_add_page' );
    4475
     76// **********
    4577// add widget
     78// **********
    4679add_action( 'widgets_init', 'ecp_register_widget' );
    4780
  • easy-code-placement/trunk/inc/actions/add.php

    r1512852 r1529213  
    11<?php
    22
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8// ******************
     9// when form was sent
     10// ******************
    311global $wpdb;
    4 
    5 // when form was sent
    6 if(isset($_POST) && isset($_POST['submit'])) {
     12if( isset( $_POST ) && isset( $_POST[ 'submit' ] ) ) {
    713
    814    // secure post data and set variables
    9     $_POST = stripslashes_deep ($_POST);
    10     $t_ecp_name = $_POST['name'];
    11     $t_ecp_code = $_POST['code'];
    12     $t_ecp_alignment = $_POST['alignment'];
    13     $t_ecp_status = $_POST['status'];
     15    $_POST = stripslashes_deep ( $_POST );
     16    $t_ecp_name = $_POST[ 'name' ];
     17    $t_ecp_code = $_POST[ 'code' ];
     18    $t_ecp_alignment = $_POST[ 'alignment' ];
     19    $t_ecp_status = $_POST[ 'status' ];
    1420
    15     if (strlen($t_ecp_name) > 30) {
     21    if( strlen ( $t_ecp_name ) > 30 ) {
     22       
    1623        // when name is longer than 30 chars
    17         $ecp_error = __('A maximum of 30 Characters is allowed', 'easy-code-placement');
     24        $ecp_error = __( 'A maximum of 30 Characters is allowed', 'easy-code-placement' );
    1825        $ecp_error_page = "&load=add";
    1926        $ecp_error_id = "";
    20         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     27        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    2128    }
    2229
    23     if (preg_match("/[^a-zA-Z0-9\_-]/i", $t_ecp_name)) {
     30    if( preg_match ( "/[^a-zA-Z0-9\_-]/i", $t_ecp_name ) ) {
     31       
    2432        // when name contains spechial chars
    25         $ecp_error = __('Special Characters are not allowed in the Code Name', 'easy-code-placement');
     33        $ecp_error = __( 'Special Characters are not allowed in the Code Name', 'easy-code-placement' );
    2634        $ecp_error_page = "&load=add";
    2735        $ecp_error_id = "";
    28         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     36        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    2937    }
    3038
    31     if ($t_ecp_name =="" || $t_ecp_code =="") {
     39    if( $t_ecp_name =="" || $t_ecp_code =="" ) {
     40       
    3241        // when post emty goto error page
    33     $ecp_error = __('The Code Name and / or the Code must be filled in', 'easy-code-placement');
     42    $ecp_error = __( 'The Code Name and / or the Code must be filled in', 'easy-code-placement' );
    3443        $ecp_error_page = "&load=add";
    3544        $ecp_error_id = "";
    36         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     45        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    3746    }
    3847   
    39     $ecp_count = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."ecp_data WHERE name = '$t_ecp_name'");
    40     if ($wpdb->num_rows) {
     48    $ecp_count = $wpdb->get_results ( "SELECT * FROM " . $wpdb->prefix . "ecp_data WHERE name = '$t_ecp_name'" );
     49    if( $wpdb->num_rows ) {
     50       
    4151        // when name in database goto error page
    42     $ecp_error = __('The Code Name already exist - It must be uniqe', 'easy-code-placement');
     52    $ecp_error = __( 'The Code Name already exist - It must be uniqe', 'easy-code-placement' );
    4353        $ecp_error_page = "&load=add";
    4454        $ecp_error_id = "";
    45         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     55        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    4656    }
    4757
    48     $wpdb->insert($wpdb->prefix.'ecp_data', array('name' =>$t_ecp_name,'code'=>$t_ecp_code,'alignment'=>$t_ecp_alignment,'shortcode'=>$t_ecp_name,'status'=>$t_ecp_status,'added'=>date('Y-m-d H:i:s'),'version'=>ECP_VERSION));
     58    $wpdb->insert( $wpdb->prefix . 'ecp_data', array ( 'name' => $t_ecp_name, 'code' => $t_ecp_code, 'alignment' => $t_ecp_alignment, 'shortcode' => $t_ecp_name, 'status' => $t_ecp_status, 'added' => date ( 'Y-m-d H:i:s' ), 'version' => ECP_VERSION ) );
    4959
    5060    // when added to database goto options page
    51     header('Location: options-general.php?page=ecp');
     61    header( 'Location: options-general.php?page=ecp' );
    5262    exit();
    5363
    5464} else {
    55     // when nothing done
     65   
     66// *****************
     67// when nothing done
     68// *****************
    5669?>
    5770
    5871<div class="wrap">
    59 <h2>Easy Code Placement - <?php _e('New Code','easy-code-placement'); ?></h2>
    60 <br>
     72    <h2>Easy Code Placement - <?php _e('New Code','easy-code-placement'); ?></h2>
    6173
    62 <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
    63 <table class="table borderless paddingless" style="max-width:1000px;">   
    64     <tr>
    65         <td>
    66             <div class="form-group">
    67                 <label for="name" class="control-label"><?php _e('Name','easy-code-placement'); ?>:</label>
    68                 <input id="name" name="name" type="text" class="form-control">
    69                 <p class="help-block">
    70                     <i class="fa fa-info"></i>&nbsp;<?php _e('Only Letters and Numbers are allowed','easy-code-placement'); ?><br>
    71                     <i class="fa fa-info"></i>&nbsp;<?php _e('Instead of Whitesspaces use Underlines','easy-code-placement'); ?><br>
    72                     <i class="fa fa-info"></i>&nbsp;<?php _e('A maximum of 30 Characters is allowed','easy-code-placement'); ?>
    73                 </p>
    74             </div>
    75         </td>
    76     </tr>
    77     <tr>
    78         <td>
    79             <div class="form-group">
    80                 <label for="code" class="control-label"><?php _e('Code','easy-code-placement'); ?>:</label>
    81                 <textarea id="code" name="code" rows="10" class="form-control"></textarea>
    82             </div>
    83         </td>
    84     </tr>
    85     <tr>
    86         <td>
    87             <div class="form-group">
    88                 <label for="alignment" class="control-label"><?php _e('Alignment','easy-code-placement'); ?>:</label>
    89                 <select id="alignment" name="alignment" class="form-control">
    90                     <option value="0" checked><?php _e('None','easy-code-placement'); ?></option>
    91                     <option value="1"><?php _e('Left','easy-code-placement'); ?></option>
    92                     <option value="2"><?php _e('Center','easy-code-placement'); ?></option>
    93                     <option value="3"><?php _e('Right','easy-code-placement'); ?></option>
    94                 </select>
    95             </div>
    96         </td>
    97     </tr>
    98     <tr>
    99         <td>
    100             <div class="form-group">
    101                 <label for="status" class="control-label"><?php _e('Status','easy-code-placement'); ?>:</label>
    102                 <select id="status" name="status" class="form-control">
    103                     <option value="1" checked><?php _e('Online','easy-code-placement'); ?></option>
    104                     <option value="2"><?php _e('Offline','easy-code-placement'); ?></option>
    105                 </select>
    106             </div>
    107         </td>
    108     </tr>
    109 </table>
    110 <button type="button" class="btn btn-default" onClick='document.location.href="<?php echo admin_url('options-general.php?page=ecp');?>"'><?php _e('Back','easy-code-placement'); ?></button>&nbsp;&nbsp;<button type="submit" name="submit" class="btn btn-primary"><?php _e('Add','easy-code-placement'); ?></button>
    111 </form>
    112 
     74    <form method="post" class="uk-margin-top" action="<?php echo $_SERVER[ "REQUEST_URI" ]; ?>">
     75        <fieldset>
     76            <legend><?php _e( 'Name', 'easy-code-placement' ); ?>:</legend>
     77            <input name="name" type="text" class="uk-form-width-large">
     78            <p class="help-block">
     79                <i class="uk-icon-info"></i>&nbsp;<?php _e( 'Only Letters and Numbers are allowed', 'easy-code-placement' ); ?><br>
     80                <i class="uk-icon-info"></i>&nbsp;<?php _e( 'Instead of Whitesspaces use Underlines', 'easy-code-placement' ); ?><br>
     81                <i class="uk-icon-info"></i>&nbsp;<?php _e( 'A maximum of 30 Characters is allowed', 'easy-code-placement' ); ?>
     82            </p>
     83        </fieldset>
     84        <fieldset>
     85            <legend><?php _e( 'Code', 'easy-code-placement' ); ?>:</legend>
     86            <textarea name="code" rows="10" class="uk-form-width-large"></textarea>
     87        </fieldset>
     88        <fieldset>
     89            <legend><?php _e( 'Alignment', 'easy-code-placement' ); ?>:</legend>
     90            <select name="alignment" class="uk-form-width-large">
     91                <option value="0" checked><?php _e( 'None', 'easy-code-placement' ); ?></option>
     92                <option value="1"><?php _e( 'Left', 'easy-code-placement' ); ?></option>
     93                <option value="2"><?php _e( 'Center', 'easy-code-placement' ); ?></option>
     94                <option value="3"><?php _e( 'Right', 'easy-code-placement' ); ?></option>
     95            </select>
     96        </fieldset>
     97        <fieldset>
     98            <legend><?php _e( 'Status', 'easy-code-placement' ); ?>:</legend>
     99            <select name="status" class="uk-form-width-large">
     100                <option value="1" checked><?php _e( 'Online', 'easy-code-placement' ); ?></option>
     101                <option value="2"><?php _e( 'Offline', 'easy-code-placement' ); ?></option>
     102            </select>
     103        </fieldset>
     104    <button type="button" class="uk-button" onClick='document.location.href="<?php echo admin_url( 'options-general.php?page=ecp' ); ?>"'><?php _e( 'Back', 'easy-code-placement' ); ?></button>&nbsp;&nbsp;<button type="submit" name="submit" class="uk-button uk-button-primary"><?php _e( 'Add','easy-code-placement' ); ?></button>
     105    </form>
     106   
    113107</div>
    114108
  • easy-code-placement/trunk/inc/actions/alignment.php

    r1420409 r1529213  
    11<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
    27
    38global $wpdb;
    49
    510// secure get data and set variables
    6 $_GET = stripslashes_deep($_GET);
    7 $ecp_id = $_GET['ecpid'];
    8 $ecp_alignment = $_GET['alignment'];
     11$_GET = stripslashes_deep( $_GET );
     12$ecp_id = $_GET[ 'ecpid' ];
     13$ecp_alignment = $_GET[ 'alignment' ];
    914
    10 if (isset($_GET['pagenum'])) {
    11     $t_ecp_sendpage=$_GET['pagenum'];
    12     $ecp_sendpage='&pagenum='.$t_ecp_sendpage.'';
     15if( isset( $_GET[ 'pagenum' ] ) ) {
     16    $t_ecp_sendpage = $_GET[ 'pagenum' ];
     17    $ecp_sendpage = '&pagenum=' . $t_ecp_sendpage . '';
    1318}
    1419
    15 if ($ecp_id=="" || !is_numeric($ecp_id)) {
     20if( $ecp_id=="" || !is_numeric( $ecp_id ) ) {
     21   
    1622    // when get emty or other than numbers goto error page
    17     $ecp_error = __('Modifying of the ID is not allowed', 'easy-code-placement');
     23    $ecp_error = __( 'Modifying of the ID is not allowed', 'easy-code-placement' );
    1824    $ecp_error_page = "";
    1925    $ecp_error_id = "";
    20     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
    21 } elseif ($ecp_alignment !=="0" && $ecp_alignment !=="1" && $ecp_alignment !=="2" && $ecp_alignment !=="3") {
     26    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
     27}elseif( $ecp_alignment !== "0" && $ecp_alignment !== "1" && $ecp_alignment !== "2" && $ecp_alignment !== "3" ) {
     28   
    2229    // when get emty or other than numbers goto error page
    23     $ecp_error = __('Modifying the Alignment to something else than 0, 1, 2 or 3 is not allowed', 'easy-code-placement');
     30    $ecp_error = __( 'Modifying the Alignment to something else than 0, 1, 2 or 3 is not allowed', 'easy-code-placement' );
    2431    $ecp_error_page = "";
    2532    $ecp_error_id = "";
    26     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     33    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    2734}
    2835
    2936// change status   
    30 $wpdb->update($wpdb->prefix.'ecp_data', array('alignment'=>$ecp_alignment), array('id'=>$ecp_id));
     37$wpdb->update( $wpdb->prefix . 'ecp_data', array( 'alignment' => $ecp_alignment ), array( 'id' => $ecp_id ) );
    3138
    3239// when status changes goto options page
    33 header('Location: options-general.php?page=ecp'.$ecp_sendpage.'');
     40header( 'Location: options-general.php?page=ecp' . $ecp_sendpage . '' );
    3441
    3542?>
  • easy-code-placement/trunk/inc/actions/delete.php

    r1335072 r1529213  
    11<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
    27
    38global $wpdb;
    49
    510// secure get data and set variables
    6 $_GET = stripslashes_deep($_GET);
    7 $ecp_id = intval($_GET['ecpid']);
     11$_GET = stripslashes_deep( $_GET );
     12$ecp_id = intval( $_GET[ 'ecpid' ]);
    813
    9 if($ecp_id=="" || !is_numeric($ecp_id)) {
     14if( $ecp_id =="" || !is_numeric( $ecp_id ) ) {
     15   
    1016    // when get emty or other than numbers goto error page
    11     $ecp_error = __('Modifying of the ID is not allowed', 'easy-code-placement');
     17    $ecp_error = __( 'Modifying of the ID is not allowed', 'easy-code-placement' );
    1218    $ecp_error_page = "";
    1319    $ecp_error_id = "";
    14     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     20    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    1521}
    1622
    1723// delete code
    18 $wpdb->delete($wpdb->prefix.'ecp_data', array('id'=>$ecp_id));
     24$wpdb->delete( $wpdb->prefix . 'ecp_data', array( 'id' => $ecp_id ) );
    1925
    2026// when data is deleted goto options page   
    21 header('Location: options-general.php?page=ecp');
     27header( 'Location: options-general.php?page=ecp' );
    2228
    2329?>
  • easy-code-placement/trunk/inc/actions/edit.php

    r1512852 r1529213  
    11<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
    27
    38global $wpdb;
    49
    5 if (isset($_GET['pagenum'])) {
    6     $t_ecp_sendpage=$_GET['pagenum'];
    7     $ecp_sendpage='&pagenum='.$t_ecp_sendpage.'';
     10if( isset( $_GET[ 'pagenum' ] ) ) {
     11    $t_ecp_sendpage = $_GET[ 'pagenum' ];
     12    $ecp_sendpage = '&pagenum=' . $t_ecp_sendpage . '';
    813}
    914
     15// ******************
    1016// when form was sent
    11 if(isset($_POST) && isset($_POST['submit'])) {
     17// ******************
     18if( isset( $_POST ) && isset( $_POST[ 'submit' ] ) ) {
    1219
    1320    // secure post data and set variables
    14     $_POST = stripslashes_deep ($_POST);
    15     $t_ecp_code = $_POST['code'];
    16     $t_ecp_alignment = $_POST['alignment'];
    17     $t_ecp_status = $_POST['status'];
    18     $t_ecp_id = $_POST['id'];
     21    $_POST = stripslashes_deep( $_POST );
     22    $t_ecp_code = $_POST[ 'code' ];
     23    $t_ecp_alignment = $_POST[ 'alignment' ];
     24    $t_ecp_status = $_POST[ 'status' ];
     25    $t_ecp_id = $_POST[ 'id' ];
    1926   
    20     if($t_ecp_id=="" || !is_numeric($t_ecp_id)) {
     27    if( $t_ecp_id=="" || !is_numeric( $t_ecp_id ) ) {
     28       
    2129        // when get emty or other than numbers goto error page
    22         $ecp_error = __('Modifying of the ID is not allowed', 'easy-code-placement');
     30        $ecp_error = __( 'Modifying of the ID is not allowed', 'easy-code-placement' );
    2331        $ecp_error_page = "";
    2432        $ecp_error_id = "";
    25         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     33        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    2634    }
    2735
    28     if ($t_ecp_code =="") {
     36    if( $t_ecp_code == "" ) {
     37       
    2938        // when post emty goto error page
    30     $ecp_error = __('The Code must be filled in', 'easy-code-placement');
     39    $ecp_error = __( 'The Code must be filled in', 'easy-code-placement' );
    3140        $ecp_error_page = "&load=edit";
    3241        $ecp_error_id = "&ecpid=$ecp_id";
    33         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     42        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    3443    }
    3544   
    36     $wpdb->update($wpdb->prefix.'ecp_data', array('code'=>$t_ecp_code,'alignment'=>$t_ecp_alignment,'status'=>$t_ecp_status,'changed'=>date('Y-m-d H:i:s')), array('id'=>$t_ecp_id));
     45    $wpdb->update( $wpdb->prefix . 'ecp_data', array( 'code' => $t_ecp_code, 'alignment' => $t_ecp_alignment, 'status' => $t_ecp_status, 'changed' => date( 'Y-m-d H:i:s' ) ), array( 'id' => $t_ecp_id ) );
    3746
    3847    // when edited goto options page
    39     header('Location: options-general.php?page=ecp'.$ecp_sendpage.'');
     48    header( 'Location: options-general.php?page=ecp' . $ecp_sendpage . '' );
    4049    exit();
    4150
    42 } else {
    43     // when nothing done
     51}else{
     52   
     53// *****************
     54// when nothing done
     55// ******************
    4456 
    4557    // secure get data and set variables
    46     $_GET = stripslashes_deep($_GET);
    47     $ecp_id = $_GET['ecpid'];
     58    $_GET = stripslashes_deep( $_GET );
     59    $ecp_id = $_GET[ 'ecpid' ];
    4860
    49     if($ecp_id=="" || !is_numeric($ecp_id)) {
     61    if( $ecp_id == "" || !is_numeric( $ecp_id ) ) {
     62       
    5063        // when get emty or other than numbers goto error page
    51         $ecp_error = __('Modifying of the ID is not allowed', 'easy-code-placement');
     64        $ecp_error = __( 'Modifying of the ID is not allowed', 'easy-code-placement' );
    5265        $ecp_error_page = "";
    5366        $ecp_error_id = "";
    54         return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     67        return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    5568    }
    5669
    57     $ecp_load = $wpdb->get_row('SELECT * FROM '.$wpdb->prefix.'ecp_data WHERE id= '.$ecp_id.'');
     70    $ecp_load = $wpdb->get_row( 'SELECT * FROM ' . $wpdb->prefix . 'ecp_data WHERE id= ' . $ecp_id . '' );
    5871?>
    5972
    6073<div class="wrap">
    61 <h2>Easy Code Placement - <?php _e('Edit Code','easy-code-placement'); ?></h2>
    62 <br>
     74    <h2>Easy Code Placement - <?php _e( 'Edit Code', 'easy-code-placement' ); ?></h2>
    6375
    64 <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
    65 <table class="table borderless paddingless" style="max-width:1000px;">   
    66     <tr>
    67         <td>
    68             <div class="form-group">
    69                 <label for="name" class="control-label"><?php _e('Name','easy-code-placement'); ?>:</label>
    70                 <input id="name disabledInput" name="name" type="text" class="form-control" placeholder="<?php echo ($ecp_load->name); ?>" disabled>
    71                 <input type="hidden" name="id" align="center" value="<?php echo ($ecp_load->id); ?>">
    72             </div>
    73         </td>
    74     </tr>
    75     <tr>
    76         <td>
    77             <div class="form-group">
    78                 <label for="code" class="control-label"><?php _e('Code','easy-code-placement'); ?>:</label>
    79                 <textarea id="code" name="code" rows="10" class="form-control"><?php echo ($ecp_load->code); ?></textarea>
    80             </div>
    81         </td>
    82     </tr>
    83     <tr>
    84         <td>
    85             <div class="form-group">
    86                 <label for="alignment" class="control-label"><?php _e('Alignment','easy-code-placement'); ?>:</label>
    87                 <select id="alignment" name="alignment" class="form-control">
    88                     <option value="0"<?php if ($ecp_load->alignment == "0" OR $ecp_load->alignment == "") {echo " selected";} else {echo "";}; ?>><?php _e('None','easy-code-placement'); ?></option>
    89                     <option value="1"<?php if ($ecp_load->alignment == "1") {echo " selected";} else {echo "";}; ?>><?php _e('Left','easy-code-placement'); ?></option>
    90                     <option value="2"<?php if ($ecp_load->alignment == "2") {echo " selected";} else {echo "";}; ?>><?php _e('Center','easy-code-placement'); ?></option>
    91                     <option value="3"<?php if ($ecp_load->alignment == "3") {echo " selected";} else {echo "";}; ?>><?php _e('Right','easy-code-placement'); ?></option>
    92                 </select>
    93             </div>
    94         </td>
    95     </tr>
    96     <tr>
    97         <td>
    98             <div class="form-group">
    99                 <label for="status" class="control-label"><?php _e('Status','easy-code-placement'); ?>:</label>
    100                 <select id="status" name="status" class="form-control">
    101                     <option value="1"<?php if ($ecp_load->status == "1") {echo " selected";} else {echo "";}; ?>><?php _e('Online','easy-code-placement'); ?></option>
    102                     <option value="2"<?php if ($ecp_load->status == "2") {echo " selected";} else {echo "";}; ?>><?php _e('Offline','easy-code-placement'); ?></option>
    103                 </select>
    104             </div>
    105         </td>
    106     </tr>
    107 </table>   
    108 <button type="button" class="btn btn-default" onClick='document.location.href="<?php echo admin_url('options-general.php?page=ecp'.$ecp_sendpage.'');?>"'><?php _e('Back','easy-code-placement'); ?></button>&nbsp;&nbsp;<button type="submit" name="submit" class="btn btn-primary"><?php _e('Save','easy-code-placement'); ?></button>
    109 </form>
     76    <form method="post" class="uk-margin-top" action="<?php echo $_SERVER[ "REQUEST_URI" ]; ?>">
     77        <fieldset>
     78            <legend><?php _e( 'Name', 'easy-code-placement' ); ?>:</legend>
     79            <input name="name" type="text" class="uk-form-width-large" placeholder="<?php echo ( $ecp_load->name ); ?>" disabled>
     80            <input type="hidden" name="id" align="center" value="<?php echo ( $ecp_load->id ); ?>">
     81        </fieldset>
     82        <fieldset>
     83            <legend><?php _e( 'Code', 'easy-code-placement' ); ?>:</legend>
     84            <textarea name="code" rows="10" class="uk-form-width-large"><?php echo ( $ecp_load->code ); ?></textarea>
     85        </fieldset>
     86        <fieldset>
     87            <legend><?php _e( 'Alignment', 'easy-code-placement' ); ?>:</legend>
     88            <select name="alignment" class="uk-form-width-large">
     89                <option value="0"<?php if( $ecp_load->alignment == "0" OR $ecp_load->alignment == "" ) { echo " selected"; } else {echo ""; }; ?>><?php _e( 'None', 'easy-code-placement' ); ?></option>
     90                <option value="1"<?php if( $ecp_load->alignment == "1" ) { echo " selected"; } else { echo ""; }; ?>><?php _e( 'Left', 'easy-code-placement' ); ?></option>
     91                <option value="2"<?php if( $ecp_load->alignment == "2" ) { echo " selected"; } else { echo ""; }; ?>><?php _e( 'Center', 'easy-code-placement' ); ?></option>
     92                <option value="3"<?php if( $ecp_load->alignment == "3" ) { echo " selected"; } else { echo ""; }; ?>><?php _e( 'Right', 'easy-code-placement' ); ?></option>
     93            </select>
     94        </fieldset>
     95        <fieldset>
     96            <legend><?php _e('Status','easy-code-placement'); ?>:</legend>
     97            <select name="status" class="uk-form-width-large">
     98                <option value="1"<?php if( $ecp_load->status == "1" ) { echo " selected"; } else { echo ""; }; ?>><?php _e( 'Online', 'easy-code-placement' ); ?></option>
     99                <option value="2"<?php if( $ecp_load->status == "2" ) { echo " selected"; } else { echo ""; }; ?>><?php _e( 'Offline', 'easy-code-placement' ); ?></option>
     100            </select>
     101        </fieldset>
     102    <button type="button" class="uk-button" onClick='document.location.href="<?php echo admin_url( 'options-general.php?page=ecp' . $ecp_sendpage . '' );?>"'><?php _e( 'Back', 'easy-code-placement' ); ?></button>&nbsp;&nbsp;<button type="submit" name="submit" class="uk-button uk-button-primary"><?php _e( 'Save', 'easy-code-placement' ); ?></button>
     103    </form>
    110104
    111105</div>
  • easy-code-placement/trunk/inc/actions/settings.php

    r1512852 r1529213  
    11<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
    27
    38global $wpdb;
    49
    510// secure post data and set variables
    6 $_POST = stripslashes_deep ($_POST);
    7 $t_ecp_per_page = $_POST['perpage'];
    8 $t_ecp_role = $_POST['role'];
     11$_POST = stripslashes_deep( $_POST );
     12$t_ecp_per_page = $_POST[ 'perpage' ];
     13$t_ecp_role = $_POST[ 'role' ];
    914
    10 if ($t_ecp_per_page == "") {
     15if( $t_ecp_per_page == "" ) {
     16   
    1117    // when perpage is empty
    12     $ecp_error = __('The Option "Codes per Page" must be filled in', 'easy-code-placement');
     18    $ecp_error = __( 'The Option "Codes per Page" must be filled in', 'easy-code-placement' );
    1319    $ecp_error_page = "&load=settings";
    1420    $ecp_error_id = "";
    15     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     21    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    1622}
    1723
    18 if (!is_numeric($t_ecp_per_page)) {
     24if( !is_numeric( $t_ecp_per_page ) ) {
     25   
    1926    // when perpage not a number
    20     $ecp_error = __('The Value for the Option "Codes per Page" must be numeric', 'easy-code-placement');
     27    $ecp_error = __( 'The Value for the Option "Codes per Page" must be numeric', 'easy-code-placement' );
    2128    $ecp_error_page = "&load=settings";
    2229    $ecp_error_id = "";
    23     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     30    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    2431}
    2532
    26 $wpdb->update($wpdb->prefix.'ecp_options', array('option_value'=>$t_ecp_per_page), array('option_name'=>'perpage'));
    27 $wpdb->update($wpdb->prefix.'ecp_options', array('option_value'=>$t_ecp_role), array('option_name'=>'role'));
     33$wpdb->update( $wpdb->prefix . 'ecp_options', array( 'option_value' => $t_ecp_per_page ), array( 'option_name' => 'perpage' ) );
     34$wpdb->update( $wpdb->prefix . 'ecp_options', array( 'option_value' => $t_ecp_role ), array( 'option_name' => 'role' ) );
    2835
    2936// when added to database goto options page
    30 header('Location: options-general.php?page=ecp');
     37header( 'Location: options-general.php?page=ecp' );
    3138
    3239?>
  • easy-code-placement/trunk/inc/actions/status.php

    r1420409 r1529213  
    11<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
    27
    38global $wpdb;
    49
    510// secure get data and set variables
    6 $_GET = stripslashes_deep($_GET);
    7 $ecp_id = $_GET['ecpid'];
    8 $ecp_status = $_GET['status'];
     11$_GET = stripslashes_deep( $_GET );
     12$ecp_id = $_GET[ 'ecpid' ];
     13$ecp_status = $_GET[ 'status' ];
    914
    10 if (isset($_GET['pagenum'])) {
    11     $t_ecp_sendpage=$_GET['pagenum'];
    12     $ecp_sendpage='&pagenum='.$t_ecp_sendpage.'';
     15if( isset( $_GET[ 'pagenum' ] ) ) {
     16    $t_ecp_sendpage = $_GET[ 'pagenum' ];
     17    $ecp_sendpage = '&pagenum=' . $t_ecp_sendpage . '';
    1318}
    1419
    15 if ($ecp_id=="" || !is_numeric($ecp_id)) {
     20if( $ecp_id=="" || !is_numeric( $ecp_id )) {
     21   
    1622    // when get emty or other than numbers goto error page
    17     $ecp_error = __('Modifying of the ID is not allowed', 'easy-code-placement');
     23    $ecp_error = __( 'Modifying of the ID is not allowed', 'easy-code-placement' );
    1824    $ecp_error_page = "";
    1925    $ecp_error_id = "";
    20     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
    21 } elseif ($ecp_status !=="1" && $ecp_status !=="2") {
     26    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
     27}elseif( $ecp_status !=="1" && $ecp_status !=="2" ) {
     28   
    2229    // when get emty or other than numbers goto error page
    23     $ecp_error = __('Modifying of the Status to something else than 1 or 2 is not allowed', 'easy-code-placement');
     30    $ecp_error = __( 'Modifying of the Status to something else than 1 or 2 is not allowed', 'easy-code-placement' );
    2431    $ecp_error_page = "";
    2532    $ecp_error_id = "";
    26     return(ecp_error($ecp_error, $ecp_error_page, $ecp_error_id));
     33    return( ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) );
    2734}
    2835
    2936// change status   
    30 $wpdb->update($wpdb->prefix.'ecp_data', array('status'=>$ecp_status), array('id'=>$ecp_id));
     37$wpdb->update( $wpdb->prefix . 'ecp_data', array( 'status' => $ecp_status ), array( 'id' => $ecp_id ) );
    3138
    3239// when status changes goto options page
    33 header('Location: options-general.php?page=ecp'.$ecp_sendpage.'');
     40header( 'Location: options-general.php?page=ecp' . $ecp_sendpage . '' );
    3441
    3542?>
  • easy-code-placement/trunk/inc/css/style.css

    r1512852 r1529213  
    1 /* Override Bootstrap Vertikel Align for Table Cells */
    2 .table tbody>tr>td{
    3     vertical-align: middle !important;
     1html {
     2    background: #f1f1f1 !important;
     3    background-image: -webkit-radial-gradient(100% 100%,center,#f1f1f1,#f1f1f1) !important;
     4    background-image: radial-gradient(100% 100% at center,#f1f1f1,#f1f1f1) !important;
    45}
    56
    6 /* Override Bootstrap Design Reset with WP default */
    7 body {
    8     font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif !important;
     7.wrap {
     8    max-width: 1000px !important;
    99}
    10 
    11 /* Override Bootstrap Table Border */
    12 .borderless td, .borderless th {
    13     border: none !important;
    14 }
    15 
    16 /* Override Bootstrap Table Padding */
    17 .paddingless td, .paddingless th {
    18     padding: 0px !important;
    19 }
    20 
    21 /* Override Bootstrap Pagination Margin */
    22 .pagination {
    23     margin: 0px 0px !important;
    24 }
    25 
    26 /* Center Bootstrap Modals vertically */
    27 .vertical-alignment-helper {
    28     display:table;
    29     height: 100%;
    30     width: 100%;
    31 }
    32 .vertical-align-center {
    33     display: table-cell;
    34     vertical-align: middle;
    35 }
    36 .modal-content {
    37     width:inherit !important;
    38     height:inherit !important;
    39     margin: 0 auto !important;
    40 }
  • easy-code-placement/trunk/inc/error.php

    r1335072 r1529213  
     1<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8?>
     9
    110<div class="wrap">
    2 <h2>Easy Code Placement <?php _e('Error','easy-code-placement'); ?></h2>
     11<h2>Easy Code Placement <?php _e( 'Error', 'easy-code-placement' ); ?></h2>
    312<br>
    413
    514<table width="100%" border="0" cellspacing="0" cellpadding="6">   
    615    <tr>
    7         <td><h3><font color="#FF0000"><?php _e('Error','easy-code-placement'); ?>!</font></h3></td>
     16        <td><h3><font color="#FF0000"><?php _e( 'Error', 'easy-code-placement' ); ?>!</font></h3></td>
    817    </tr>
    918    <tr>
     
    1120    </tr>
    1221</table>
    13 <br><input type="button" class="button-secondary" value="<?php _e('Back','easy-code-placement'); ?>" onClick='document.location.href="<?php echo admin_url("options-general.php?page=ecp$ecp_error_page$ecp_error_id");?>"'>
     22<br><input type="button" class="button-secondary" value="<?php _e( 'Back', 'easy-code-placement' ); ?>" onClick='document.location.href="<?php echo admin_url( "options-general.php?page=ecp$ecp_error_page$ecp_error_id" ); ?>"'>
    1423
    1524</div>
  • easy-code-placement/trunk/inc/functions.php

    r1512852 r1529213  
    11<?php
    22
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8// ***********************
    39// check if role >= option
     10// ***********************
    411function ecp_check_role() {
    512    global $wpdb;
    6     $ecp_role = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'role'" );
    7     if (!current_user_can($ecp_role)) {
    8         wp_die("<h2>" . __('You don´t have the Permissions to access this Page. Please contact the Administrator.','easy-code-placement') . "</h2>");
    9     }
    10 }
    11 
     13    $ecp_role = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'role'" );
     14    if( !current_user_can( $ecp_role ) ) {
     15        wp_die( "<h2>" . __( 'You don´t have the Permissions to access this Page. Please contact the Administrator.', 'easy-code-placement' ) . "</h2>" );
     16    }
     17}
     18
     19// ****************************************
    1220// generate options menu if user is allowed
     21// ****************************************
    1322function ecp_add_page() {
    1423    global $wpdb;
    1524    global $ecp_settings_page;
    16     $ecp_role = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'role'" );
    17     $ecp_settings_page = add_options_page( __('Easy Code Placement', 'my-domain'), __('Easy Code Placement', 'my-domain'), $ecp_role, 'ecp', 'ecp' );
    18 }
    19 
     25    $ecp_role = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'role'" );
     26    $ecp_settings_page = add_options_page( __( 'Easy Code Placement', 'easy-code-placement' ), __( 'Easy Code Placement', 'easy-code-placement' ), $ecp_role, 'ecp', 'ecp' );
     27}
     28
     29// *******************
    2030// add options to menu
     31// *******************
    2132function ecp() {
    22     include ( dirname( __FILE__ ) . '/load.php' );
    23 }
    24 
     33    include( dirname( __FILE__ ) . '/load.php' );
     34}
     35
     36// **********
    2537// show error
    26 function ecp_error($ecp_error, $ecp_error_page, $ecp_error_id) {
    27     include ( dirname( __FILE__ ) . '/error.php' );
    28 }
    29 
     38// **********
     39function ecp_error( $ecp_error, $ecp_error_page, $ecp_error_id ) {
     40    include( dirname( __FILE__ ) . '/error.php' );
     41}
     42
     43// ***************************
    3044// replace shortcode with code
    31 add_shortcode('ecp','ecp_replace');
    32 function ecp_replace($ecp_code){
     45// ***************************
     46add_shortcode( 'ecp', 'ecp_replace' );
     47function ecp_replace( $ecp_code ) {
    3348    global $wpdb;
    34     $query = $wpdb->get_results($wpdb->prepare( "SELECT * FROM ".$wpdb->prefix."ecp_data WHERE name=%s" ,$ecp_code));
    35     if(count($query)>0){
    36     foreach ($query as $code_load){
     49    $query = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "ecp_data WHERE name=%s" ,$ecp_code ) );
     50    if( count( $query ) >0 ){
     51    foreach( $query as $code_load ) {
     52           
    3753            // when status is activ
    38             if($code_load->status === '1') {
     54            if( $code_load->status === '1' ) {
     55               
    3956                // allow php code
    40                 if (strpos($code_load->code, '<' . '?') !== false) {
     57                if( strpos( $code_load->code, '<' . '?' ) !== false ) {
    4158                    ob_start();
    42                     eval('?' . '>' . $code_load->code);
     59                    eval( '?' . '>' . $code_load->code );
    4360                    $code_load->code = ob_get_contents();
    4461                    ob_end_clean();
    45                 }             
     62                }
     63               
    4664                // set alignment
    47         if ($code_load->alignment === '0' OR $code_load->alignment === '') {
     65        if( $code_load->alignment === '0' OR $code_load->alignment === '' ) {
    4866                    $ecp_output = $code_load->code;
    49                 } elseif ($code_load->alignment === '1') {
     67                }elseif( $code_load->alignment === '1' ) {
    5068                    $ecp_output = "<p align='left'>" . $code_load->code . "</p>";
    51                 } elseif ($code_load->alignment === '2') {
     69                }elseif( $code_load->alignment === '2' ) {
    5270                    $ecp_output = "<p align='center'>" . $code_load->code . "</p>";
    53                 } elseif ($code_load->alignment === '3') {
     71                }elseif( $code_load->alignment === '3' ) {
    5472                    $ecp_output = "<p align='right'>" . $code_load->code . "</p>";
    5573                }
    5674                return $ecp_output;
     75               
    5776            // when status is deactive
    58             } else {
     77            }else{
    5978        return '';
    6079            }
    6180        }
    6281    }else{
     82       
    6383        // when shortcode not found
    6484    return '';
     
    6787}
    6888
    69 // update to 16.10
     89// ***************
     90// update to 16.11
     91// ***************
    7092function ecp_update(){
     93   
    7194    // multiside update
    72     if (is_multisite()) {
     95    if( is_multisite() ) {
    7396        global $wpdb;
    7497    $blog = $wpdb->blogid;
    75         $blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
    76         foreach ($blogids as $blogid) {
    77             switch_to_blog($blogid);
     98        $blogids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
     99        foreach( $blogids as $blogid ) {
     100            switch_to_blog( $blogid );
     101           
    78102            // if not updated yet to 3.2.1 still regenerate missing tables in multisite
    79103            ecp_install();
    80             $wpdb->query("UPDATE ".$wpdb->prefix."ecp_data SET version='16.10'");
    81             $wpdb->update($wpdb->prefix.'ecp_options', array( 'option_value' => '16.10' ), array( 'option_name' => 'version' ));
    82         }
    83     switch_to_blog($blog);
    84     } else {
     104            $wpdb->query( "UPDATE " . $wpdb->prefix . "ecp_data SET version='16.11'" );
     105            $wpdb->update( $wpdb->prefix . 'ecp_options', array( 'option_value' => '16.11' ), array( 'option_name' => 'version' ) );
     106        }
     107    switch_to_blog( $blog );
     108    }else{
     109       
    85110        // single update
    86111        global $wpdb;
    87         $wpdb->query("UPDATE ".$wpdb->prefix."ecp_data SET version='16.10'");
    88         $wpdb->update($wpdb->prefix.'ecp_options', array( 'option_value' => '16.10' ), array( 'option_name' => 'version' ));
    89     }
    90 }
    91 
     112        $wpdb->query( "UPDATE " . $wpdb->prefix . "ecp_data SET version='16.11'" );
     113        $wpdb->update( $wpdb->prefix . 'ecp_options', array( 'option_value' => '16.11' ), array( 'option_name' => 'version' ) );
     114    }
     115}
     116
     117// ***************
    92118// update function
     119// ***************
    93120function ecp_do_update(){
    94121global $wpdb;
    95 $ecp_options_version = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'version'" );
     122$ecp_options_version = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'version'" );
     123
    96124    // check if user is admin
    97     if (! is_admin()) {
     125    if( !is_admin() ) {
    98126        return;
     127       
    99128    // check if we use the current version
    100     } elseif ($ecp_options_version === '16.10') {
     129    }elseif( $ecp_options_version === '16.11' ) {
    101130        return;
     131       
    102132    // if user is admin and we have an old version do the update
    103     } else {
     133    }else{
    104134        ecp_update();
    105135        return;
     
    107137}
    108138
     139// ****************
    109140// class for widget
     141// ****************
    110142class ecp_widget extends WP_Widget {
     143   
    111144    // id, name, description
    112145    function __construct() {
     
    117150        );
    118151    }
     152   
    119153    // front-end
    120     public function widget($args,$instance) {
     154    public function widget( $args, $instance ) {
     155        global $wpdb;
     156        $query = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "ecp_data WHERE name=%s", $instance[ 'ecp_code' ] ) );
     157       
    121158        // when no code selected output nothing
    122         if ($instance['ecp_code'] === "nothing") {
     159        if( $instance[ 'ecp_code' ] === "nothing" ) {
    123160            echo '';
     161        }elseif( empty( $query ) ) {
     162            echo '';
     163           
    124164        // otherwise output ecp code
    125         } else {
     165        }else{
     166           
    126167            // output border and design?
    127             if ($instance['ecp_display'] != "1") {
    128                 if (array_key_exists('before_widget', $args)) echo $args['before_widget'];
    129             }
     168            if( $instance[ 'ecp_display' ] != "1" ) {
     169                if( array_key_exists( 'before_widget', $args ) ) echo $args[ 'before_widget' ];
     170            }
     171           
    130172            // output
    131             global $wpdb;
    132             $ecp_output = ecp_replace($instance['ecp_code']);
     173            $ecp_output = ecp_replace( $instance[ 'ecp_code' ] );
    133174            echo $ecp_output;
     175           
    134176            // output border and design?
    135             if ($instance['ecp_display'] != "1") {
    136                 if (array_key_exists('after_widget', $args)) echo $args['after_widget'];
    137             }
    138         }
    139     }
     177            if( $instance[ 'ecp_display' ] != "1" ) {
     178                if( array_key_exists( 'after_widget', $args ) ) echo $args[ 'after_widget' ];
     179            }
     180        }
     181    }
     182   
    140183    // back-end
    141184    public function form($instance) {
     185       
    142186        // load selected options er reset all
    143         if (empty($instance['ecp_code'])) {
     187        if( empty( $instance[ 'ecp_code' ] ) ) {
    144188            $instance['ecp_code'] = 'nothing';
    145189        }
    146         if (empty($instance['ecp_display'])) {
    147             $instance['ecp_display'] = '0';
     190        if( empty( $instance[ 'ecp_display' ] ) ) {
     191            $instance[ 'ecp_display' ] = '0';
    148192        }
    149193        ?>
     
    153197                <option value="nothing" <?php selected( $instance['ecp_code'], 'nothing'); ?>><?php _e( 'Please select a Code', 'easy-code-placement' ); ?></option>
    154198                <?php
     199               
    155200                // get codes
    156201                global $wpdb;
    157                 $ecp_codes = $wpdb->get_results( "SELECT name FROM {$wpdb->prefix}ecp_data" );
     202                $ecp_codes = $wpdb->get_results( "SELECT name FROM " . $wpdb->prefix . "ecp_data" );
     203               
    158204                // generate dropdown options
    159                 foreach($ecp_codes as $ecp_codeitem) {
    160                     $selected = selected( $instance['ecp_code'], $ecp_codeitem->name);
     205                foreach( $ecp_codes as $ecp_codeitem ) {
     206                    $selected = selected( $instance[ 'ecp_code' ], $ecp_codeitem->name );
    161207                    echo '<option value="' . $ecp_codeitem->name . '"' . $selected . '>' . $ecp_codeitem->name . '</option>';
    162208                    }
     
    165211        </p>
    166212        <p>
    167             <input class="checkbox" type="checkbox" value="1" <?php checked( '1', $instance['ecp_display'] ); ?> id="<?php echo $this->get_field_id('ecp_display'); ?>" name="<?php echo $this->get_field_name('ecp_display'); ?>">
    168             <label for="<?php echo $this->get_field_id('ecp_display'); ?>"><?php _e( 'Remove Borders and Design from Widget?', 'easy-code-placement' ); ?></label>
     213            <input class="checkbox" type="checkbox" value="1" <?php checked( '1', $instance[ 'ecp_display' ] ); ?> id="<?php echo $this->get_field_id( 'ecp_display' ); ?>" name="<?php echo $this->get_field_name( 'ecp_display' ); ?>">
     214            <label for="<?php echo $this->get_field_id( 'ecp_display' ); ?>"><?php _e( 'Remove Borders and Design from Widget?', 'easy-code-placement' ); ?></label>
    169215        </p>
    170216        <?php
     
    172218
    173219    // save selected code in back-end
    174     public function update($new_instance, $old_instance) {
     220    public function update( $new_instance, $old_instance ) {
    175221        $instance = array();
    176         $instance['ecp_code'] = $new_instance['ecp_code'];
    177         $instance['ecp_display'] = $new_instance['ecp_display'];
     222        $instance[ 'ecp_code' ] = $new_instance[ 'ecp_code' ];
     223        $instance[ 'ecp_display' ] = $new_instance[ 'ecp_display' ];
    178224        return $instance;
    179225    }
    180226}
    181227
     228// ***************
    182229// register widget
     230// ***************
    183231function ecp_register_widget() {
    184232    register_widget( 'ecp_widget' );
    185233}
    186234
    187 // add clipboard.js, font-awesome, bootstrap, jquery and own css and js to admin area
    188 function ecp_admin_enqueue($hook) {
     235// ********************************************************
     236// add clipboard.js, uikit and own css and js to admin area
     237// ********************************************************
     238function ecp_admin_enqueue( $hook ) {
     239   
    189240    // check if on content page
    190241    global $ecp_settings_page;
    191     if ( $hook != $ecp_settings_page ) {
     242    if( $hook != $ecp_settings_page ) {
    192243        return;
    193244    }
     245   
    194246    // add to wp
    195     wp_enqueue_script( 'ecp_admin_jquery', plugins_url('/ext/jquery-3.1.1.min.js' , __FILE__), array(), '3.1.1', false );
    196     wp_enqueue_script( 'ecp_admin_clipboard', plugins_url('/ext/clipboard.js-1.5.12/clipboard.min.js' , __FILE__), array(), '1.5.12', false );
    197     wp_enqueue_script( 'ecp_admin_bootstrap', plugins_url('/ext/bootstrap-3.3.7/js/bootstrap.min.js' , __FILE__), array(), '3.3.7', false );
    198     wp_enqueue_script( 'ecp_admin_js', plugins_url('/js/scripts.js' , __FILE__), array(), '16.10', true );
    199     wp_enqueue_style( 'ecp_admin_css', plugins_url('/css/style.css' , __FILE__), array(), '16.10', 'all' );
    200     wp_enqueue_style( 'ecp_admin_fontawesome', plugins_url('/ext/font-awesome-4.6.3/css/font-awesome.min.css' , __FILE__), array(), '4.6.3', 'all' );
    201     wp_enqueue_style( 'ecp_admin_bootstrap', plugins_url('/ext/bootstrap-3.3.7/css/bootstrap.min.css' , __FILE__), array(), '3.3.7', 'all' );
     247    wp_enqueue_script( 'ecp_admin_uikit_js', plugins_url( '/ext/uikit-2.27.1/js/uikit.min.js' , __FILE__ ), array( 'jquery' ), '2.27.1', false );
     248    wp_enqueue_script( 'ecp_admin_uikit_accordion_js', plugins_url( '/ext/uikit-2.27.1/js/components/accordion.min.js' , __FILE__ ), array( 'jquery' ), '2.27.1', false );
     249    wp_enqueue_script( 'ecp_admin_uikit_tooltip_js', plugins_url( '/ext/uikit-2.27.1/js/components/tooltip.min.js' , __FILE__ ), array( 'jquery' ), '2.27.1', false );
     250    wp_enqueue_script( 'ecp_admin_uikit_pagination_js', plugins_url( '/ext/uikit-2.27.1/js/components/pagination.min.js' , __FILE__ ), array( 'jquery' ), '2.27.1', false );
     251    wp_enqueue_script( 'ecp_admin_clipboard', plugins_url( '/ext/clipboard.js-1.5.12/clipboard.min.js', __FILE__ ), array( 'jquery' ), '1.5.12', false );
     252    wp_enqueue_script( 'ecp_admin_js', plugins_url( '/js/scripts.js', __FILE__ ), array( 'jquery' ), '16.10', true );
     253    wp_enqueue_style( 'ecp_admin_css', plugins_url( '/css/style.css', __FILE__ ), array(), '16.10', 'all' );
     254    wp_enqueue_style( 'ecp_admin_uikit_css', plugins_url( '/ext/uikit-2.27.1/css/uikit.gradient.min.css' , __FILE__ ), array(), '2.27.1', 'all' );
     255    wp_enqueue_style( 'ecp_admin_uikit_accordion_css', plugins_url( '/ext/uikit-2.27.1/css/components/accordion.gradient.min.css' , __FILE__ ), array(), '2.27.1', 'all' );
     256    wp_enqueue_style( 'ecp_admin_uikit_tooltip_css', plugins_url( '/ext/uikit-2.27.1/css/components/tooltip.gradient.min.css' , __FILE__ ), array(), '2.27.1', 'all' );
    202257}
    203258add_action( 'admin_enqueue_scripts', 'ecp_admin_enqueue' );
    204259
     260// **********
     261// info modal
     262// **********
     263function ecp_info_modal( $id ) {
     264    return "
     265    <script>
     266    jQuery('#info" . $id . "').appendTo('body');
     267    jQuery(document).on('click', '#infotrigger" . $id . "', infomodal_handler" . $id . ");
     268    function infomodal_handler" . $id . "(e)
     269    {
     270        console.log(e);
     271        var added" . $id . " = jQuery(this).data('added" . $id . "');
     272        var modified" . $id . " = jQuery(this).data('modified" . $id . "');
     273        jQuery('#info" . $id . "').on({
     274            'show.uk.modal':function(){
     275                jQuery('#added" . $id . "', jQuery(this)).text(added" . $id . ");
     276                jQuery('#modified" . $id . "', jQuery(this)).text(modified" . $id . ");
     277            }
     278        }).trigger('show.uk.modal');
     279    }
     280    </script>
     281
     282    <!-- Info Modal -->
     283    <div class='uk-modal' id='info" . $id . "'>
     284        <div class='uk-modal-dialog'>
     285            <h4 style='margin-bottom:5px;'>" . __( 'Added on', 'easy-code-placement' ) . ":</h4>
     286            <div id='added" . $id . "'></div><br>
     287            <h4 style='margin-bottom:5px;'>" . __( 'Last Modified on', 'easy-code-placement' ) . ":</h4>   
     288            <div id='modified" . $id . "'></div>
     289            <div class='uk-modal-footer uk-text-right'>
     290              <button type='button' class='uk-button uk-modal-close'>" . __( 'Close', 'easy-code-placement' ) . "</button>       
     291            </div>
     292        </div>
     293    </div>
     294    ";   
     295}
     296
     297// *************
     298// confirm modal
     299// *************
     300function ecp_confirm_modal( $id ) {
     301    return "
     302    <script>
     303    jQuery('#confirm" . $id . "').appendTo('body');
     304    jQuery(document).on('click', '#confirmtrigger" . $id . "', confirmmodal_handler" . $id . ");
     305    function confirmmodal_handler" . $id . "(e)
     306    {
     307        console.log(e);
     308        var href" . $id . " = jQuery(this).data('href" . $id . "');
     309        jQuery('#confirm" . $id . "').on({
     310            'show.uk.modal':function(){
     311                jQuery('#confirm" . $id . " a').attr('href', href" . $id . ");
     312            }
     313        }).trigger('show.uk.modal');
     314    }
     315    </script>
     316
     317    <!-- Confirm Modal -->
     318    <div class='uk-modal' id='confirm" . $id . "'>
     319        <div class='uk-modal-dialog'>
     320            " . __( 'Are you really sure you want to permanently delete this Shortcode?', 'easy-code-placement' ) . "
     321            <div class='uk-modal-footer uk-text-right'>
     322                <button type='button' class='uk-button uk-modal-close'>" . __( 'No!', 'easy-code-placement' ) . "</button>
     323                <a type='button' class='uk-button uk-button-danger' href='' target='_self'>" . __( 'Confirm', 'easy-code-placement' ) . "</a>
     324            </div>
     325        </div>
     326    </div>
     327    ";   
     328}
     329
    205330?>
  • easy-code-placement/trunk/inc/home.php

    r1512852 r1529213  
    11<?php
    22
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8// ********************************************
    39// setup pagination and get codes from database
     10// ********************************************
    411global $wpdb;
    5 $ecp_perpage = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'perpage'");
    6 $ecp_total_rows = $wpdb->get_var( "SELECT COUNT(`id`) FROM {$wpdb->prefix}ecp_data" );
    7 $ecp_pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
     12$ecp_perpage = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'perpage'" );
     13$ecp_total_rows = $wpdb->get_var( "SELECT COUNT( `id` ) FROM " . $wpdb->prefix . "ecp_data" );
     14$ecp_pagenum = isset( $_GET[ 'pagenum' ] ) ? absint( $_GET[ 'pagenum' ] ) : 1;
    815$ecp_calc = ( $ecp_pagenum - 1 ) * $ecp_perpage;
    9 $ecp_codes = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}ecp_data LIMIT $ecp_calc, $ecp_perpage" );
     16$ecp_codes = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "ecp_data LIMIT $ecp_calc, $ecp_perpage" );
    1017$ecp_num_pages = ceil( $ecp_total_rows / $ecp_perpage );
    11 $ecp_sendpage = '&pagenum='.$ecp_pagenum.'';
     18$ecp_sendpage = '&pagenum=' . $ecp_pagenum. '';
    1219$ecp_pagination = paginate_links( array(
    13     'base'               => add_query_arg( 'pagenum', '%#%' ),
    14     'format'             => '?pagenum=%#%',
    15     'total'              => $ecp_num_pages,
    16     'current'            => $ecp_pagenum,
    17     'prev_text'          => __('« Previous','easy-code-placement'),
    18     'next_text'          => __('Next »','easy-code-placement'),
    19     'type'               => 'array'
     20    'base'       => add_query_arg( 'pagenum', '%#%' ),
     21    'format'     => '?pagenum=%#%',
     22    'total'      => $ecp_num_pages,
     23    'current'    => $ecp_pagenum,
     24    'prev_text'  => __( '« Previous', 'easy-code-placement' ),
     25    'next_text'  => __( 'Next »', 'easy-code-placement' ),
     26    'type'       => 'array'
    2027    )
    2128);
     
    2431
    2532<!-- Table for Codes -->
    26 <table class="table table-striped table-hover table-bordered" style="max-width:1000px;margin-top:25px;">
     33<table class="uk-table uk-table-hover uk-table-striped">
    2734    <colgroup>
    2835        <col width="40%" />
     
    3946    <tbody>
    4047        <?php
     48       
    4149        // if codes in database
    42         if (!empty($ecp_codes)) {
     50        if( !empty( $ecp_codes ) ) {
     51           
    4352            // output codes to display
    44             foreach ( $ecp_codes as $ecp_code ) {
     53            foreach( $ecp_codes as $ecp_code ) {
    4554            ?>
    4655            <tr>
    47                 <td><?php echo $ecp_code->name; ?></td>
    48                 <td><a class="clipboard btn btn-default btn-sm" style="padding:6px 12px;" data-toggle="tooltip" data-placement="right" data-clipboard-text="[ecp code=&quot;<?php echo $ecp_code->shortcode; ?>&quot;]" href="#" title="<?php echo _e('Copy Shortcode to Clipboard','easy-code-placement'); ?>"><i class="fa fa-clipboard" style="height:14px;width:14px;"></i> <?php _e('Copy','easy-code-placement'); ?></a></td>
     56                <td class="uk-table-middle"><?php echo $ecp_code->name; ?></td>
     57                <td><button class="clipboard uk-button" data-uk-tooltip="{pos:'right'}" data-clipboard-text="[ecp code=&quot;<?php echo $ecp_code->shortcode; ?>&quot;]" href="#" title="<?php echo _e( 'Copy Shortcode to Clipboard', 'easy-code-placement' ); ?>"><i class="uk-icon-clipboard"></i> <?php _e( 'Copy', 'easy-code-placement' ); ?></button></td>
    4958                <td>
    5059                    <?php
     60                   
    5161                    // Status
    52                     if ($ecp_code->status === '1') {
    53                         ?><a class="btn btn-default" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=status&ecpid='.$ecp_code->id.'&status=2'.$ecp_sendpage.''); ?>" title="<?php echo _e('Online - Click to change','easy-code-placement'); ?>"><i class="fa fa-check" style="width:14px;color:green;"></i></a>&nbsp;&nbsp;<?php
    54                     } elseif ($ecp_code->status === '2') {
    55                         ?><a class="btn btn-default" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=status&ecpid='.$ecp_code->id.'&status=1'.$ecp_sendpage.''); ?>" title="<?php echo _e('Offline - Click to change','easy-code-placement'); ?>"><i class="fa fa-times" style="width:14px;color:red;"></i></a>&nbsp;&nbsp;<?php
     62                    if( $ecp_code->status === '1' ) {
     63                        ?><a class="uk-button" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=status&ecpid=' . $ecp_code->id . '&status=2'.$ecp_sendpage . '' ); ?>" title="<?php echo _e( 'Online - Click to change', 'easy-code-placement' ); ?>"><i class="uk-icon-check" style="width:14px;color:green;"></i></a>&nbsp;&nbsp;<?php
     64                    }elseif( $ecp_code->status === '2' ) {
     65                        ?><a class="uk-button" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=status&ecpid=' . $ecp_code->id . '&status=1'.$ecp_sendpage . '' ); ?>" title="<?php echo _e( 'Offline - Click to change', 'easy-code-placement' ); ?>"><i class="uk-icon-times" style="width:14px;color:red;"></i></a>&nbsp;&nbsp;<?php
    5666                    }
     67                   
    5768                    // Alignment
    58                     if ($ecp_code->alignment === '0') {
    59                         ?><a class="btn btn-default" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=alignment&ecpid='.$ecp_code->id.'&alignment=1'.$ecp_sendpage.''); ?>" title="<?php echo _e('No Alignment - Click to change','easy-code-placement'); ?>"><i class="fa fa-ban" style="width:14px;color:red;"></i></a>&nbsp;<?php
    60                     } elseif ($ecp_code->alignment === '1') {
    61                         ?><a class="btn btn-default" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=alignment&ecpid='.$ecp_code->id.'&alignment=2'.$ecp_sendpage.''); ?>" title="<?php echo _e('Alignment Left - Click to change','easy-code-placement'); ?>"><i class="fa fa-align-left" style="width:14px;"></i></a>&nbsp;<?php
    62                     } elseif ($ecp_code->alignment === '2') {
    63                         ?><a class="btn btn-default" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=alignment&ecpid='.$ecp_code->id.'&alignment=3'.$ecp_sendpage.''); ?>" title="<?php echo _e('Alignment Center - Click to change','easy-code-placement'); ?>"><i class="fa fa-align-center" style="width:14px;"></i></a>&nbsp;<?php
    64                     } elseif ($ecp_code->alignment === '3') {
    65                         ?><a class="btn btn-default" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=alignment&ecpid='.$ecp_code->id.'&alignment=0'.$ecp_sendpage.''); ?>" title="<?php echo _e('Alignment Right - Click to change','easy-code-placement'); ?>"><i class="fa fa-align-right" style="width:14px;"></i></a>&nbsp;<?php
     69                    if( $ecp_code->alignment === '0' ) {
     70                        ?><a class="uk-button" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=alignment&ecpid=' . $ecp_code->id . '&alignment=1'.$ecp_sendpage . '' ); ?>" title="<?php echo _e( 'No Alignment - Click to change', 'easy-code-placement' ); ?>"><i class="uk-icon-ban" style="width:14px;color:red;"></i></a>&nbsp;<?php
     71                    }elseif ( $ecp_code->alignment === '1' ) {
     72                        ?><a class="uk-button" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=alignment&ecpid=' . $ecp_code->id . '&alignment=2'.$ecp_sendpage . '' ); ?>" title="<?php echo _e( 'Alignment Left - Click to change', 'easy-code-placement' ); ?>"><i class="uk-icon-align-left"></i></a>&nbsp;<?php
     73                    }elseif ( $ecp_code->alignment === '2' ) {
     74                        ?><a class="uk-button" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=alignment&ecpid=' . $ecp_code->id . '&alignment=3'.$ecp_sendpage . '' ); ?>" title="<?php echo _e( 'Alignment Center - Click to change', 'easy-code-placement' ); ?>"><i class="uk-icon-align-center"></i></a>&nbsp;<?php
     75                    }elseif ( $ecp_code->alignment === '3' ) {
     76                        ?><a class="uk-button" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=alignment&ecpid=' . $ecp_code->id . '&alignment=0'.$ecp_sendpage . '' ); ?>" title="<?php echo _e( 'Alignment Right - Click to change', 'easy-code-placement' ); ?>"><i class="uk-icon-align-right"></i></a>&nbsp;<?php
    6677                    }?>
    6778                    <!-- Edit Button -->
    68                     <a class="btn btn-primary" data-toggle="tooltip" data-placement="right" href="<?php echo admin_url('options-general.php?page=ecp&load=edit&ecpid='.$ecp_code->id.''.$ecp_sendpage.''); ?>" title="<?php echo _e('Edit','easy-code-placement'); ?>"><i class="fa fa-cog" style="width:14px;"></i></a>&nbsp;
     79                    <a class="uk-button uk-button-primary" data-uk-tooltip="{pos:'right'}" href="<?php echo admin_url( 'options-general.php?page=ecp&load=edit&ecpid=' . $ecp_code->id . '' . $ecp_sendpage . '' ); ?>" title="<?php echo _e('Edit','easy-code-placement'); ?>"><i class="uk-icon-cog"></i></a>&nbsp;
    6980                    <!-- Delete Button -->
    70                     <button type="button" class="btn btn-danger" data-toggle="modal" data-target="#confirm" data-href="<?php echo admin_url('options-general.php?page=ecp&load=delete&ecpid='.$ecp_code->id); ?>"><i class="fa fa-trash" style="width:14px;"></i></button>
     81                    <button type="button" id="confirmtrigger<?php echo $ecp_code->id; ?>" class="uk-button uk-button-danger" data-uk-modal="{target:'#confirm<?php echo $ecp_code->id; ?>',center:true}" data-href<?php echo $ecp_code->id; ?>="<?php echo admin_url( 'options-general.php?page=ecp&load=delete&ecpid=' . $ecp_code->id ); ?>"><i class="uk-icon-trash"></i></button>
     82                    <?php echo ecp_confirm_modal( $ecp_code->id ); ?>
    7183                    <!-- Button for Info Modal -->
    72                     <button type="button" class="btn btn-default" data-toggle="modal" data-target="#info" data-added="<?php if( strtotime($ecp_code->added) > strtotime('2000-01-01 01:00:00') ) { echo date('d.m.Y - H:i', strtotime($ecp_code->added)); } else { echo "-";} ?>" data-modified="<?php if( strtotime($ecp_code->changed) > strtotime('2000-01-01 01:00:00') ) { echo date('d.m.Y - H:i', strtotime($ecp_code->changed)); } else { echo "-";} ?>"><i class="fa fa-info" style="width:14px;"></i></button>
     84                    <button type="button" id="infotrigger<?php echo $ecp_code->id; ?>" class="uk-button" data-uk-modal="{target:'#info<?php echo $ecp_code->id; ?>',center:true}" data-added<?php echo $ecp_code->id; ?>="<?php if( strtotime( $ecp_code->added ) > strtotime( '2000-01-01 01:00:00' ) ) { echo date( 'd.m.Y - H:i', strtotime( $ecp_code->added ) ); } else { echo "-";} ?>" data-modified<?php echo $ecp_code->id; ?>="<?php if( strtotime( $ecp_code->changed ) > strtotime( '2000-01-01 01:00:00' ) ) { echo date( 'd.m.Y - H:i', strtotime( $ecp_code->changed ) ); } else { echo "-"; } ?>"><i class="uk-icon-info"></i></button>
     85                    <?php echo ecp_info_modal( $ecp_code->id ); ?>
    7386                </td>
    7487            </tr>
    7588            <?php }
     89           
    7690        // if the database is empty   
    77         } else { ?>
    78             <tr><td colspan="3"><center><?php _e('No Code found - Click "Add New Code" to add one.','easy-code-placement'); ?></center></td></tr>
     91        }else{ ?>
     92            <tr><td colspan="3"><center><?php _e( 'No Code found - Click "Add New Code" to add one.', 'easy-code-placement' ); ?></center></td></tr>
    7993        <?php } ?>
    8094    </tbody>
     
    8296
    8397<!-- Pagination -->
    84 <table style="width:100%;max-width:1000px;">
     98<table style="width:100%;">
    8599    <tbody>
    86100        <tr>
    87             <td width="200px"><button type="button" class="btn btn-primary" onClick='document.location.href="<?php echo admin_url('options-general.php?page=ecp&load=add');?>"'><?php _e('Add New Code','easy-code-placement'); ?></button></td>
    88             <td align="right">
     101            <td width="200px"><button type="button" class="uk-button uk-button-primary" onClick='document.location.href="<?php echo admin_url( 'options-general.php?page=ecp&load=add' );?>"'><?php _e( 'Add New Code', 'easy-code-placement' ); ?></button></td>
     102            <td>
    89103                <?php
     104               
    90105                // output pagination
    91                 if (is_array($ecp_pagination)) {
    92                     echo '<ul class="pagination">';
    93                     foreach ($ecp_pagination as $i => $ecp_page) {
    94                         if ($ecp_pagenum == 1 && $i == 0) {
    95                             echo "<li class='active'>$ecp_page</li>";
    96                         } else {
    97                             if ($ecp_pagenum != 1 && $ecp_pagenum == $i) {
    98                                 echo "<li class='active'>$ecp_page</li>";
    99                             } else {
     106                if( is_array( $ecp_pagination ) ) {
     107                    echo '<ul class="uk-pagination uk-pagination-right">';
     108                    foreach( $ecp_pagination as $i => $ecp_page ) {
     109                        if( $ecp_pagenum == 1 && $i == 0 ) {
     110                            echo "<li class='uk-active'>$ecp_page</li>";
     111                        }else{
     112                            if( $ecp_pagenum != 1 && $ecp_pagenum == $i ) {
     113                                echo "<li class='uk-active'>$ecp_page</li>";
     114                            }else{
    100115                                echo "<li>$ecp_page</li>";
    101116                            }
     
    110125
    111126<!-- PayPal Donate Button -->
    112 <table style="max-width:1000px;margin-top:60px;">
     127<table style="margin-top:60px;">
    113128    <tbody>
    114129        <tr>
     
    121136                </form>
    122137            </td>
    123             <td><?php _e('If you want to thank the developer for this free Plugin, you are welcome to make a donation via PayPal (you don\'t need a PayPal account to make the donation).','easy-code-placement'); ?></td>
     138            <td><?php _e( 'If you want to thank the developer for this free Plugin, you are welcome to make a donation via PayPal (you don\'t need a PayPal account to make the donation).', 'easy-code-placement' ); ?></td>
    124139        </tr>
    125140    </tbody>
    126141</table>
    127 
    128 <!-- Info Modal -->
    129 <div class="modal fade" id="info" tabindex="-1">
    130     <div class="vertical-alignment-helper">
    131         <div class="modal-dialog modal-sm vertical-align-center">
    132             <div class="modal-content">
    133                 <div class="modal-body">
    134                     <h4 style="margin-bottom:5px;"><?php echo _e('Added on','easy-code-placement'); ?>:</h4>
    135                     <div id="added"></div><br>
    136                     <h4 style="margin-bottom:5px;"><?php echo _e('Last Modified on','easy-code-placement'); ?>:</h4>   
    137                     <div id="modified"></div>
    138                 </div>
    139                 <div class="modal-footer">
    140                   <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _e('Close','easy-code-placement'); ?></button>       
    141                 </div>
    142             </div>
    143         </div>
    144     </div>
    145 </div>
    146 
    147 <!-- Confirm Modal -->
    148 <div class="modal fade" id="confirm" tabindex="-1">
    149     <div class="vertical-alignment-helper">
    150         <div class="modal-dialog modal-sm vertical-align-center">
    151             <div class="modal-content">
    152                 <div class="modal-body">
    153                     <?php echo _e('Are you really sure you want to permanently delete this Shortcode?','easy-code-placement'); ?>
    154                 </div>
    155                 <div class="modal-footer">
    156                     <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _e('No!','easy-code-placement'); ?></button>
    157                     <a type="button" class="btn btn-danger" href="" target="_self"><?php echo _e('Confirm','easy-code-placement'); ?></a>
    158                 </div>
    159             </div>
    160         </div>
    161     </div>
    162 </div>
  • easy-code-placement/trunk/inc/install.php

    r1506547 r1529213  
    11<?php
    22
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8// ****************
    39// install function
     10// ****************
    411function ecp_install(){
    512    global $wpdb;
     13   
    614    // create data table
    7     $ecp_table = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."ecp_data (
     15    $ecp_table = "CREATE TABLE IF NOT EXISTS " . $wpdb->prefix . "ecp_data (
    816        `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
    917        `name` varchar(35) COLLATE utf8_unicode_ci NOT NULL,
     
    1624        `version` varchar(10) COLLATE utf8_unicode_ci NOT NULL
    1725        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1";
    18     $wpdb->query($ecp_table);
     26    $wpdb->query( $ecp_table );
     27   
    1928    // create options table
    20     $ecp_options = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."ecp_options (
     29    $ecp_options = "CREATE TABLE IF NOT EXISTS " . $wpdb->prefix . "ecp_options (
    2130        `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
    2231        `option_name` varchar(10) COLLATE utf8_unicode_ci NOT NULL UNIQUE,
    2332        `option_value` varchar(20) COLLATE utf8_unicode_ci NOT NULL
    2433        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1";
    25     $wpdb->query($ecp_options);
     34    $wpdb->query( $ecp_options );
     35   
    2636    // insert data (ignore for updates)
    27     $wpdb->query("INSERT IGNORE INTO ".$wpdb->prefix."ecp_options (option_name,option_value) VALUES ('version','".ECP_VERSION."')");
    28     $wpdb->query("INSERT IGNORE INTO ".$wpdb->prefix."ecp_options (option_name,option_value) VALUES ('perpage','10')");
    29     $wpdb->query("INSERT IGNORE INTO ".$wpdb->prefix."ecp_options (option_name,option_value) VALUES ('role','manage_options')");
     37    $wpdb->query( "INSERT IGNORE INTO " . $wpdb->prefix . "ecp_options ( option_name, option_value ) VALUES ( 'version', '" . ECP_VERSION . "' )" );
     38    $wpdb->query( "INSERT IGNORE INTO " . $wpdb->prefix . "ecp_options ( option_name, option_value ) VALUES ( 'perpage', '10' )" );
     39    $wpdb->query( "INSERT IGNORE INTO " . $wpdb->prefix . "ecp_options ( option_name, option_value ) VALUES ( 'role', 'manage_options' )" );
    3040}
    3141
     42// *********************************
    3243// multiside or single installation?
    33 function ecp_net_inst($networkwide) {
     44// *********************************
     45function ecp_net_inst( $networkwide ) {
    3446    global $wpdb;
     47   
    3548    // multiside installation
    36     if (is_multisite() && $networkwide) {
     49    if( is_multisite() && $networkwide ) {
    3750        $blog = $wpdb->blogid;
    38         $blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
    39         foreach ($blogids as $blogid) {
    40             switch_to_blog($blogid);
     51        $blogids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
     52        foreach ( $blogids as $blogid ) {
     53            switch_to_blog( $blogid );
    4154            ecp_install();
    4255        }
    43     switch_to_blog($blog);
    44     } else {
     56    switch_to_blog( $blog );
     57    }else{
     58       
    4559        // single installation 
    4660        ecp_install();
     
    4963
    5064// register install hook
    51 register_activation_hook ( ECP_FILE, 'ecp_net_inst' );
     65register_activation_hook( ECP_FILE, 'ecp_net_inst' );
    5266
     67// ****************************************************
    5368// add tables and data in it when a new blog is created
    54 function ecp_new_blog($blog_id) {
    55     if ( is_plugin_active_for_network( 'easy-code-placement/easy-code-placement.php' ) ) {
    56         switch_to_blog($blog_id);
     69// ****************************************************
     70function ecp_new_blog( $blog_id ) {
     71    if( is_plugin_active_for_network( 'easy-code-placement/easy-code-placement.php' ) ) {
     72        switch_to_blog( $blog_id );
    5773        ecp_install();
    5874        restore_current_blog();
     
    6177
    6278// tell wordpress what to do when adding a new blog
    63 add_action ( 'wpmu_new_blog', 'ecp_new_blog', 99 );
     79add_action( 'wpmu_new_blog', 'ecp_new_blog', 99 );
    6480
    6581?>
  • easy-code-placement/trunk/inc/js/scripts.js

    r1512852 r1529213  
    1 // Tooltip
    2 $(document).ready(function(){
    3     $('[data-toggle="tooltip"]').tooltip();
    4 });
    5 
     1// *********
    62// Clipboard
     3// *********
    74var clipboard = new Clipboard('.clipboard');
    85clipboard.on('success', function(e) {
     
    129    console.log(e);
    1310});
    14 
    15 // Info Modal
    16 $('#info').appendTo("body");
    17 $(document).ready(function () {
    18     $('#info').on('show.bs.modal', function (event) {
    19         var button = $(event.relatedTarget);
    20         var added = button.data('added');
    21         var modified = button.data('modified');
    22         var modal = $(this);
    23         modal.find('.modal-body #added').text(added);
    24         modal.find('.modal-body #modified').text(modified);
    25     });
    26 });
    27 
    28 // Confirm Modal
    29 $('#confirm').appendTo("body");
    30 $(document).ready(function () {
    31     $('#confirm').on('show.bs.modal', function (event) {
    32         var button = $(event.relatedTarget);
    33         var href = button.data('href');
    34         var modal = $(this);
    35         $("#confirm a").attr("href", href);
    36     });
    37 });
  • easy-code-placement/trunk/inc/load.php

    r1512852 r1529213  
    11<?php
    22
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8// ******************
    39// when get data load
    4 if (isset($_GET['load']) && !empty($_GET['load']) ) {
    5     switch($_GET['load']) {
     10// ******************
     11if( isset( $_GET[ 'load' ] ) && !empty( $_GET[ 'load' ] ) ) {
     12    switch( $_GET[ 'load' ] ) {
     13       
    614        // when delete load
    715        case "delete":
    816            include ( dirname( __FILE__ ) . '/actions/delete.php' );
    917        break;
     18   
    1019        // when edit load
    1120        case "edit":
    1221            include ( dirname( __FILE__ ) . '/actions/edit.php' );
    1322        break;
     23   
    1424        // when add load
    1525        case "add":
    1626            include ( dirname( __FILE__ ) . '/actions/add.php' );
    1727        break;
     28   
    1829        // when status load
    1930        case "status":
    2031            include ( dirname( __FILE__ ) . '/actions/status.php' );
    2132        break;
     33   
    2234        // when alignment load
    2335        case "alignment":
    2436            include ( dirname( __FILE__ ) . '/actions/alignment.php' );
    2537        break;
     38   
    2639        // when alignment load
    2740        case "settings":
     
    2942        break;
    3043    }
    31 } else {
    32     ?>
    33 
     44}else{
     45   
     46// *****************
     47// when nothing done
     48// *****************
     49?>
    3450    <div class="wrap">
    35         <h2><?php _e('Easy Code Placement','easy-code-placement'); ?></h2><br>
    36     <div style="max-width:1000px;">
    37         <ul class="nav nav-tabs">
    38             <li class="active"><a href="#home" data-toggle="tab"><?php _e('Home','easy-code-placement'); ?></a></li>
    39             <li><a href="#settings" data-toggle="tab"><?php _e('Settings','easy-code-placement'); ?></a></li>
    40             <li><a href="#help" data-toggle="tab"><?php _e('Help','easy-code-placement'); ?></a></li>
    41             <li><a href="#system" data-toggle="tab"><?php _e('System Information','easy-code-placement'); ?></a></li>
     51        <h2><?php _e( 'Easy Code Placement', 'easy-code-placement' ); ?></h2><br>
     52       
     53        <!-- tab navigation -->
     54        <ul class="uk-tab uk-margin-top" data-uk-tab="{connect:'#ecp-tabs'}">
     55            <li class="active"><a href=""><?php _e( 'Home', 'easy-code-placement' ); ?></a></li>         
     56            <li><a href=""><?php _e( 'Settings', 'easy-code-placement' ); ?></a></li>
     57            <li><a href=""><?php _e( 'Help', 'easy-code-placement' ); ?></a></li>
     58            <li><a href=""><?php _e( 'System Information', 'easy-code-placement' ); ?></a></li>
    4259        </ul>
    43         <div class="tab-content">
    44             <div class="tab-pane active" id="home"><?php include ( dirname( __FILE__ ) . '/home.php' ); ?></div>
    45             <div class="tab-pane" id="settings"><?php include ( dirname( __FILE__ ) . '/pages/settings.php' ); ?></div>
    46             <div class="tab-pane" id="help"><?php include ( dirname( __FILE__ ) . '/pages/help.php' ); ?></div>
    47             <div class="tab-pane" id="system"><?php include ( dirname( __FILE__ ) . '/pages/system.php' ); ?></div>
    48         </div>
    49     </div>
     60       
     61        <!-- tab content general -->
     62        <ul id="ecp-tabs" class="uk-switcher uk-margin">
     63            <li><?php include( dirname( __FILE__ ) . '/home.php' ); ?></li>
     64            <li><?php include( dirname( __FILE__ ) . '/pages/settings.php' ); ?></li>
     65            <li><?php include( dirname( __FILE__ ) . '/pages/help.php' ); ?></li>
     66            <li><?php include( dirname( __FILE__ ) . '/pages/system.php' ); ?></li>
     67        </ul>
     68       
    5069    </div>
    5170
  • easy-code-placement/trunk/inc/pages/help.php

    r1512852 r1529213  
    1 <div class="container" style="padding-left:0px;padding-right:0px;margin-top:25px;max-width:1000px;">
    2 <div class="panel-group" id="accordion">
    3     <div class="panel panel-default">
    4         <div class="panel-heading" id="q01">
    5             <h4 class="panel-title">
    6                 <a data-toggle="collapse" data-parent="#accordion" href="#a01">
    7                     <?php echo _e('Where do I get the Shortcode from?','easy-code-placement'); ?>
    8                 </a>
    9             </h4>
    10         </div>
    11         <div id="a01" class="panel-collapse collapse">
    12             <div class="panel-body">
    13                 <?php echo _e('You only need to Click on the "Copy" Button in the Row with your Shortcode you need. When you click on the Button the Shortcode is copied to your Clipoard. Now you only need to Press "Strg + V" on your Keyboard or Right-Click on your Mouse and click on "Insert" at the place you want to have the Shortcode.','easy-code-placement'); ?>
    14             </div>
    15         </div>
    16     </div>
    17     <div class="panel panel-default">
    18         <div class="panel-heading" id="q02">
    19             <h4 class="panel-title">
    20                 <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#a02">
    21                     <?php echo _e('The "Copy" Button don´t work or I want to write the Code manually!','easy-code-placement'); ?>
    22                 </a>
    23             </h4>
    24         </div>
    25         <div id="a02" class="panel-collapse collapse">
    26             <div class="panel-body">
    27                 <?php echo _e('Just type [ecp code="%PLACEHOLDER%"] at the place you want to have the Shortcode. Replace %PLACEHOLDER% with the Name of your Shortcode.','easy-code-placement'); ?>
    28             </div>
    29         </div>
    30     </div>
    31     <div class="panel panel-default">
    32         <div class="panel-heading" id="q03">
    33             <h4 class="panel-title">
    34                 <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#a03">
    35                     <?php echo _e('Where can I place the Shortcode?','easy-code-placement'); ?>
    36                 </a>
    37             </h4>
    38         </div>
    39         <div id="a03" class="panel-collapse collapse">
    40             <div class="panel-body">
    41                 <?php echo _e('At the moment you can place the Shortcode at the following Areas: Widget Title and Content, Title of Posts and Pages (only Text and without alignement), Content of Posts and Pages, Menu (in the Link-Text and the URL must be "#" if you dont want to link it somewhere), Tags and Excerpts.','easy-code-placement'); ?>
    42             </div>
    43         </div>
    44     </div>
     1<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8?>
     9
     10<div class="uk-accordion" data-uk-accordion>
     11    <h3 class="uk-accordion-title"><?php echo _e( 'Where do I get the Shortcode from?', 'easy-code-placement' ); ?></h3>
     12    <div class="uk-accordion-content"><?php echo _e( 'You only need to Click on the "Copy" Button in the Row with your Shortcode you need. When you click on the Button the Shortcode is copied to your Clipoard. Now you only need to Press "Strg + V" on your Keyboard or Right-Click on your Mouse and click on "Insert" at the place you want to have the Shortcode.', 'easy-code-placement' ); ?></div>
     13    <h3 class="uk-accordion-title"><?php echo _e( 'The "Copy" Button don´t work or I want to write the Code manually!', 'easy-code-placement' ); ?></h3>
     14    <div class="uk-accordion-content"><?php echo _e( 'Just type [ecp code="%PLACEHOLDER%"] at the place you want to have the Shortcode. Replace %PLACEHOLDER% with the Name of your Shortcode.', 'easy-code-placement' ); ?></div>
     15    <h3 class="uk-accordion-title"><?php echo _e( 'Where can I place the Shortcode?', 'easy-code-placement' ); ?></h3>
     16    <div class="uk-accordion-content"><?php echo _e( 'At the moment you can place the Shortcode at the following Areas: Widget Title and Content, Title of Posts and Pages (only Text and without alignement), Content of Posts and Pages, Menu (in the Link-Text and the URL must be "#" if you dont want to link it somewhere), Tags and Excerpts.', 'easy-code-placement' ); ?></div>
     17    <h3 class="uk-accordion-title"><?php echo _e( 'The Output doesn´t look right or it has a colored Background!', 'easy-code-placement' ); ?></h3>
     18    <div class="uk-accordion-content"><?php echo _e( 'Be sure to use the "Copy" Button to get your Shortcode or write in manually. Otherwise it can happen that you Copy HTML Code that´s around the Shortcode. You couldn´t see see it but you can Copy it!', 'easy-code-placement' ); ?></div>
    4519</div>
    46 </div>
  • easy-code-placement/trunk/inc/pages/settings.php

    r1512852 r1529213  
    1 <form method="post" action="<?php echo admin_url('options-general.php?page=ecp&load=settings'); ?>">
    2 <table class="table table-striped table-hover table-bordered" style="margin-top:25px;">
    3     <colgroup>
    4     <col width="25%" />
    5     <col width="75%" />
    6     </colgroup>
    7     <thead>
    8     <tr>
    9             <th><?php _e('Name','easy-code-placement'); ?></th>
    10             <th><?php _e('Value','easy-code-placement'); ?></th>
    11     </tr>
    12     </thead>
     1<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8?>
     9
     10<form method="post" action="<?php echo admin_url( 'options-general.php?page=ecp&load=settings' ); ?>">
     11<table class="uk-table">
    1312    <tbody>
    1413    <tr>
    15             <td><?php _e('Who can manage this Plugin?','easy-code-placement'); ?></td>
    16             <td>
     14            <td class="uk-width-1-4 uk-table-middle"><?php _e( 'Who can manage this Plugin?', 'easy-code-placement' ); ?></td>
     15            <td class="uk-width-3-4">
    1716                <?php
    1817                global $wpdb;
    19                 $ecp_role = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'role'");
     18                $ecp_role = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'role'" );
    2019                ?>
    21                 <select name="role" class="form-control">
    22                     <option <?php if ($ecp_role === 'manage_options') {echo 'selected';}; ?> value="manage_options"><?php _e('Adminstrators and higher','easy-code-placement'); ?></option>
    23                     <option <?php if ($ecp_role === 'manage_categories') {echo 'selected';}; ?> value="manage_categories"><?php _e('Editors and higher','easy-code-placement'); ?></option>
    24                     <option <?php if ($ecp_role === 'publish_posts') {echo 'selected';}; ?> value="publish_posts"><?php _e('Authors and higher','easy-code-placement'); ?></option>
    25                     <option <?php if ($ecp_role === 'edit_posts') {echo 'selected';}; ?> value="edit_posts"><?php _e('Contributors and higher','easy-code-placement'); ?></option>
     20                <select name="role">
     21                    <option <?php if( $ecp_role === 'manage_options' ) { echo 'selected'; }; ?> value="manage_options"><?php _e( 'Adminstrators and higher', 'easy-code-placement' ); ?></option>
     22                    <option <?php if( $ecp_role === 'manage_categories' ) { echo 'selected'; }; ?> value="manage_categories"><?php _e( 'Editors and higher', 'easy-code-placement' ); ?></option>
     23                    <option <?php if( $ecp_role === 'publish_posts' ) { echo 'selected'; }; ?> value="publish_posts"><?php _e( 'Authors and higher', 'easy-code-placement' ); ?></option>
     24                    <option <?php if( $ecp_role === 'edit_posts' ) { echo 'selected'; }; ?> value="edit_posts"><?php _e( 'Contributors and higher', 'easy-code-placement' ); ?></option>
    2625                </select>
    2726            </td>
    2827    </tr>
    2928        <tr>
    30             <td><?php _e('Codes per Page','easy-code-placement'); ?></td>
    31             <td>
     29            <td class="uk-width-1-4 uk-table-middle"><?php _e( 'Codes per Page', 'easy-code-placement' ); ?></td>
     30            <td class="uk-width-3-4">
    3231                <?php
    3332                global $wpdb;
    34                 $ecp_per_page = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'perpage'");
     33                $ecp_per_page = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'perpage'" );
    3534                ?>
    36                 <input type="text" class="form-control" name="perpage" value="<?php echo $ecp_per_page; ?>" size="10" maxlength="2">
     35                <input type="text" name="perpage" value="<?php echo $ecp_per_page; ?>" size="10" maxlength="2">
    3736            </td>
    3837    </tr>
    3938    </tbody>
    4039</table>
    41 <br><button type="submit" name="submit" class="btn btn-primary"><?php _e('Save','easy-code-placement'); ?></button>
     40<br><button type="submit" name="submit" class="uk-button uk-button-primary"><?php _e( 'Save', 'easy-code-placement' ); ?></button>
    4241</form>
  • easy-code-placement/trunk/inc/pages/system.php

    r1512852 r1529213  
     1<?php
     2
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8?>
     9
    110<h3><?php _e('General','easy-code-placement'); ?></h3>
    2 <table class="table table-striped table-hover table-bordered" style="max-width:1000px;">
    3     <colgroup>
    4     <col width="25%" />
    5     <col width="75%" />
    6     </colgroup>
    7     <thead>
    8     <tr>
    9             <th><?php _e('Name','easy-code-placement'); ?></th>
    10             <th><?php _e('Value','easy-code-placement'); ?></th>
    11     </tr>
    12     </thead>
     11<table class="uk-table">
    1312    <tbody>
    1413    <tr>
    15             <td><?php _e('PHP Version','easy-code-placement'); ?></td>
    16             <td><?php echo PHP_VERSION; ?></td>
     14            <td class="uk-width-1-4"><?php _e( 'PHP Version', 'easy-code-placement' ); ?></td>
     15            <td class="uk-width-3-4"><?php echo PHP_VERSION; ?></td>
    1716    </tr>
    1817        <tr>
    19             <td><?php _e('MySQL Version','easy-code-placement'); ?></td>
    20             <td><?php
    21                     if (isset($GLOBALS['wpdb']->dbh->server_info)) {
    22             echo $GLOBALS['wpdb']->dbh->server_info;
    23                     } else if (function_exists('mysql_get_server_info')) {
     18            <td class="uk-width-1-4"><?php _e( 'MySQL Version', 'easy-code-placement' ); ?></td>
     19            <td class="uk-width-3-4"><?php
     20                    if( isset( $GLOBALS[ 'wpdb' ]->dbh->server_info ) ) {
     21            echo $GLOBALS[ 'wpdb' ]->dbh->server_info;
     22                    }else if( function_exists( 'mysql_get_server_info' ) ) {
    2423            echo mysql_get_server_info();
    25                     } else {
    26                         _e('Error','easy-code-placement');
     24                    }else{
     25                        _e( 'Error', 'easy-code-placement' );
    2726                    }
    2827        ?>
     
    3029        </tr>
    3130    <tr>
    32             <td><?php _e('WordPress Version','easy-code-placement'); ?></td>
    33             <td><?php echo get_bloginfo ('version'); ?></td>
     31            <td class="uk-width-1-4"><?php _e( 'WordPress Version', 'easy-code-placement' ); ?></td>
     32            <td class="uk-width-3-4"><?php echo get_bloginfo ( 'version' ); ?></td>
    3433    </tr>
    3534    <tr>
    36             <td><?php _e('WordPress Network Page','easy-code-placement'); ?></td>
    37             <td><?php
    38                     if (is_multisite()) {
    39                         _e('Yes','easy-code-placement');
    40                     } else {
    41                         _e('No','easy-code-placement');
     35            <td class="uk-width-1-4"><?php _e( 'WordPress Network Page', 'easy-code-placement' ); ?></td>
     36            <td class="uk-width-3-4"><?php
     37                    if( is_multisite() ) {
     38                        _e( 'Yes', 'easy-code-placement' );
     39                    }else{
     40                        _e( 'No', 'easy-code-placement' );
    4241                    }
    4342                ?>
     
    4544    </tr>
    4645    <tr>
    47             <td><?php _e('Plugin Version (File)','easy-code-placement'); ?></td>
    48             <td><?php echo ECP_VERSION; ?></td>
     46            <td class="uk-width-1-4"><?php _e( 'Plugin Version (File)', 'easy-code-placement' ); ?></td>
     47            <td class="uk-width-3-4"><?php echo ECP_VERSION; ?></td>
    4948    </tr>
    5049    <tr>
    51             <td><?php _e('Plugin Version (Database)','easy-code-placement'); ?></td>
    52             <td><?php
     50            <td class="uk-width-1-4"><?php _e( 'Plugin Version (Database)', 'easy-code-placement' ); ?></td>
     51            <td class="uk-width-3-4"><?php
    5352                    global $wpdb;
    54                     $ecp_options_version = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'version'");
    55                     if ($ecp_options_version === '') {
    56                         _e('Error','easy-code-placement');
    57                     } else {
     53                    $ecp_options_version = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'version'" );
     54                    if( $ecp_options_version === '' ) {
     55                        _e( 'Error', 'easy-code-placement' );
     56                    }else{
    5857                        echo $ecp_options_version;
    5958                    }
     
    6261    </tr>
    6362    <tr>
    64             <td><?php _e('Role','easy-code-placement'); ?></td>
    65             <td><?php
     63            <td class="uk-width-1-4"><?php _e( 'Role', 'easy-code-placement' ); ?></td>
     64            <td class="uk-width-3-4"><?php
    6665                    global $wpdb;
    67                     $ecp_options_role = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'role'");
    68                     if ($ecp_options_role === '') {
    69                         _e('Error','easy-code-placement');
    70                     } else {
     66                    $ecp_options_role = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'role'" );
     67                    if( $ecp_options_role === '' ) {
     68                        _e( 'Error', 'easy-code-placement' );
     69                    }else{
    7170                        echo $ecp_options_role;
    7271                    }
     
    7574    </tr>
    7675        <tr>
    77             <td><?php _e('Codes per Page','easy-code-placement'); ?></td>
    78             <td><?php
     76            <td class="uk-width-1-4"><?php _e( 'Codes per Page' ,'easy-code-placement' ); ?></td>
     77            <td class="uk-width-3-4"><?php
    7978                    global $wpdb;
    80                     $ecp_per_page = $wpdb->get_var("SELECT option_value FROM ".$wpdb->prefix."ecp_options WHERE option_name = 'perpage'");
    81                     if ($ecp_per_page === '') {
    82                         _e('Error','easy-code-placement');
    83                     } else {
     79                    $ecp_per_page = $wpdb->get_var( "SELECT option_value FROM " . $wpdb->prefix . "ecp_options WHERE option_name = 'perpage'" );
     80                    if( $ecp_per_page === '' ) {
     81                        _e( 'Error', 'easy-code-placement' );
     82                    }else{
    8483                        echo $ecp_per_page;
    8584                    }
     
    9089</table>
    9190
    92 <h3><?php _e('Configuration','easy-code-placement'); ?></h3>
    93 <table class="table table-striped table-hover table-bordered" style="max-width:1000px;">
    94     <colgroup>
    95     <col width="25%" />
    96     <col width="75%" />
    97     </colgroup>
    98     <thead>
    99     <tr>
    100             <th><?php _e('Name','easy-code-placement'); ?></th>
    101             <th><?php _e('Value','easy-code-placement'); ?></th>
    102     </tr>
    103     </thead>
     91<h3><?php _e( 'Configuration', 'easy-code-placement' ); ?></h3>
     92<table class="uk-table">
    10493    <tbody>
    10594    <tr>
    106             <td><?php _e('PHP max. execution time','easy-code-placement'); ?></td>
    107             <td><?php
    108                 if (function_exists('ini_get')) {
    109                     echo ini_get('max_execution_time').'s';
    110                 } else {
    111                     _e('Error','easy-code-placement');
     95            <td class="uk-width-1-4"><?php _e( 'PHP max. execution time', 'easy-code-placement' ); ?></td>
     96            <td class="uk-width-3-4"><?php
     97                if( function_exists( 'ini_get' ) ) {
     98                    echo ini_get( 'max_execution_time' ) . 's';
     99                }else{
     100                    _e( 'Error', 'easy-code-placement' );
    112101                } ?>
    113102            </td>
    114103    </tr>
    115104    <tr>
    116             <td><?php _e('PHP memory limit','easy-code-placement'); ?></td>
    117             <td><?php
    118                 if (function_exists('ini_get')) {
    119                     echo ini_get('memory_limit').'B';
    120                 } else {
    121                     _e('Error','easy-code-placement');
     105            <td class="uk-width-1-4"><?php _e( 'PHP memory limit', 'easy-code-placement' ); ?></td>
     106            <td class="uk-width-3-4"><?php
     107                if( function_exists( 'ini_get' ) ) {
     108                    echo ini_get( 'memory_limit' ) . 'B';
     109                }else{
     110                    _e( 'Error', 'easy-code-placement' );
    122111                } ?>
    123112            </td>
    124113    </tr>
    125114    <tr>
    126             <td><?php _e('WordPress memory limit','easy-code-placement'); ?></td>
    127             <td><?php echo WP_MEMORY_LIMIT; ?>B</td>
     115            <td class="uk-width-1-4"><?php _e( 'WordPress memory limit', 'easy-code-placement' ); ?></td>
     116            <td class="uk-width-3-4"><?php echo WP_MEMORY_LIMIT; ?>B</td>
    128117    </tr>
    129118    </tbody>
    130119</table>
    131120
    132 <h3><?php _e('Paths','easy-code-placement'); ?></h3>
    133 <table class="table table-striped table-hover table-bordered" style="max-width:1000px;">
    134     <colgroup>
    135         <col width="25%" />
    136     <col width="75%" />
    137     </colgroup>
    138     <thead>
    139     <tr>
    140             <th><?php _e('Name','easy-code-placement'); ?></th>
    141             <th><?php _e('Value','easy-code-placement'); ?></th>
    142     </tr>
    143     </thead>
     121<h3><?php _e( 'Paths', 'easy-code-placement' ); ?></h3>
     122<table class="uk-table">
    144123    <tbody>
    145124    <tr>
    146             <td><?php _e('Home URL','easy-code-placement'); ?></td>
    147             <td class="code"><?php echo home_url(); ?></td>
     125            <td class="uk-width-1-4"><?php _e( 'Home URL', 'easy-code-placement' ); ?></td>
     126            <td class="uk-width-3-4"><?php echo home_url(); ?></td>
    148127    </tr>
    149128    <tr>
    150             <td><?php _e('Site URL','easy-code-placement'); ?></td>
    151             <td class="code"><?php echo site_url(); ?></td>
     129            <td class="uk-width-1-4"><?php _e( 'Site URL', 'easy-code-placement' ); ?></td>
     130            <td class="uk-width-3-4"><?php echo site_url(); ?></td>
    152131    </tr>
    153132    <tr>
    154             <td><?php _e('Plugin URL','easy-code-placement'); ?></td>
    155             <td class="code"><?php echo plugins_url(); ?></td>
     133            <td class="uk-width-1-4"><?php _e( 'Plugin URL', 'easy-code-placement' ); ?></td>
     134            <td class="uk-width-3-4"><?php echo plugins_url(); ?></td>
    156135    </tr>
    157136    </tbody>
  • easy-code-placement/trunk/inc/uninstall.php

    r1501662 r1529213  
    11<?php
    22
     3// *******************
     4// block direct access
     5// *******************
     6ecp_check_access();
     7
     8// ******************
    39// uninstall function
     10// ******************
    411function ecp_uninstall(){
    512    global $wpdb;
     13   
    614    // delete tables
    7     $wpdb->query("DROP TABLE ".$wpdb->prefix."ecp_data");
    8     $wpdb->query("DROP TABLE ".$wpdb->prefix."ecp_options");
     15    $wpdb->query( "DROP TABLE " . $wpdb->prefix . "ecp_data" );
     16    $wpdb->query( "DROP TABLE " . $wpdb->prefix . "ecp_options" );
    917}
    1018
     19// ******************************
    1120// multiside or single uninstall?
     21// ******************************
    1222function ecp_net_uninstall() {
    13     global $wpdb; 
     23    global $wpdb;
     24   
    1425    // multiside uninstallation
    15     if (is_multisite()) {
     26    if( is_multisite() ) {
    1627    $blog = $wpdb->blogid;
    17         $blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
    18         foreach ($blogids as $blogid) {
    19             switch_to_blog($blogid);
     28        $blogids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
     29        foreach( $blogids as $blogid ) {
     30            switch_to_blog( $blogid );
    2031            ecp_uninstall();
    2132        }
    22     switch_to_blog($blog);
    23     } else {
     33    switch_to_blog( $blog );
     34    }else{
     35       
    2436    // single uninstallation   
    2537    ecp_uninstall();
     
    2840
    2941// register uninstall hook
    30 register_uninstall_hook ( ECP_FILE, 'ecp_net_uninstall' );
     42register_uninstall_hook( ECP_FILE, 'ecp_net_uninstall' );
    3143
     44// *********************************************
    3245// delete tables and data when a blog is deleted
    33 function ecp_deleted_blog($tables) {
     46// *********************************************
     47function ecp_deleted_blog( $tables ) {
    3448    global $wpdb;
    35     $tables[] = $wpdb->prefix.'ecp_options';
    36     $tables[] = $wpdb->prefix.'ecp_data';
     49    $tables[] = $wpdb->prefix . 'ecp_options';
     50    $tables[] = $wpdb->prefix . 'ecp_data';
    3751    return $tables;
    3852}
    39 add_filter ( 'wpmu_drop_tables', 'ecp_deleted_blog', 99 );
     53add_filter( 'wpmu_drop_tables', 'ecp_deleted_blog', 99 );
    4054
    4155?>
  • easy-code-placement/trunk/lang/easy-code-placement-de_DE.po

    r1512852 r1529213  
    33"Project-Id-Version: Easy Code Placement\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2016-10-10 23:29+0200\n"
    6 "PO-Revision-Date: 2016-10-10 23:29+0200\n"
     5"POT-Creation-Date: 2016-11-06 15:12+0100\n"
     6"PO-Revision-Date: 2016-11-06 15:12+0100\n"
    77"Last-Translator: Jens Herdy <[email protected]>\n"
    88"Language-Team: \n"
     
    1313"Plural-Forms: nplurals=2; plural=n != 1;\n"
    1414"X-Poedit-SourceCharset: UTF-8\n"
    15 "X-Generator: Poedit 1.8.9\n"
     15"X-Generator: Poedit 1.8.11\n"
    1616"X-Poedit-Basepath: ..\n"
    1717"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
     
    2424"X-Poedit-SearchPathExcluded-0: inc/ext\n"
    2525
    26 #: inc/actions/add.php:17 inc/actions/add.php:72
     26#: inc/actions/add.php:24 inc/actions/add.php:81
    2727msgid "A maximum of 30 Characters is allowed"
    2828msgstr "Maximal 30 Zeichen sind erlaubt"
    2929
    30 #: inc/actions/add.php:25
     30#: inc/actions/add.php:33
    3131msgid "Special Characters are not allowed in the Code Name"
    3232msgstr "Sonderzeichen sind im Code Namen nicht erlaubt"
    3333
    34 #: inc/actions/add.php:33
     34#: inc/actions/add.php:42
    3535msgid "The Code Name and / or the Code must be filled in"
    3636msgstr "Der Code Name und / oder der Code müssen ausgefüllt werden"
    3737
    38 #: inc/actions/add.php:42
     38#: inc/actions/add.php:52
    3939msgid "The Code Name already exist - It must be uniqe"
    4040msgstr "Der Name existiert bereits - Er muss einmalig sein"
    4141
    42 #: inc/actions/add.php:59
     42#: inc/actions/add.php:72
    4343msgid "New Code"
    4444msgstr "Code hinzufügen"
    4545
    46 #: inc/actions/add.php:67 inc/actions/edit.php:69 inc/home.php:34
    47 #: inc/pages/settings.php:9 inc/pages/system.php:9 inc/pages/system.php:100
    48 #: inc/pages/system.php:140
     46#: inc/actions/add.php:76 inc/actions/edit.php:78 inc/home.php:41
    4947msgid "Name"
    5048msgstr "Name"
    5149
    52 #: inc/actions/add.php:70
     50#: inc/actions/add.php:79
    5351msgid "Only Letters and Numbers are allowed"
    5452msgstr "Nur Buchstaben und Zahlen sind erlaubt"
    5553
    56 #: inc/actions/add.php:71
     54#: inc/actions/add.php:80
    5755msgid "Instead of Whitesspaces use Underlines"
    5856msgstr "Anstelle von Leerzeichen sind Unterstriche zu benutzen"
    5957
    60 #: inc/actions/add.php:80 inc/actions/edit.php:78
     58#: inc/actions/add.php:85 inc/actions/edit.php:83
    6159msgid "Code"
    6260msgstr "Code"
    6361
    64 #: inc/actions/add.php:88 inc/actions/edit.php:86
     62#: inc/actions/add.php:89 inc/actions/edit.php:87
    6563msgid "Alignment"
    6664msgstr "Ausrichtung"
    6765
    68 #: inc/actions/add.php:90 inc/actions/edit.php:88
     66#: inc/actions/add.php:91 inc/actions/edit.php:89
    6967msgid "None"
    7068msgstr "Keine"
    7169
    72 #: inc/actions/add.php:91 inc/actions/edit.php:89
     70#: inc/actions/add.php:92 inc/actions/edit.php:90
    7371msgid "Left"
    7472msgstr "Links"
    7573
    76 #: inc/actions/add.php:92 inc/actions/edit.php:90
     74#: inc/actions/add.php:93 inc/actions/edit.php:91
    7775msgid "Center"
    7876msgstr "Zentriert"
    7977
    80 #: inc/actions/add.php:93 inc/actions/edit.php:91
     78#: inc/actions/add.php:94 inc/actions/edit.php:92
    8179msgid "Right"
    8280msgstr "Rechts"
    8381
    84 #: inc/actions/add.php:101 inc/actions/edit.php:99
     82#: inc/actions/add.php:98 inc/actions/edit.php:96
    8583msgid "Status"
    8684msgstr "Status"
    8785
    88 #: inc/actions/add.php:103 inc/actions/edit.php:101
     86#: inc/actions/add.php:100 inc/actions/edit.php:98
    8987msgid "Online"
    9088msgstr "Online"
    9189
    92 #: inc/actions/add.php:104 inc/actions/edit.php:102
     90#: inc/actions/add.php:101 inc/actions/edit.php:99
    9391msgid "Offline"
    9492msgstr "Offline"
    9593
    96 #: inc/actions/add.php:110 inc/actions/edit.php:108 inc/error.php:13
     94#: inc/actions/add.php:104 inc/actions/edit.php:102 inc/error.php:22
    9795msgid "Back"
    9896msgstr "Zurück"
    9997
    100 #: inc/actions/add.php:110
     98#: inc/actions/add.php:104
    10199msgid "Add"
    102100msgstr "Hinzufügen"
    103101
    104 #: inc/actions/alignment.php:17 inc/actions/delete.php:11
    105 #: inc/actions/edit.php:22 inc/actions/edit.php:51 inc/actions/status.php:17
     102#: inc/actions/alignment.php:23 inc/actions/delete.php:17
     103#: inc/actions/edit.php:30 inc/actions/edit.php:64 inc/actions/status.php:23
    106104msgid "Modifying of the ID is not allowed"
    107105msgstr "Das verändern der ID ist nicht erlaubt"
    108106
    109 #: inc/actions/alignment.php:23
     107#: inc/actions/alignment.php:30
    110108msgid ""
    111109"Modifying the Alignment to something else than 0, 1, 2 or 3 is not allowed"
     
    114112"erlaubt"
    115113
    116 #: inc/actions/edit.php:30
     114#: inc/actions/edit.php:39
    117115msgid "The Code must be filled in"
    118116msgstr "Es muss ein Code eingegeben werden"
    119117
    120 #: inc/actions/edit.php:61
     118#: inc/actions/edit.php:74
    121119msgid "Edit Code"
    122120msgstr "Code bearbeiten"
    123121
    124 #: inc/actions/edit.php:108 inc/pages/settings.php:41
     122#: inc/actions/edit.php:102 inc/pages/settings.php:40
    125123msgid "Save"
    126124msgstr "Speichern"
    127125
    128 #: inc/actions/settings.php:12
     126#: inc/actions/settings.php:18
    129127msgid "The Option \"Codes per Page\" must be filled in"
    130128msgstr "Die Option \"Codes pro Seite\" muss ausgefüllt werden"
    131129
    132 #: inc/actions/settings.php:20
     130#: inc/actions/settings.php:27
    133131msgid "The Value for the Option \"Codes per Page\" must be numeric"
    134132msgstr "Die Wert der Option \"Codes pro Seite\" muss numerisch sein"
    135133
    136 #: inc/actions/status.php:23
     134#: inc/actions/status.php:30
    137135msgid "Modifying of the Status to something else than 1 or 2 is not allowed"
    138136msgstr ""
    139137"Das verändern des Status zu etwas anderem als 1 oder 2 ist nicht erlaubt"
    140138
    141 #: inc/error.php:2 inc/error.php:7 inc/pages/system.php:26
    142 #: inc/pages/system.php:56 inc/pages/system.php:69 inc/pages/system.php:82
    143 #: inc/pages/system.php:111 inc/pages/system.php:121
     139#: inc/error.php:11 inc/error.php:16 inc/pages/system.php:25
     140#: inc/pages/system.php:55 inc/pages/system.php:68 inc/pages/system.php:81
     141#: inc/pages/system.php:100 inc/pages/system.php:110
    144142msgid "Error"
    145143msgstr "Fehler"
    146144
    147 #: inc/functions.php:8
     145#: inc/functions.php:15
    148146msgid ""
    149147"You don´t have the Permissions to access this Page. Please contact the "
     
    153151"kontaktiere den Administrator."
    154152
    155 #: inc/functions.php:17 inc/functions.php:115 inc/load.php:35
     153#: inc/functions.php:26 inc/functions.php:148 inc/load.php:51
    156154msgid "Easy Code Placement"
    157155msgstr "Easy Code Placement"
    158156
    159 #: inc/functions.php:116
     157#: inc/functions.php:149
    160158msgid "Add a Code wherever you want it."
    161159msgstr "Füge einen Code ein wo immer du möchtest."
    162160
    163 #: inc/functions.php:151
     161#: inc/functions.php:195
    164162msgid "Code to Display:"
    165163msgstr "Code der angezeigt werden soll:"
    166164
    167 #: inc/functions.php:153
     165#: inc/functions.php:197
    168166msgid "Please select a Code"
    169167msgstr "Bitte wähle einen Code aus"
    170168
    171 #: inc/functions.php:168
     169#: inc/functions.php:214
    172170msgid "Remove Borders and Design from Widget?"
    173171msgstr "Rahmen und Design vom Widget entfernen?"
    174172
    175 #: inc/home.php:17
     173#: inc/home.php:24
    176174msgid "« Previous"
    177175msgstr "« Vorherige"
    178176
    179 #: inc/home.php:18
     177#: inc/home.php:25
    180178msgid "Next »"
    181179msgstr "Nächste »"
    182180
    183 #: inc/home.php:35
     181#: inc/home.php:42
    184182msgid "Shortcode"
    185183msgstr "Shortcode"
    186184
    187 #: inc/home.php:36
     185#: inc/home.php:43
    188186msgid "Action"
    189187msgstr "Aktion"
    190188
    191 #: inc/home.php:48
     189#: inc/home.php:57
    192190msgid "Copy Shortcode to Clipboard"
    193191msgstr "Kopiere Shortcode in die Zwischenablage"
    194192
    195 #: inc/home.php:48
     193#: inc/home.php:57
    196194msgid "Copy"
    197195msgstr "Kopieren"
    198196
    199 #: inc/home.php:53
     197#: inc/home.php:63
    200198msgid "Online - Click to change"
    201199msgstr "Online - Klicke um dies zu ändern"
    202200
    203 #: inc/home.php:55
     201#: inc/home.php:65
    204202msgid "Offline - Click to change"
    205203msgstr "Offline - Klicke um dies zu ändern"
    206204
    207 #: inc/home.php:59
     205#: inc/home.php:70
    208206msgid "No Alignment - Click to change"
    209207msgstr "Keine Ausrichtung - Klicke um dies zu ändern"
    210208
    211 #: inc/home.php:61
     209#: inc/home.php:72
    212210msgid "Alignment Left - Click to change"
    213211msgstr "Ausrichtung links - Klicke um dies zu ändern"
    214212
    215 #: inc/home.php:63
     213#: inc/home.php:74
    216214msgid "Alignment Center - Click to change"
    217215msgstr "Ausrichtung zentriert - Klicke um dies zu ändern"
    218216
    219 #: inc/home.php:65
     217#: inc/home.php:76
    220218msgid "Alignment Right - Click to change"
    221219msgstr "Ausrichtung rechts - Klicke um dies zu ändern"
    222220
    223 #: inc/home.php:68
     221#: inc/home.php:79
    224222msgid "Edit"
    225223msgstr "Bearbeiten"
    226224
    227 #: inc/home.php:78
     225#: inc/home.php:90
    228226msgid "No Code found - Click \"Add New Code\" to add one."
    229227msgstr ""
     
    231229"hinzuzufügen."
    232230
    233 #: inc/home.php:87
     231#: inc/home.php:99
    234232msgid "Add New Code"
    235233msgstr "Neuen Code hinzufügen"
    236234
    237 #: inc/home.php:123
     235#: inc/home.php:136
    238236msgid ""
    239237"If you want to thank the developer for this free Plugin, you are welcome to "
     
    245243"benötigt)."
    246244
    247 #: inc/home.php:134
     245#: inc/home.php:144
    248246msgid "Added on"
    249247msgstr "Hinzugefügt am"
    250248
    251 #: inc/home.php:136
     249#: inc/home.php:146
    252250msgid "Last Modified on"
    253251msgstr "Zuletzt geändert am"
    254252
    255 #: inc/home.php:140
     253#: inc/home.php:149
    256254msgid "Close"
    257255msgstr "Schließen"
    258256
    259 #: inc/home.php:153
     257#: inc/home.php:157
    260258msgid "Are you really sure you want to permanently delete this Shortcode?"
    261259msgstr ""
    262260"Bist du wirklich sicher das du den Shortcode für immer löschen möchtest?"
    263261
    264 #: inc/home.php:156
     262#: inc/home.php:159
    265263msgid "No!"
    266264msgstr "Nein!"
    267265
    268 #: inc/home.php:157
     266#: inc/home.php:160
    269267msgid "Confirm"
    270268msgstr "Bestätigen"
    271269
    272 #: inc/load.php:38
     270#: inc/load.php:55
    273271msgid "Home"
    274272msgstr "Übersicht"
    275273
    276 #: inc/load.php:39
     274#: inc/load.php:56
    277275msgid "Settings"
    278276msgstr "Einstellungen"
    279277
    280 #: inc/load.php:40
     278#: inc/load.php:57
    281279msgid "Help"
    282280msgstr "Hilfe"
    283281
    284 #: inc/load.php:41
     282#: inc/load.php:58
    285283msgid "System Information"
    286284msgstr "System Informationen"
    287285
    288 #: inc/pages/help.php:7
     286#: inc/pages/help.php:11
    289287msgid "Where do I get the Shortcode from?"
    290288msgstr "Wo bekomme ich den Shortcode her?"
    291289
    292 #: inc/pages/help.php:13
     290#: inc/pages/help.php:12
    293291msgid ""
    294292"You only need to Click on the \"Copy\" Button in the Row with your Shortcode "
     
    305303"\"Einfügen\" auswählen."
    306304
    307 #: inc/pages/help.php:21
     305#: inc/pages/help.php:13
    308306msgid "The \"Copy\" Button don´t work or I want to write the Code manually!"
    309307msgstr ""
     
    311309"eingeben!"
    312310
    313 #: inc/pages/help.php:27
     311#: inc/pages/help.php:14
    314312msgid ""
    315313"Just type [ecp code=\"%PLACEHOLDER%\"] at the place you want to have the "
     
    320318"Shortcodes."
    321319
    322 #: inc/pages/help.php:35
     320#: inc/pages/help.php:15
    323321msgid "Where can I place the Shortcode?"
    324322msgstr "Wo kann ich den Shortcode platzieren?"
    325323
    326 #: inc/pages/help.php:41
     324#: inc/pages/help.php:16
    327325msgid ""
    328326"At the moment you can place the Shortcode at the following Areas: Widget "
     
    337335"Schlagwörter und Auszüge."
    338336
    339 #: inc/pages/settings.php:10 inc/pages/system.php:10 inc/pages/system.php:101
    340 #: inc/pages/system.php:141
    341 msgid "Value"
    342 msgstr "Wert"
    343 
    344 #: inc/pages/settings.php:15
     337#: inc/pages/help.php:17
     338msgid "The Output doesn´t look right or it has a colored Background!"
     339msgstr ""
     340"Die Ausgabe sieht nicht richtig aus oder hat einen farbigen Hintergrund!"
     341
     342#: inc/pages/help.php:18
     343msgid ""
     344"Be sure to use the \"Copy\" Button to get your Shortcode or write in "
     345"manually. Otherwise it can happen that you Copy HTML Code that´s around the "
     346"Shortcode. You couldn´t see see it but you can Copy it!"
     347msgstr ""
     348"Stell bitte sicher das du den \"Kopieren\" Button verwendest oder den "
     349"Shortcode selber schreibst. Andernfalls kann es passieren das du HTML Code "
     350"kopierst der um den Shortcode herum liegt. Du kannst ihn nicht sehen aber du "
     351"kannst ihn kopieren!"
     352
     353#: inc/pages/settings.php:14
    345354msgid "Who can manage this Plugin?"
    346355msgstr "Wer kann dieses Plugin verwalten?"
    347356
    348 #: inc/pages/settings.php:22
     357#: inc/pages/settings.php:21
    349358msgid "Adminstrators and higher"
    350359msgstr "Administratoren und höher"
    351360
    352 #: inc/pages/settings.php:23
     361#: inc/pages/settings.php:22
    353362msgid "Editors and higher"
    354363msgstr "Redakteure und höher"
    355364
    356 #: inc/pages/settings.php:24
     365#: inc/pages/settings.php:23
    357366msgid "Authors and higher"
    358367msgstr "Autoren und höher"
    359368
    360 #: inc/pages/settings.php:25
     369#: inc/pages/settings.php:24
    361370msgid "Contributors and higher"
    362371msgstr "Mitarbeiter und höher"
    363372
    364 #: inc/pages/settings.php:30 inc/pages/system.php:77
     373#: inc/pages/settings.php:29 inc/pages/system.php:76
    365374msgid "Codes per Page"
    366375msgstr "Codes pro Seite"
    367376
    368 #: inc/pages/system.php:1
     377#: inc/pages/system.php:10
    369378msgid "General"
    370379msgstr "Allgemein"
    371380
    372 #: inc/pages/system.php:15
     381#: inc/pages/system.php:14
    373382msgid "PHP Version"
    374383msgstr "PHP Version"
    375384
    376 #: inc/pages/system.php:19
     385#: inc/pages/system.php:18
    377386msgid "MySQL Version"
    378387msgstr "MySQL Version"
    379388
    380 #: inc/pages/system.php:32
     389#: inc/pages/system.php:31
    381390msgid "WordPress Version"
    382391msgstr "WordPress Version"
    383392
    384 #: inc/pages/system.php:36
     393#: inc/pages/system.php:35
    385394msgid "WordPress Network Page"
    386395msgstr "WordPress Netzwerk Seite"
    387396
    388 #: inc/pages/system.php:39
     397#: inc/pages/system.php:38
    389398msgid "Yes"
    390399msgstr "Ja"
    391400
    392 #: inc/pages/system.php:41
     401#: inc/pages/system.php:40
    393402msgid "No"
    394403msgstr "Nein"
    395404
    396 #: inc/pages/system.php:47
     405#: inc/pages/system.php:46
    397406msgid "Plugin Version (File)"
    398407msgstr "Plugin Version (Datei)"
    399408
    400 #: inc/pages/system.php:51
     409#: inc/pages/system.php:50
    401410msgid "Plugin Version (Database)"
    402411msgstr "Plugin Version (Datenbank)"
    403412
    404 #: inc/pages/system.php:64
     413#: inc/pages/system.php:63
    405414msgid "Role"
    406415msgstr "Rolle"
    407416
    408 #: inc/pages/system.php:92
     417#: inc/pages/system.php:91
    409418msgid "Configuration"
    410419msgstr "Konfiguration"
    411420
    412 #: inc/pages/system.php:106
     421#: inc/pages/system.php:95
    413422msgid "PHP max. execution time"
    414423msgstr "PHP max. Ausführungszeit"
    415424
    416 #: inc/pages/system.php:116
     425#: inc/pages/system.php:105
    417426msgid "PHP memory limit"
    418427msgstr "PHP Speicherlimit"
    419428
    420 #: inc/pages/system.php:126
     429#: inc/pages/system.php:115
    421430msgid "WordPress memory limit"
    422431msgstr "WordPress Speicherlimit"
    423432
    424 #: inc/pages/system.php:132
     433#: inc/pages/system.php:121
    425434msgid "Paths"
    426435msgstr "Pfade"
    427436
    428 #: inc/pages/system.php:146
     437#: inc/pages/system.php:125
    429438msgid "Home URL"
    430439msgstr "Home URL"
    431440
    432 #: inc/pages/system.php:150
     441#: inc/pages/system.php:129
    433442msgid "Site URL"
    434443msgstr "Seiten URL"
    435444
    436 #: inc/pages/system.php:154
     445#: inc/pages/system.php:133
    437446msgid "Plugin URL"
    438447msgstr "Plugin URL"
     448
     449#~ msgid "Value"
     450#~ msgstr "Wert"
    439451
    440452#~ msgid ""
  • easy-code-placement/trunk/lang/easy-code-placement.pot

    r1512852 r1529213  
    55"Project-Id-Version: Easy Code Placement\n"
    66"Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2016-10-10 23:29+0200\n"
     7"POT-Creation-Date: 2016-11-06 15:12+0100\n"
    88"POT-Revision-Date: Thu May 19 2016 17:08:44 GMT+0200 (Mitteleuropäische "
    99"Sommerzeit)\n"
     
    2222"esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;esc_html_x:1,2c;"
    2323"comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
    24 "X-Generator: Poedit 1.8.9\n"
     24"X-Generator: Poedit 1.8.11\n"
    2525"X-Poedit-SearchPath-0: .\n"
    2626"X-Poedit-SearchPathExcluded-0: inc/ext\n"
    2727
    28 #: inc/actions/add.php:17 inc/actions/add.php:72
     28#: inc/actions/add.php:24 inc/actions/add.php:81
    2929msgid "A maximum of 30 Characters is allowed"
    3030msgstr ""
    3131
    32 #: inc/actions/add.php:25
     32#: inc/actions/add.php:33
    3333msgid "Special Characters are not allowed in the Code Name"
    3434msgstr ""
    3535
    36 #: inc/actions/add.php:33
     36#: inc/actions/add.php:42
    3737msgid "The Code Name and / or the Code must be filled in"
    3838msgstr ""
    3939
    40 #: inc/actions/add.php:42
     40#: inc/actions/add.php:52
    4141msgid "The Code Name already exist - It must be uniqe"
    4242msgstr ""
    4343
    44 #: inc/actions/add.php:59
     44#: inc/actions/add.php:72
    4545msgid "New Code"
    4646msgstr ""
    4747
    48 #: inc/actions/add.php:67 inc/actions/edit.php:69 inc/home.php:34
    49 #: inc/pages/settings.php:9 inc/pages/system.php:9 inc/pages/system.php:100
    50 #: inc/pages/system.php:140
     48#: inc/actions/add.php:76 inc/actions/edit.php:78 inc/home.php:41
    5149msgid "Name"
    5250msgstr ""
    5351
    54 #: inc/actions/add.php:70
     52#: inc/actions/add.php:79
    5553msgid "Only Letters and Numbers are allowed"
    5654msgstr ""
    5755
    58 #: inc/actions/add.php:71
     56#: inc/actions/add.php:80
    5957msgid "Instead of Whitesspaces use Underlines"
    6058msgstr ""
    6159
    62 #: inc/actions/add.php:80 inc/actions/edit.php:78
     60#: inc/actions/add.php:85 inc/actions/edit.php:83
    6361msgid "Code"
    6462msgstr ""
    6563
    66 #: inc/actions/add.php:88 inc/actions/edit.php:86
     64#: inc/actions/add.php:89 inc/actions/edit.php:87
    6765msgid "Alignment"
    6866msgstr ""
    6967
    70 #: inc/actions/add.php:90 inc/actions/edit.php:88
     68#: inc/actions/add.php:91 inc/actions/edit.php:89
    7169msgid "None"
    7270msgstr ""
    7371
    74 #: inc/actions/add.php:91 inc/actions/edit.php:89
     72#: inc/actions/add.php:92 inc/actions/edit.php:90
    7573msgid "Left"
    7674msgstr ""
    7775
    78 #: inc/actions/add.php:92 inc/actions/edit.php:90
     76#: inc/actions/add.php:93 inc/actions/edit.php:91
    7977msgid "Center"
    8078msgstr ""
    8179
    82 #: inc/actions/add.php:93 inc/actions/edit.php:91
     80#: inc/actions/add.php:94 inc/actions/edit.php:92
    8381msgid "Right"
    8482msgstr ""
    8583
     84#: inc/actions/add.php:98 inc/actions/edit.php:96
     85msgid "Status"
     86msgstr ""
     87
     88#: inc/actions/add.php:100 inc/actions/edit.php:98
     89msgid "Online"
     90msgstr ""
     91
    8692#: inc/actions/add.php:101 inc/actions/edit.php:99
    87 msgid "Status"
    88 msgstr ""
    89 
    90 #: inc/actions/add.php:103 inc/actions/edit.php:101
    91 msgid "Online"
    92 msgstr ""
    93 
    94 #: inc/actions/add.php:104 inc/actions/edit.php:102
    9593msgid "Offline"
    9694msgstr ""
    9795
    98 #: inc/actions/add.php:110 inc/actions/edit.php:108 inc/error.php:13
     96#: inc/actions/add.php:104 inc/actions/edit.php:102 inc/error.php:22
    9997msgid "Back"
    10098msgstr ""
    10199
    102 #: inc/actions/add.php:110
     100#: inc/actions/add.php:104
    103101msgid "Add"
    104102msgstr ""
    105103
    106 #: inc/actions/alignment.php:17 inc/actions/delete.php:11 inc/actions/edit.php:22
    107 #: inc/actions/edit.php:51 inc/actions/status.php:17
     104#: inc/actions/alignment.php:23 inc/actions/delete.php:17 inc/actions/edit.php:30
     105#: inc/actions/edit.php:64 inc/actions/status.php:23
    108106msgid "Modifying of the ID is not allowed"
    109107msgstr ""
    110108
    111 #: inc/actions/alignment.php:23
     109#: inc/actions/alignment.php:30
    112110msgid "Modifying the Alignment to something else than 0, 1, 2 or 3 is not allowed"
    113111msgstr ""
    114112
    115 #: inc/actions/edit.php:30
     113#: inc/actions/edit.php:39
    116114msgid "The Code must be filled in"
    117115msgstr ""
    118116
    119 #: inc/actions/edit.php:61
     117#: inc/actions/edit.php:74
    120118msgid "Edit Code"
    121119msgstr ""
    122120
    123 #: inc/actions/edit.php:108 inc/pages/settings.php:41
     121#: inc/actions/edit.php:102 inc/pages/settings.php:40
    124122msgid "Save"
    125123msgstr ""
    126124
    127 #: inc/actions/settings.php:12
     125#: inc/actions/settings.php:18
    128126msgid "The Option \"Codes per Page\" must be filled in"
    129127msgstr ""
    130128
    131 #: inc/actions/settings.php:20
     129#: inc/actions/settings.php:27
    132130msgid "The Value for the Option \"Codes per Page\" must be numeric"
    133131msgstr ""
    134132
    135 #: inc/actions/status.php:23
     133#: inc/actions/status.php:30
    136134msgid "Modifying of the Status to something else than 1 or 2 is not allowed"
    137135msgstr ""
    138136
    139 #: inc/error.php:2 inc/error.php:7 inc/pages/system.php:26 inc/pages/system.php:56
    140 #: inc/pages/system.php:69 inc/pages/system.php:82 inc/pages/system.php:111
    141 #: inc/pages/system.php:121
     137#: inc/error.php:11 inc/error.php:16 inc/pages/system.php:25
     138#: inc/pages/system.php:55 inc/pages/system.php:68 inc/pages/system.php:81
     139#: inc/pages/system.php:100 inc/pages/system.php:110
    142140msgid "Error"
    143141msgstr ""
    144142
    145 #: inc/functions.php:8
     143#: inc/functions.php:15
    146144msgid ""
    147145"You don´t have the Permissions to access this Page. Please contact the "
     
    149147msgstr ""
    150148
    151 #: inc/functions.php:17 inc/functions.php:115 inc/load.php:35
     149#: inc/functions.php:26 inc/functions.php:148 inc/load.php:51
    152150msgid "Easy Code Placement"
    153151msgstr ""
    154152
    155 #: inc/functions.php:116
     153#: inc/functions.php:149
    156154msgid "Add a Code wherever you want it."
    157155msgstr ""
    158156
    159 #: inc/functions.php:151
     157#: inc/functions.php:195
    160158msgid "Code to Display:"
    161159msgstr ""
    162160
    163 #: inc/functions.php:153
     161#: inc/functions.php:197
    164162msgid "Please select a Code"
    165163msgstr ""
    166164
    167 #: inc/functions.php:168
     165#: inc/functions.php:214
    168166msgid "Remove Borders and Design from Widget?"
    169167msgstr ""
    170168
    171 #: inc/home.php:17
     169#: inc/home.php:24
    172170msgid "« Previous"
    173171msgstr ""
    174172
    175 #: inc/home.php:18
     173#: inc/home.php:25
    176174msgid "Next »"
    177175msgstr ""
    178176
    179 #: inc/home.php:35
     177#: inc/home.php:42
    180178msgid "Shortcode"
    181179msgstr ""
    182180
    183 #: inc/home.php:36
     181#: inc/home.php:43
    184182msgid "Action"
    185183msgstr ""
    186184
    187 #: inc/home.php:48
     185#: inc/home.php:57
    188186msgid "Copy Shortcode to Clipboard"
    189187msgstr ""
    190188
    191 #: inc/home.php:48
     189#: inc/home.php:57
    192190msgid "Copy"
    193191msgstr ""
    194192
    195 #: inc/home.php:53
     193#: inc/home.php:63
    196194msgid "Online - Click to change"
    197195msgstr ""
    198196
    199 #: inc/home.php:55
     197#: inc/home.php:65
    200198msgid "Offline - Click to change"
    201199msgstr ""
    202200
    203 #: inc/home.php:59
     201#: inc/home.php:70
    204202msgid "No Alignment - Click to change"
    205203msgstr ""
    206204
    207 #: inc/home.php:61
     205#: inc/home.php:72
    208206msgid "Alignment Left - Click to change"
    209207msgstr ""
    210208
    211 #: inc/home.php:63
     209#: inc/home.php:74
    212210msgid "Alignment Center - Click to change"
    213211msgstr ""
    214212
    215 #: inc/home.php:65
     213#: inc/home.php:76
    216214msgid "Alignment Right - Click to change"
    217215msgstr ""
    218216
    219 #: inc/home.php:68
     217#: inc/home.php:79
    220218msgid "Edit"
    221219msgstr ""
    222220
    223 #: inc/home.php:78
     221#: inc/home.php:90
    224222msgid "No Code found - Click \"Add New Code\" to add one."
    225223msgstr ""
    226224
    227 #: inc/home.php:87
     225#: inc/home.php:99
    228226msgid "Add New Code"
    229227msgstr ""
    230228
    231 #: inc/home.php:123
     229#: inc/home.php:136
    232230msgid ""
    233231"If you want to thank the developer for this free Plugin, you are welcome to "
     
    236234msgstr ""
    237235
    238 #: inc/home.php:134
     236#: inc/home.php:144
    239237msgid "Added on"
    240238msgstr ""
    241239
    242 #: inc/home.php:136
     240#: inc/home.php:146
    243241msgid "Last Modified on"
    244242msgstr ""
    245243
    246 #: inc/home.php:140
     244#: inc/home.php:149
    247245msgid "Close"
    248246msgstr ""
    249247
    250 #: inc/home.php:153
     248#: inc/home.php:157
    251249msgid "Are you really sure you want to permanently delete this Shortcode?"
    252250msgstr ""
    253251
    254 #: inc/home.php:156
     252#: inc/home.php:159
    255253msgid "No!"
    256254msgstr ""
    257255
    258 #: inc/home.php:157
     256#: inc/home.php:160
    259257msgid "Confirm"
    260258msgstr ""
    261259
    262 #: inc/load.php:38
     260#: inc/load.php:55
    263261msgid "Home"
    264262msgstr ""
    265263
    266 #: inc/load.php:39
     264#: inc/load.php:56
    267265msgid "Settings"
    268266msgstr ""
    269267
    270 #: inc/load.php:40
     268#: inc/load.php:57
    271269msgid "Help"
    272270msgstr ""
    273271
    274 #: inc/load.php:41
     272#: inc/load.php:58
    275273msgid "System Information"
    276274msgstr ""
    277275
    278 #: inc/pages/help.php:7
     276#: inc/pages/help.php:11
    279277msgid "Where do I get the Shortcode from?"
    280278msgstr ""
    281279
    282 #: inc/pages/help.php:13
     280#: inc/pages/help.php:12
    283281msgid ""
    284282"You only need to Click on the \"Copy\" Button in the Row with your Shortcode "
     
    289287msgstr ""
    290288
    291 #: inc/pages/help.php:21
     289#: inc/pages/help.php:13
    292290msgid "The \"Copy\" Button don´t work or I want to write the Code manually!"
    293291msgstr ""
    294292
    295 #: inc/pages/help.php:27
     293#: inc/pages/help.php:14
    296294msgid ""
    297295"Just type [ecp code=\"%PLACEHOLDER%\"] at the place you want to have the "
     
    299297msgstr ""
    300298
    301 #: inc/pages/help.php:35
     299#: inc/pages/help.php:15
    302300msgid "Where can I place the Shortcode?"
    303301msgstr ""
    304302
    305 #: inc/pages/help.php:41
     303#: inc/pages/help.php:16
    306304msgid ""
    307305"At the moment you can place the Shortcode at the following Areas: Widget Title "
     
    311309msgstr ""
    312310
    313 #: inc/pages/settings.php:10 inc/pages/system.php:10 inc/pages/system.php:101
    314 #: inc/pages/system.php:141
    315 msgid "Value"
    316 msgstr ""
    317 
    318 #: inc/pages/settings.php:15
     311#: inc/pages/help.php:17
     312msgid "The Output doesn´t look right or it has a colored Background!"
     313msgstr ""
     314
     315#: inc/pages/help.php:18
     316msgid ""
     317"Be sure to use the \"Copy\" Button to get your Shortcode or write in manually. "
     318"Otherwise it can happen that you Copy HTML Code that´s around the Shortcode. "
     319"You couldn´t see see it but you can Copy it!"
     320msgstr ""
     321
     322#: inc/pages/settings.php:14
    319323msgid "Who can manage this Plugin?"
    320324msgstr ""
    321325
     326#: inc/pages/settings.php:21
     327msgid "Adminstrators and higher"
     328msgstr ""
     329
    322330#: inc/pages/settings.php:22
    323 msgid "Adminstrators and higher"
     331msgid "Editors and higher"
    324332msgstr ""
    325333
    326334#: inc/pages/settings.php:23
    327 msgid "Editors and higher"
     335msgid "Authors and higher"
    328336msgstr ""
    329337
    330338#: inc/pages/settings.php:24
    331 msgid "Authors and higher"
    332 msgstr ""
    333 
    334 #: inc/pages/settings.php:25
    335339msgid "Contributors and higher"
    336340msgstr ""
    337341
    338 #: inc/pages/settings.php:30 inc/pages/system.php:77
     342#: inc/pages/settings.php:29 inc/pages/system.php:76
    339343msgid "Codes per Page"
    340344msgstr ""
    341345
    342 #: inc/pages/system.php:1
     346#: inc/pages/system.php:10
    343347msgid "General"
    344348msgstr ""
    345349
    346 #: inc/pages/system.php:15
     350#: inc/pages/system.php:14
    347351msgid "PHP Version"
    348352msgstr ""
    349353
    350 #: inc/pages/system.php:19
     354#: inc/pages/system.php:18
    351355msgid "MySQL Version"
    352356msgstr ""
    353357
    354 #: inc/pages/system.php:32
     358#: inc/pages/system.php:31
    355359msgid "WordPress Version"
    356360msgstr ""
    357361
    358 #: inc/pages/system.php:36
     362#: inc/pages/system.php:35
    359363msgid "WordPress Network Page"
    360364msgstr ""
    361365
    362 #: inc/pages/system.php:39
     366#: inc/pages/system.php:38
    363367msgid "Yes"
    364368msgstr ""
    365369
    366 #: inc/pages/system.php:41
     370#: inc/pages/system.php:40
    367371msgid "No"
    368372msgstr ""
    369373
    370 #: inc/pages/system.php:47
     374#: inc/pages/system.php:46
    371375msgid "Plugin Version (File)"
    372376msgstr ""
    373377
    374 #: inc/pages/system.php:51
     378#: inc/pages/system.php:50
    375379msgid "Plugin Version (Database)"
    376380msgstr ""
    377381
    378 #: inc/pages/system.php:64
     382#: inc/pages/system.php:63
    379383msgid "Role"
    380384msgstr ""
    381385
    382 #: inc/pages/system.php:92
     386#: inc/pages/system.php:91
    383387msgid "Configuration"
    384388msgstr ""
    385389
    386 #: inc/pages/system.php:106
     390#: inc/pages/system.php:95
    387391msgid "PHP max. execution time"
    388392msgstr ""
    389393
    390 #: inc/pages/system.php:116
     394#: inc/pages/system.php:105
    391395msgid "PHP memory limit"
    392396msgstr ""
    393397
    394 #: inc/pages/system.php:126
     398#: inc/pages/system.php:115
    395399msgid "WordPress memory limit"
    396400msgstr ""
    397401
    398 #: inc/pages/system.php:132
     402#: inc/pages/system.php:121
    399403msgid "Paths"
    400404msgstr ""
    401405
    402 #: inc/pages/system.php:146
     406#: inc/pages/system.php:125
    403407msgid "Home URL"
    404408msgstr ""
    405409
    406 #: inc/pages/system.php:150
     410#: inc/pages/system.php:129
    407411msgid "Site URL"
    408412msgstr ""
    409413
    410 #: inc/pages/system.php:154
     414#: inc/pages/system.php:133
    411415msgid "Plugin URL"
    412416msgstr ""
  • easy-code-placement/trunk/readme.txt

    r1512852 r1529213  
    55Requires at least: 4.0
    66Tested up to: 4.6.1
    7 Stable tag: 16.10
     7Stable tag: 16.11
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    8787
    8888== Changelog ==
     89
     90= 16.11 =
     91* 06.11.2016
     92* Added UIkit 2.27.1
     93* Removed jQuery (using WP version now), Bootstrap (using UIkit now) and Font-Awesome (build into UIkit)
     94* Added a help question
     95* Fixed a wrong Text-Domain in two strings
     96* When shortcode is deleted and the widget is still on the page its not shown anymore
     97* Added tons of spaces and comments for a better readability of the code
     98* Updated the German translation
     99* Direct access to the plugin files is now checked and blocked
    89100
    90101= 16.10 =
Note: See TracChangeset for help on using the changeset viewer.