Jump to content
php.lv forumi
Sign in to follow this  

Automatic image montage nestrādā uz wordpress

Recommended Posts

Sveiki! Veidojot wp dizainu ir vajadzīgs montage.min.js.
Integrējot to functions.php failā:

function eb_theme_assets(){
	wp_enqueue_style('style', get_stylesheet_uri());
	wp_enqueue_style('reset', get_template_directory_uri().'/css/reset.css', array(), '1.0.0', 'all');
	wp_enqueue_style('imageview', get_template_directory_uri().'/css/imageview.css', array(), '', 'all');
	wp_enqueue_style('ebstyle', get_template_directory_uri().'/css/ebstyle.css', array(), '1.0.0', 'all');
	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array('jquery'));	
	wp_enqueue_script('montage', get_template_directory_uri().'/js/montage.min.js', array('jquery'));
	wp_enqueue_script('photoView', get_template_directory_uri().'/js/imageview.js', array('jquery'));
	wp_enqueue_script('ebfunctions', get_template_directory_uri().'/js/functions.js', array('jquery'));
	wp_enqueue_script('ebjquery', get_template_directory_uri().'/js/ebjquery.js', array('jquery')); // ture/false --> footer/header  
	wp_enqueue_script( 'jquery-ui-sortable' );
add_action('wp_enqueue_scripts', 'eb_theme_assets');

console rodas šāds errors:

Uncaught RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at fa (jquery.js:2)
    at ta (jquery.js:2)
    at jquery.js:2
    at f (jquery.js:2)
    at fa.select (jquery.js:2)
    at Function.fa (jquery.js:2)
    at Function.a.find (jquery-migrate.min.js:2)
    at a.fn.init.find (jquery.js:2)
    at a.fn.init.a.fn.find (jquery-migrate.min.js:2)

iekomentējot montage rindu kļūda pazūd.
Mēģināju izmantot wp jquery.js, mēģināju izmantot vecākus jquery.js kur tas montage.js strādā, bet bez rezultātiem, visur tas pats.

Links uz automatik image montage

P.S. Paldies jau iepriekš!

Edited by ziedinjsh

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this