Subversion Repositories wpShopGermany4

Rev

Rev 5385 | Rev 6407 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

        /**
         * Templatedatei für die Startseite/Konfiguration im Backend
         * Normalerweise sollte hier nichts angepasst werden
         */
 
?>

<div class="wpsg_admin" id="wpsg-bs">

        <nav class="navbar navbar-default">
                <div class="container-fluid">
                        <div class="navbar-header">
                                <a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
                        </div>
                        <div class="collapse navbar-collapse">
                                <ul class="nav navbar-nav">
                                        <li role="presentation" class="<?php echo (($this->view['actionName'] == "index")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin"><?php echo __("Einstellungen", "wpsg"); ?></a></li>
                                        <li role="presentation" class="<?php echo (($this->view['actionName'] == "module")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module"><?php echo __("Module", "wpsg"); ?></a></li>
                                                
                                        <?php if (current_user_can('wpsg_lizence') && $this->hasMod('wpsg_mod_core')) { ?>                      
                                        <li role="presentation" class="<?php echo (($this->view['actionName'] == "registrierung")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=registrierung"><?php echo __("Lizenzverwaltung", "wpsg"); ?></a></li>
                                        <?php } ?>
                                        
                                        <li role="presentation" class="<?php echo (($this->view['actionName'] == 'news')?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=news">
                                                <?php echo __('Aktuelles', 'wpsg'); ?>
                                                <?php $wpsg_news_unread = wpsg_news::countUnreadNews(); if (wpsg_isSizedInt($wpsg_news_unread)) { ?>
                                                <span class="badge" style="background-color:#D9534F;"><?php echo sizeof($wpsg_news_unread); ?></span>
                                                <?php } ?>                      
                                        </a></li>
                                </ul>
                                <ul class="nav navbar-nav navbar-right">                                
                                        <li role="presentation" class="<?php echo (($this->view['actionName'] == "hilfe")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=hilfe"><?php echo __("Hilfe", "wpsg"); ?></a></li>
                                        <li role="presentation" class="<?php echo (($this->view['actionName'] == "ueber")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=ueber"><?php echo __("Über", "wpsg"); ?></a></li>
                                </ul>
                        </div>
                </div>          
        </nav> 
        
        <?php echo $this->writeBackendMessage(); ?>
                                
        <div class="wpsg_admin_wrap">
                <?php if (wpsg_isSizedString($this->view['subTemplate'])) { ?>
                <?php $this->render($this->view['subTemplate']); ?>
                <?php } ?>
        </div>
        
</div>

<script type="text/javascript">/* <![CDATA[ */

        jQuery(document).ready(function() {

                jQuery('*[data-wpsg-tip]').bind('click', function() { 

                        jQuery(this).unbind('click');

                        var po = this;
                        
                        jQuery(this).popover( {
                                'html': true,
                                'content': function(el) {

                                        if (this.cache) return this.cache
                                         
                                        jQuery.ajax( {
                                                url: '?page=wpsg-Admin&subaction=loadHelp&noheader=1',
                                                data: {
                                                        field: jQuery(this).attr('data-wpsg-tip')
                                                },
                                                success: function(data) {

                                                        var popover = jQuery(po).attr('data-content', data).data('popover');
                                                        jQuery(po).data('bs.popover').options.content = data;
                                                        
                                                        //popover.setContent();
                                                        
                                                        //jQuery('#wpsg-popover-content').html(data);
                                                        //jQuery(po).setContent();
                                                        
                                                }
                                        } );
                                        
                                        return this.cache = '<div id="wpsg-popover-content"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>';
                                                                                
                                },
                                'trigger': 'focus'
                        } ).popover('show');
 
                        return false;
                        
                } );
                
        } );

/* ]]> */</script>