osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 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 Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 Nomeklē šito un iekopē ar visu turpinājumu function max_get_timthumb_image Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 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'); Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 iekopē vairāk, tas nav viss funkcijas body Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 pieļauju ka šis viss ir :) http://pastie.org/9340106#9 iekopē vairāk, tas nav viss funkcijas body Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 šito rindu (28. rinda iekš pastie,org) $title = ' title="' . strip_tags(htmlspecialchars(get_the_excerpt())) . '"'; aizstāj ar šito $title = ''; Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 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 = ''; Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 30, 2014 Report Share Posted June 30, 2014 Sviests, tik dziļi jārok, lai atrastu vienkāršu title atribūtu... This is why I don't like WordPress. Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 (edited) >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 June 30, 2014 by Kasspars Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 30, 2014 Report Share Posted June 30, 2014 WordPress tādu stilu iedrošina, tāds sakars. Paskaties, cik lapas jau pierakstītas, lai atrastu vienu sūda title atribūtu. Normālā freimworkā to visu varētu uzrakstīt vismaz 10x vienkāršāk. Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 Nebūtu tu savus murgojumus par xpathiem rakstījis būtu mazāk ierakstu Pēc tavām domām normāls frameworks ir tāds, kurš vispār neļauj rakstīt savu kodu? Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 30, 2014 Report Share Posted June 30, 2014 >Pēc tavām domām normāls frameworks ir tāds, kurš vispār neļauj rakstīt savu kodu? No kura pirksta tu to izzīdi? Tu varbūt gribi pateikt, ka tas, kādā stilā šī "custom theme" ir uzrakstīta, ir normāli? If so, I'm sorry for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.