alano3city Posted September 9, 2015 Share Posted September 9, 2015 hej wam! dopiero poznaję prestę i mam takie pytanko: dodaję opinię, pojawia się komunikat w stylu Nowy komentarz nagłówek, tekst, że opinia dodana i że moderator musi to klepnąć i na dole przycisk OK. Chciałbym to wszystko opatulić jakimś divem z klasą. Szperam w productcomments.js i .tpl, coś znalazłem, ale nie mogę do końca skumać jak to dodać. Możecie pomóc? <pre> if (data.result) { $.fancybox.close(); var buttons = {}; buttons[productcomment_ok] = "productcommentRefreshPage"; fancyChooseBox(moderation_active ? productcomment_added_moderation : productcomment_added, productcomment_title, buttons); } </pre> Link to comment Share on other sites More sharing options...
Yabber Posted September 9, 2015 Share Posted September 9, 2015 Na dole templatki masz: {addJsDefL name=productcomment_added_moderation}{l s='Your comment has been added and will be available once approved by a moderator.' mod='productcomments' js=1}{/addJsDefL} Możesz tam całe opowiadanie wstawić {addJsDefL name=productcomment_added_moderation}{l s='Your comment has been added and will be available once approved by a moderator.' mod='productcomments' js=1}<div class="moja_klasa">Bla bla bla ..... </div>{/addJsDefL} 1 Link to comment Share on other sites More sharing options...
alano3city Posted September 9, 2015 Author Share Posted September 9, 2015 (edited) Dzięki! to prawie rozwiązało mój problem Został przycisk OK, jak dałem to podobnie: <pre> {addJsDefL name=productcomment_ok}<div class="success-btn">{l s='OK' mod='productcomments' js=1}</div>{/addJsDefL} </pre> to ta klasa (success-btn) ładuję się wewnątrz elementu, który chcę ostylować: <code> <p class="submit" style="text-align:right; padding-bottom: 0"> <button class="button btn-default button-medium" onclick="$.fancybox.close();window['productcommentRefreshPage'](JSON.parse(unescape('0')), 0)" value="true" style="margin-right: 5px;" type="submit"> <span> <div class="success-btn">Zamknij</div> </span> </button> </p> </code> Edited September 9, 2015 by alano3city (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now