HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/tfgarchive/wpblogtest1.old/wp-content/themes/vigilance/sidebar-imagebox.php
<?php //Load Variables
  $sideimg_state = get_option('V_sideimg_state'); 
  $sideimg_height = get_option('V_sideimg_height'); 
  $sideimg_alt = get_option('V_sideimg_alt'); 
  $sideimg_url = get_option('V_sideimg_url');
  $sideimg_link = get_option('V_sideimg_link');
  $sideimg_custom = get_option('V_sideimg_custom');
  $static_sideimg_url = get_post_meta($post->ID, 'sideimg-url', $single = true); 
  $static_sideimg_alt = get_post_meta($post->ID, 'sideimg-alt', $single = true); 
  $static_sideimg_link = get_post_meta($post->ID, 'sideimg-link', $single = true); 
  $static_sideimg_height = get_post_meta($post->ID, 'sideimg-height', $single = true);  
  $static_sideimg_status = get_post_meta($post->ID, 'sideimg-status', $single = true); 
?> 

<?php //------Rotating Images---------------------------------------------------------------------------------//
if ($sideimg_state == 'Rotating images') {?>
	<div id="sidebar-image">
  	<?php if ($sideimg_link !== '') {?>
      <a href="<?php echo $sideimg_link; ?>">
    <?php } ?>
    <img src="<?php bloginfo('template_url'); ?>/images/sidebar/rotate.php" width="300" height="<?php echo $sideimg_height; ?>" alt="<?php if ($sideimg_alt !== '') echo $sideimg_alt; else echo bloginfo('name'); ?>"/>
    <?php if ($sideimg_link !== '') {?>
      </a>
    <?php } ?>
	</div><!--end sidebar-image-->
<?php 
} ?>

<?php //------Static Image---------------------------------------------------------------------------------//
if ($sideimg_state == 'Static image' && $sideimg_url !== '') {?>
  <div id="sidebar-image">
    <?php if ($sideimg_link !== '') {?>
      <a href="<?php echo $sideimg_link; ?>">
    <?php } ?>
  		<img src="<?php bloginfo('template_url'); ?>/images/sidebar/<?php echo $sideimg_url; ?>" width="300" height="<?php echo $sideimg_height; ?>" alt="<?php if ($sideimg_alt !== '') echo $sideimg_alt; else echo bloginfo('name'); ?>"/>
    <?php if ($sideimg_link !== '') {?>
      </a>
    <?php } ?>
	</div><!--end sidebar-image-->
<?php 
} ?>

<?php //------Page and Post Specific---------------------------------------------------------------------------------//
if ($sideimg_state == 'Page and post specific' && $static_sideimg_status !== 'hidden' && $static_sideimg_url !== '')  {?>
  <div id="sidebar-image">
      <?php if ($static_sideimg_link !== '') {?>
      <a href="<?php echo $static_sideimg_link; ?>">
      <?php } ?>
        <?php if (is_single() || is_page() && $static_sideimg_url !== '') { ?>
        <img src="<?php echo $static_sideimg_url; ?>" width="300" height="<?php if ($static_sideimg_height !== '') echo $static_sideimg_height; else echo $sideimg_height; ?>" alt="<?php if ($static_sideimg_alt !== '') echo $static_sideimg_alt; else echo the_title(); ?>"/>
        <?php } ?>
      <?php if ($static_sideimg_link !== '') {?>
      </a>
      <?php } ?>
  </div><!--end sidebar-image-->			
<?php 
} ?>

<?php //------Custom Code---------------------------------------------------------------------------------//
if ($sideimg_state == 'Custom code') {?>
  <div id="sidebar-image">
  	<?php echo stripslashes($sideimg_custom); ?>
  </div><!--end sidebar-image-->
<?php 
} ?>