{footer_script} jQuery(function($) { if($('#metaogimagesavePid').children("option:selected").val()=="-20"){ $('#mognp').show(); } $('#metaogimagesavePid').change(function(event){ var idphoto=$(this).children("option:selected").val(); $('#metaogimagesaveP2id').val(idphoto); if(idphoto=="-10" || idphoto=="-20" ||idphoto==$('input[name=metaogidobjP]').val()){ $('#mognp').show(); $('#metaogimagescrP').attr("src",''); $('#metaogimagescrP').hide(); }else{ var urliog=$('#metaogimagesavePid').children("option:selected").data('url'); $('#metaogimagescrP').attr("src",urliog); $('#metaogimagescrP').show(); $('#mognp').hide(); } $('#mognpe').hide(); $('#metaogimagesavePid').css('border', 'solid 1px #999'); $('#metaogimagesaveP2id').css('border', 'solid 1px #999'); $('input[name=submit]').show(); }); $('#metaogimagesaveP2id').change(function(){ var idphoto2=$(this).val(); $('#metaogimagesavePid').val(idphoto2); if($('#metaogimagesavePid').children("option:selected").val()==idphoto2){ $('#metaogimagesavePid').css('border', 'solid 1px #999'); $('#metaogimagesaveP2id').css('border', 'solid 1px #999'); $('#mognpe').hide(); $('input[name=submit]').show(); if(idphoto2=="-10" ||idphoto2=="-20"||idphoto2==$('input[name=metaogidobjP]').val()){ $('#mognp').show(); $('#metaogimagescrP').attr("src",''); $('#metaogimagescrP').hide(); }else{ var urliog=$('#metaogimagesavePid').children("option:selected").data('url'); $('#metaogimagescrP').attr("src",urliog); $('#metaogimagescrP').show(); $('#mognp').hide(); } }else{ $('#metaogimagesavePid').css('border', 'solid 2px red'); $('#metaogimagesaveP2id').css('border', 'solid 2px red'); $('#mognpe').show(); $('#mognp').hide(); $('#metaogimagescrP').attr("src",''); $('#metaogimagescrP').hide(); $('input[name=submit]').hide(); } }); }); {/footer_script}
{'Metadata Open Graph - Plugin meta og'|@translate}
{'Metadata Open Graph title'|@translate}
{'Metadata Open Graph description'|@translate}
{'Metadata Open Graph link image'|@translate}
{'or'|@translate}