Napisany przez: Error107 9.09.2019, 11:47:31
OPIS PROBLEMU WYŚWIETLA SIĘ U GÓRY STRONY:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SMTheme has a deprecated constructor in /profiles/e/er/err/error107pl/lv-rp.pl/wp-content/themes/gameplay/inc/library.php on line 2
Kod
<?php
class SMTheme {
var $options;
var $lang;
var $status;
var $pagetitle;
var $layout;
var $sidebars_type;
function SMTheme() {
if ( !is_admin() ) {
function smt_register_scripts() {
global $SMTheme;
$apikey = $SMTheme->get( 'integration','gglapikey' )?'?key='.$SMTheme->get( 'integration','gglapikey' ):'';
wp_enqueue_style( 'index', get_template_directory_uri().'/css/index.css' );
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'jquery' );
wp_register_script( 'googlemaps', 'https://maps.google.com/maps/api/js'.$apikey, array( 'jquery' ), '3' );
wp_enqueue_script( 'googlemaps' );
}
add_action('init', 'smt_register_scripts');
}
if ( ! isset( $content_width ) ) $content_width = 1000;
include TEMPLATEPATH."/inc/settings.php";
$reset='';
if ( current_user_can('administrator') ) {
Napisany przez: viking 9.09.2019, 11:49:36
Zamiast function SMTheme() -> public function __construct()