[32112] | 1 | {footer_script} |
---|
| 2 | jQuery(function($) { |
---|
| 3 | |
---|
| 4 | if($('#metaogimagesavePid').children("option:selected").val()=="-20"){ |
---|
| 5 | $('#mognp').show(); |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | $('#metaogimagesavePid').change(function(event){ |
---|
| 9 | var idphoto=$(this).children("option:selected").val(); |
---|
| 10 | $('#metaogimagesaveP2id').val(idphoto); |
---|
| 11 | if(idphoto=="-10" || idphoto=="-20" ||idphoto==$('input[name=metaogidobjP]').val()){ |
---|
| 12 | $('#mognp').show(); |
---|
| 13 | $('#metaogimagescrP').attr("src",''); |
---|
| 14 | $('#metaogimagescrP').hide(); |
---|
| 15 | }else{ |
---|
| 16 | var urliog=$('#metaogimagesavePid').children("option:selected").data('url'); |
---|
| 17 | $('#metaogimagescrP').attr("src",urliog); |
---|
| 18 | $('#metaogimagescrP').show(); |
---|
| 19 | $('#mognp').hide(); |
---|
| 20 | } |
---|
| 21 | $('#mognpe').hide(); |
---|
| 22 | $('#metaogimagesavePid').css('border', 'solid 1px #999'); |
---|
| 23 | $('#metaogimagesaveP2id').css('border', 'solid 1px #999'); |
---|
| 24 | $('input[name=submit]').show(); |
---|
| 25 | }); |
---|
| 26 | |
---|
| 27 | $('#metaogimagesaveP2id').change(function(){ |
---|
| 28 | var idphoto2=$(this).val(); |
---|
| 29 | $('#metaogimagesavePid').val(idphoto2); |
---|
| 30 | |
---|
| 31 | if($('#metaogimagesavePid').children("option:selected").val()==idphoto2){ |
---|
| 32 | $('#metaogimagesavePid').css('border', 'solid 1px #999'); |
---|
| 33 | $('#metaogimagesaveP2id').css('border', 'solid 1px #999'); |
---|
| 34 | $('#mognpe').hide(); |
---|
| 35 | $('input[name=submit]').show(); |
---|
| 36 | if(idphoto2=="-10" ||idphoto2=="-20"||idphoto2==$('input[name=metaogidobjP]').val()){ |
---|
| 37 | $('#mognp').show(); |
---|
| 38 | $('#metaogimagescrP').attr("src",''); |
---|
| 39 | $('#metaogimagescrP').hide(); |
---|
| 40 | }else{ |
---|
| 41 | var urliog=$('#metaogimagesavePid').children("option:selected").data('url'); |
---|
| 42 | $('#metaogimagescrP').attr("src",urliog); |
---|
| 43 | $('#metaogimagescrP').show(); |
---|
| 44 | $('#mognp').hide(); |
---|
| 45 | } |
---|
| 46 | }else{ |
---|
| 47 | $('#metaogimagesavePid').css('border', 'solid 2px red'); |
---|
| 48 | $('#metaogimagesaveP2id').css('border', 'solid 2px red'); |
---|
| 49 | $('#mognpe').show(); |
---|
| 50 | $('#mognp').hide(); |
---|
| 51 | $('#metaogimagescrP').attr("src",''); |
---|
| 52 | $('#metaogimagescrP').hide(); |
---|
| 53 | $('input[name=submit]').hide(); |
---|
| 54 | } |
---|
| 55 | }); |
---|
| 56 | |
---|
| 57 | }); |
---|
| 58 | {/footer_script} |
---|
| 59 | |
---|
[32190] | 60 | <p> |
---|
| 61 | <strong>{'Metadata Open Graph - Plugin meta og'|@translate}</strong> |
---|
| 62 | <br> |
---|
| 63 | <br> |
---|
[32112] | 64 | <span style="margin: 0 0 0 20px">{'Metadata Open Graph title'|@translate}</span> |
---|
| 65 | <br> |
---|
| 66 | <input type="hidden" name="metaogidP" value="{$metaog_editP.metaogidid}"> |
---|
| 67 | <input type="hidden" name="metaogidobjP" value="{$metaog_editP.metaogidobj}"> |
---|
| 68 | <span style="margin: 0 0 0 20px"><input type="text" name="metaogtitlesaveP" value="{$metaog_editP.metaogtitle}" size="100" maxlenght="100"></span> |
---|
| 69 | <br> |
---|
| 70 | <br> |
---|
| 71 | <span style="margin: 0 0 0 20px">{'Metadata Open Graph description'|@translate}</span> |
---|
| 72 | <br> |
---|
| 73 | <span style="margin: 0 0 0 20px"><textarea rows="2" cols="60" name="metaogdescriptionsaveP" id="metaogdescriptionsaveP" class="metaogdescriptionsaveP">{$metaog_editP.metaogdescription}</textarea></span> |
---|
| 74 | <br> |
---|
| 75 | <br> |
---|
[32229] | 76 | {if ($SHOWMOGI==1)} |
---|
| 77 | <span style="margin: 0 0 0 20px">{'Metadata Open Graph link image'|@translate}</span> |
---|
| 78 | <br> |
---|
[32112] | 79 | <span style="margin: 0 0 0 20px"> |
---|
| 80 | <input id="metaogimagesaveP2id" type="number" name="metaogimagesaveP2" value="{$metaog_editP.metaogimage}"> {'or'|@translate} |
---|
| 81 | <select id="metaogimagesavePid" name="metaogimagesaveP"> |
---|
| 82 | <option value="-20">-----</option> |
---|
| 83 | <option value="-10">{'use photo for this page'|@translate}</option> |
---|
| 84 | {foreach from=$info_photos item=infophoto} |
---|
| 85 | <option data-url="{$infophoto.PHOTOURL}" value="{$infophoto.PHOTOID}" {$infophoto.PHOTOSELECT}>{$infophoto.PHOTOINFO}</option> |
---|
| 86 | {/foreach} |
---|
| 87 | </select> |
---|
| 88 | </span> |
---|
| 89 | <br> |
---|
| 90 | <span style="margin: 0 0 0 20px"><span style="display:none;" id="mognp">{'use photo for this page'|@translate}</span></span> |
---|
| 91 | <span style="margin: 0 0 0 20px"><span style="display:none;" id="mognpe">{'This ID isn\'t used in your gallery'|@translate}</span></span> |
---|
| 92 | <br> |
---|
| 93 | <img id="metaogimagescrP" src="{$metaog_editP.metaogpath}"><br> |
---|
[32229] | 94 | <br> |
---|
| 95 | {/if} |
---|
[32190] | 96 | </p> |
---|
[32408] | 97 | <input type="hidden" name="pwg_token" |
---|