Skip to content

Commit

Permalink
Hidden config option to admins but xtecadmin. This option appeared af…
Browse files Browse the repository at this point in the history
…ter the upgrade to v1.7
  • Loading branch information
toniginard committed Oct 19, 2016
1 parent 56f6755 commit ecb2129
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions addtoany.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,23 +728,23 @@ function position_in_content( $options, $option_box = false ) {
<?php printf(__('Display at the %s of pages', 'add-to-any'), position_in_content( $options, false )); ?>
</label>
<br/>
<label>
<input name="A2A_SHARE_SAVE_display_in_attachments" type="checkbox"<?php
if ( ! isset( $options['display_in_attachments'] ) || $options['display_in_attachments'] != '-1' ) echo ' checked="checked"';
?> value="1"/>
<?php printf(__('Display at the %s of media pages', 'add-to-any'), position_in_content( $options, false )); ?>
</label>

<!--
<!--
// XTEC ************ AFEGIT - Only show options for xtecadmin
// 2016.06.02 @xavinieto
-->
<?php if ( is_xtec_super_admin() ) {?>
<!--
//************ FI
-->

<?php

<label>
<input name="A2A_SHARE_SAVE_display_in_attachments" type="checkbox"<?php
if ( ! isset( $options['display_in_attachments'] ) || $options['display_in_attachments'] != '-1' ) echo ' checked="checked"';
?> value="1"/>
<?php printf(__('Display at the %s of media pages', 'add-to-any'), position_in_content( $options, false )); ?>
</label>
<?php
$custom_post_types = array_values( get_post_types( array( 'public' => true, '_builtin' => false ), 'objects' ) );
foreach ( $custom_post_types as $custom_post_type_obj ) :
$placement_label = $custom_post_type_obj->labels->name;
Expand Down

0 comments on commit ecb2129

Please sign in to comment.