daGrevis Posted June 30, 2014 Report Share Posted June 30, 2014 Nu tu meklēji pēc “title“? Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Jā. Pēc keyworda "title" man atrada 1758 vārdus. Visos izbūros cauri un neko neatradu. Varbūt palaidu garām? hmm, nu nezinu... Nu tu meklēji pēc “title“? Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 30, 2014 Report Share Posted June 30, 2014 1) links nepareizs, pareizais ir http://jzstudio.lv/komanda 2) šeit ir xpath uz to A elementu, kura title tiek attēlots: //*[@id=portfolioList]/li[2]/div/a elementāri atver pārlūkā dev tools un ieselekto elementu, kurš attēlo title. Also, #primary uzliec "overflow: hidden;" un viss būs kārtībā. Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 Pameklē templeitos pēc: <div class="shadow"> šitas div tags tieši iewrapo to a tagu, kuru meklē. Šitā būs vieglāk atrast Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 atzīšos, esmu stulbs. ko ar to xpath elementu darīt? 1) links nepareizs, pareizais ir http://jzstudio.lv/komanda2) šeit ir xpath uz to A elementu, kura title tiek attēlots: //*[@id=portfolioList]/li[2]/div/aelementāri atver pārlūkā dev tools un ieselekto elementu, kurš attēlo title.Also, #primary uzliec "overflow: hidden;" un viss būs kārtībā. Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Rekur šitādus rezultātus izmeta. Kautkā neredzās tas title. :/ <li data-time="<?php the_time('m/d/Y H:i') ?>" data-modified="<?php the_modified_time('Y-m-d H:i') ?>" data-menuorder="<?php echo $post->menu_order ?>" data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo $lightbox_class ?> <?php echo $_term_classes; ?><?php if( get_option_max( 'image_show_caption' ) == "always") { echo(" show-title"); } ?><?php if( get_option_max('image_show_fade') != "true" || get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true) == 'true' || get_post_meta(get_the_ID(), MAX_SHORTNAME.'_photo_item_type_value', true) == 'disable_link' ) { echo(" no-hover"); } ?>"> <div class="shadow"> <li data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo max_get_post_lightbox_class(); ?><?php if( get_option_max('image_show_fade') != "true") { echo(" no-hover"); } ?>"> <div class="shadow"> <?php echo '<a href="' . get_permalink() . '" title="' . strip_tags(get_the_title()) . '"><img src="' . $_imgUrl .'" alt="' . strip_tags(get_the_title()) . '" /></a>'; ?> </div> <li data-id="id-<?php echo $post->ID ?>" class="item <?php echo max_get_post_lightbox_class() . " "; ?><?php echo $_term_classes . " "; ?><?php if( get_option_max('image_show_fade') != "true") { echo("no-hover"); } ?>"> <div class="shadow"> Pameklē templeitos pēc: <div class="shadow"> šitas div tags tieši iewrapo to a tagu, kuru meklē. Šitā būs vieglāk atrast Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 (edited) Otrajā blokā ieskaties title="' . strip_tags(get_the_title()) . '" Kaut gan tas nav īstais a tags. Taviem meklējamajiem a tagiem ir vēl atribūti data-link, data-rel Pirmajā blokā esi atradis div class="shadow", iekopē kodu, kas seko aiz <div class="shadow"> Esi jau pavisam tuvu Edited June 30, 2014 by Kasspars Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Otrajā blokā ieskaties title="' . strip_tags(get_the_title()) . '" Kaut gan tas nav īstais a tags. Taviem meklējamajiem a tagiem ir vēl atribūti data-link, data-rel Pirmajā blokā esi atradis div class="shadow", iekopē kodu, kas seko aiz <div class="shadow"> Esi jau pavisam tuvu hmm, interesanti, bet izdzēšot visu rindu <div class="shadow"> <?php echo '<a href="' . get_permalink() . '" title="' . strip_tags(get_the_title()) . '"><img src="' . $_imgUrl .'" alt="' . strip_tags(get_the_title()) . '" /></a>'; ?> </div> nekas nenotiek. :/ Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Ok, rekur pāris rinas pēc pirmā bloka: <?php // get the gallery item max_get_post_custom_image(get_post_thumbnail_id(), false, false, $image_size); if($itemCaption === true) { // check if caption option is selected if ( get_option_max( 'image_show_caption' ) == 'true' || get_option_max( 'image_show_caption' ) == 'always' ) { ?> <div class="item-caption"> <strong class="title"><?php echo get_the_title() ?></strong><br /> <?php if(!$hideExcerpt) { echo strip_tags(get_the_excerpt()); } ?> </div> Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 (edited) Es tak saku tas nav īstai a tags Iekopē kodu kas seko aiz šitā. Tur jābūt īstajam a tagam <li data-time="<?php the_time('m/d/Y H:i') ?>" data-modified="<?php the_modified_time('Y-m-d H:i') ?>" data-menuorder="<?php echo $post->menu_order ?>" data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo $lightbox_class ?> <?php echo $_term_classes; ?><?php if( get_option_max( 'image_show_caption' ) == "always") { echo(" show-title"); } ?><?php if( get_option_max('image_show_fade') != "true" || get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true) == 'true' || get_post_meta(get_the_ID(), MAX_SHORTNAME.'_photo_item_type_value', true) == 'disable_link' ) { echo(" no-hover"); } ?>"> <div class="shadow"> Edited June 30, 2014 by Kasspars Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Es tak saku tas nav īstai a tags Iekopē kodu kas seko aiz šitā. Tur jābūt īstajam a tagam <li data-time="<?php the_time('m/d/Y H:i') ?>" data-modified="<?php the_modified_time('Y-m-d H:i') ?>" data-menuorder="<?php echo $post->menu_order ?>" data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo $lightbox_class ?> <?php echo $_term_classes; ?><?php if( get_option_max( 'image_show_caption' ) == "always") { echo(" show-title"); } ?><?php if( get_option_max('image_show_fade') != "true" || get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true) == 'true' || get_post_meta(get_the_ID(), MAX_SHORTNAME.'_photo_item_type_value', true) == 'disable_link' ) { echo(" no-hover"); } ?>"> <div class="shadow"> augstāk :) Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 Labi, tagad nomeklē šito function max_get_post_custom_image Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Šo te izmeta: // get the gallery item max_get_post_custom_image(get_post_thumbnail_id()); if($itemCaption === true) { // get the gallery item max_get_post_custom_image(get_post_thumbnail_id(), false, false, $image_size); if($itemCaption === true) { function max_get_post_custom_image($imgID, $p_id = false, $return = false, $img_size = 'full' ) { Neizskatās ka būtu kautkas uz taga "a" pusi Labi, tagad nomeklē šito function max_get_post_custom_image Quote Link to comment Share on other sites More sharing options...
osC Posted June 30, 2014 Author Report Share Posted June 30, 2014 Šo te izmeta: // get the gallery item max_get_post_custom_image(get_post_thumbnail_id()); if($itemCaption === true) { nejauši iemetās pēdējie 2 rezultāti tavā quote :) Quote Link to comment Share on other sites More sharing options...
Kasspars Posted June 30, 2014 Report Share Posted June 30, 2014 (edited) šitas ir īstais function max_get_post_custom_image($imgID, $p_id = false, $return = false, $img_size = 'full' ) { iekopē turpinājumu Edited June 30, 2014 by Kasspars 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.