public static function instance() { if (self::$_instance == null) { self::$_instance = new JBlogERM(); } return self::$_instance; }
<? $a = JBlogERM::instance(); wp_enqueue_style('css_erm', $a->plugin_url . 'css/bootstrap.css'); wp_enqueue_script('jquery_erm', 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'); wp_enqueue_script('js-1', $a->plugin_url . 'js/bootstrap.min.js'); wp_enqueue_script('js-2', $a->plugin_url . 'js/main.js'); wp_enqueue_script('js-3', $a->plugin_url . 'js/tooltip.min.js'); wp_enqueue_script('js-4', $a->plugin_url . 'js/jquery.fancybox.pack.js'); wp_enqueue_script('js-5', $a->plugin_url . 'js/jquery.validate.min.js'); ?> <div class="container-fluid"> <div class="row"> <div id="content-wrap" class="wrap col-md-12"> <h2>Панель управления ERM</h2> <div id="content-tab" class="bs-example bs-example-tabs"> <ul id="myTab" class="nav nav-tabs" style="border-bottom: none;"> <li id="manager" class="active"><a href="#edit" data-toggle="tab"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Управление</a> </li> <li id="adding" class=""><a href="#add" data-toggle="tab"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Добавить</a> </li> <li id="infoTab" class=""><a href="#info" data-toggle="tab"><span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span> Точный поиск координат на карте</a></li> </ul> <div style="clear: both;"></div> <div id="myTabContent" class="tab-content"> <div class="tab-pane fade active in" id="edit"> <form action="" method="post">