Changeset 32740 for extensions/manage_properties_photos
- Timestamp:
- Mar 2, 2022, 11:29:23 AM (3 years ago)
- Location:
- extensions/manage_properties_photos
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/manage_properties_photos/admin.php
r32735 r32740 72 72 }else{ 73 73 pwg_query('DELETE FROM ' . ADD_PROP_PHOTO_TABLE . ' where dataprop ="plugexpiry_date";'); 74 } 75 /*end*/ 76 /*Copyrights*/ 77 if (isset($pwg_loaded_plugins['Copyrights'])){ 78 $row = pwg_db_fetch_assoc(pwg_query('SELECT dataprop FROM '. ADD_PROP_PHOTO_TABLE .' where dataprop ="plugexpiry_date";')); 79 if(empty($row)){ 80 $row = pwg_db_fetch_assoc(pwg_query('SELECT MAX(orderprop) FROM '. ADD_PROP_PHOTO_TABLE )); 81 $or = ($row['MAX(orderprop)'] + 1); 82 pwg_query('INSERT INTO ' . $prefixeTable . 'add_properties_photos(wording,orderprop,active,edit,Typ,dataprop)VALUES ("Copyrights","' . $or . '","0",0,"1","plugCopyrights");'); 83 } 84 }else{ 85 pwg_query('DELETE FROM ' . ADD_PROP_PHOTO_TABLE . ' where dataprop ="plugCopyrights";'); 74 86 } 75 87 /*end*/ … … 274 286 $items['AIPWORDING'] = l10n('Image id'); 275 287 }else if($info_photos['dataprop']=="plugPhoto_add_by"){ 276 $items['AIPWORDING'] = l10n('P hoto added by');288 $items['AIPWORDING'] = l10n('Plugins')." - ".l10n('Photo added by'); 277 289 }else if($info_photos['dataprop']=="plugdownload_counter"){ 278 $items['AIPWORDING'] = l10n(' Downloads');290 $items['AIPWORDING'] = l10n('Plugins')." - ".l10n('Downloads'); 279 291 }else if($info_photos['dataprop']=="plugColorPalette"){ 280 $items['AIPWORDING'] = l10n('P alette');292 $items['AIPWORDING'] = l10n('Plugins')." - ".l10n('Palette'); 281 293 }else if($info_photos['dataprop']=="plugexpiry_date"){ 282 $items['AIPWORDING'] = l10n('Expiry date'); 294 $items['AIPWORDING'] = l10n('Plugins')." - ".l10n('Expiry date'); 295 }else if($info_photos['dataprop']=="plugCopyrights"){ 296 $items['AIPWORDING'] = l10n('Plugins')." - ".l10n('Copyrights'); 283 297 }else{ 284 298 $items['AIPWORDING'] = trigger_change('AP_render_content',$info_photos['wording']); -
extensions/manage_properties_photos/admin/admin.tpl
r32735 r32740 275 275 li.categoryLi{ 276 276 list-style:none; 277 background: #ddd; 278 padding: 5px; 279 margin-bottom: 5px; 280 border-radius:5px; 277 281 } 278 282 -
extensions/manage_properties_photos/initpicture.php
r32735 r32740 222 222 </div> 223 223 {/if} 224 {else if $addinfophotos.AIPWORDING == \'Copyrights\'} 225 <div id="Copyrights_name" class="imageInfo"> 226 <dt>{\'Copyright\'|@translate}</dt> 227 <dd> 228 {if $CR_INFO_NAME} 229 <a target="_blanc" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}: {$CR_INFO_DESCR}">{$CR_INFO_NAME}</a> 230 {else} 231 {\'N/A\'|@translate} 232 {/if} 233 </dd> 234 </div> 224 235 {else if $addinfophotos.AIPDATA} 225 236 <div id="add_info" class="imageInfo"> … … 496 507 </div> 497 508 {/if} 509 {else if $addinfophotos.AIPWORDING == \'Copyrights\'} 510 <div id="Copyrights_name" class="imageInfo"> 511 <dl class="row mb-0"> 512 <dt class="col-sm-5">{\'Copyright\'|@translate}</dt> 513 <dd class="col-sm-7"> 514 {if $CR_INFO_NAME} 515 <a target="_blanc" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}: {$CR_INFO_DESCR}">{$CR_INFO_NAME}</a> 516 {else} 517 {\'N/A\'|@translate} 518 {/if} 519 </dd> 520 </dl> 521 </div> 498 522 {else if $addinfophotos.AIPDATA} 499 523 <div id="add_info" class="imageInfo"> … … 898 922 </div> 899 923 {/if} 924 {else if $addinfophotos.AIPWORDING == \'Copyrights\'} 925 <div id="Copyrights_name" class="imageInfo"> 926 <tr> 927 <th>{\'Copyright\'|@translate}</th> 928 <td> 929 {if $CR_INFO_NAME} 930 <a target="_blanc" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}: {$CR_INFO_DESCR}">{$CR_INFO_NAME}</a> 931 {else} 932 {\'N/A\'|@translate} 933 {/if} 934 </td> 935 </tr> 936 </div> 900 937 {else if $addinfophotos.AIPDATA} 901 938 <div id="add_info" class="imageInfo"> … … 1136 1173 </li> 1137 1174 {/if} 1175 {else if $addinfophotos.AIPWORDING == \'Copyrights\'} 1176 <li id="Copyrights_name" class="imageInfo"> 1177 <dt>{\'Copyright\'|@translate}</dt> 1178 <dd> 1179 {if $CR_INFO_NAME} 1180 <a target="_blanc" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}: {$CR_INFO_DESCR}">{$CR_INFO_NAME}</a> 1181 {else} 1182 {\'N/A\'|@translate} 1183 {/if} 1184 </dd> 1185 </li> 1138 1186 {else if $addinfophotos.AIPDATA} 1139 1187 <li id="add_info" class="imageInfo">
Note: See TracChangeset
for help on using the changeset viewer.