Jump to content
php.lv forumi

Vajadzīga CSS palīdzība iekš WordPress


osC
 Share

Recommended Posts

function max_get_post_custom_image($imgID, $p_id = false, $return = false, $img_size = 'full' ) {

  // get the image
	$output = max_get_timthumb_image( $return, $p_id, $img_size );

	// return the created image
	if($return === true){
		return $output;
	}else{
		echo $output;
	}

 

šitas ir īstais

function max_get_post_custom_image($imgID, $p_id = false, $return = false, $img_size = 'full' ) {

 

iekopē turpinājumu

Link to comment
Share on other sites

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Nomeklē šito un iekopē ar visu turpinājumu

 

function max_get_timthumb_image

function max_get_timthumb_image( $return = false, $p_id = false, $img_size = 'full' ){

	global $shortname, $post, $imgDimensions, $imgDimensions1x, $p_tpl, $resize_images;

	$max_mobile_detect = new Mobile_Detect(); // get the sting we need for the different devices
	$size              = $img_size; // set the attachment image size
	$post_id           = !$p_id ? $post->ID : $p_id; 	// check if its a lightbox or a project page link
	$photo_item_type   = get_post_meta($post_id,  MAX_SHORTNAME.'_photo_item_type_value', true); // get the item type
	$imgUrl            = max_get_post_image_url($post_id, $size); // Get the post image url
  $tpl_show_lightbox = get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true); // check to show the lightbox on this page template
  $use_timthumb      = get_option_max('image_use_timthumb');
Link to comment
Share on other sites

Eu, nostrādāja! Nebiju domājis, ka ir tik dziļu hover paslēpies. PayPal ir tev?

šito rindu (28. rinda iekš pastie,org)

$title = ' title="' . strip_tags(htmlspecialchars(get_the_excerpt())) . '"';

 

aizstāj ar šito

$title = '';

Link to comment
Share on other sites

>Sviests, tik dziļi jārok, lai atrastu vienkāršu title atribūtu... This is why I don't like WordPress. 

 

Dīvains esi? Te nav nekāda sakara ar Wordpress. Tā ir custom theme un neviens pasaules cms tevi nepaglābs no šādas situācijas. Kā theme programmētājs uzrakstīja tā arī ir

2. līmeņa funkcijā arī bija title atribūts, nekā tur dziļa nav

Edited by Kasspars
Link to comment
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...
 Share


×
×
  • Create New...