Пример #1
0
 * @since             1.0.0
 * @package           Club
 *
 * @wordpress-plugin
 * Plugin Name:       Club
 * Plugin URI:        https://conrad.pics/project/wp-club
 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
 * Version:           1.0.0
 * Author:            Stephan Conrad
 * Author URI:        https://conrad.pics
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       club
 * Domain Path:       /languages
 */
require_once dirname(__FILE__) . '/vendor/autoload.php';
defined('ABSPATH') or die('No script kiddies please!');
if (!function_exists('write_log')) {
    function write_log($log)
    {
        if (is_array($log) || is_object($log)) {
            error_log(print_r($log, true));
        } else {
            error_log($log);
        }
    }
}
register_activation_hook(__FILE__, array('Club\\Club', 'install'));
register_deactivation_hook(__FILE__, array('Club\\Club', 'uninstall'));
Club\Club::run(dirname(__FILE__));
Пример #2
0
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">

                    <br />  
                    <button type="button" id="btnSave" class="btn btn-default">Speichern</button>
                </div>
            </div>
    </div>


</div>

<link href="<?php 
echo Club\Club::getInstance()->plugin_url;
?>
/css/googlemaps.css" rel="stylesheet" />

<script type="text/javascript">
    var $ = jQuery.noConflict();
    var dateFormat = "<?php 
echo $defaultFormat;
?>
";
    var momentFormat = "<?php 
echo $momentFormat;
?>
";
    var markers = [];
    var useMarker = false;
Пример #3
0
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$roles = get_editable_roles();
$caps = Club\Club::getInstance()->getCaps();
$not_editable = array('administrator', 'club_admin');
?>
<div class="bootstrap-wrapper">
    <div class="container">
        <h1>Club Rollen</h1>
        <table class="table table-hover table-striped">
            <thead>
                <tr>
                    <th>Rolle</th>
                    <?php 
foreach ($caps as $cap) {
    ?>
                        <th><?php 
    echo $cap;
    ?>
</th>
                    <?php 
}
?>
                    <th>&nbsp;</th>
                </tr>
            </thead>