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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...