Changeset 2923639
- Timestamp:
- 06/08/2023 09:17:59 PM (3 years ago)
- Location:
- custom-site-logo/trunk
- Files:
-
- 3 edited
-
custom-site-logo.php (modified) (1 diff)
-
public/class-custom-site-logo-public.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-site-logo/trunk/custom-site-logo.php
r2917896 r2923639 17 17 * Plugin URI: https://no-site.com 18 18 * Description: This is a plugin to show the custom logo in the site header or anywhere. 19 * Version: 1.0. 119 * Version: 1.0.2 20 20 * Author: Awais Altaf 21 21 * Author URI: https://no-site.com -
custom-site-logo/trunk/public/class-custom-site-logo-public.php
r2917889 r2923639 135 135 136 136 } 137 138 139 /* Building direct function functionality */ 140 function csl_CustomSiteLogo_show_logo(){ 141 /* Get Options */ 142 $get_csl_options = get_option('csl_CustomSiteLogo_option_name'); 143 144 /* Assign Option Values */ 145 $csl_image_field = $get_csl_options['csl_CustomSiteLogo_image_field']; 146 $csl_image_url = $get_csl_options['csl_CustomSiteLogo_custom_url_field']; 147 $csl_option_width = $get_csl_options['csl_CustomSiteLogo_width_field']; 148 $csl_option_height = $get_csl_options['csl_CustomSiteLogo_height_field']; 149 $csl_option_responsive = isset( $get_csl_options['csl_CustomSiteLogo_image_responsive_field'] ) ? $get_csl_options['csl_CustomSiteLogo_image_responsive_field'] : 0; 150 $csl_option_hover = $get_csl_options['csl_CustomSiteLogo_hover_effect_field']; 151 $csl_option_center = isset( $get_csl_options['csl_CustomSiteLogo_image_center_field'] ) ? $get_csl_options['csl_CustomSiteLogo_image_center_field'] : 0; 152 153 if(isset($csl_image_field) && !empty($csl_image_field)){ 154 ?> 155 <div class="csl-logo-block" style="<?php if($csl_option_center == 1){ echo esc_attr(('text-align:center')); } ?>"> 156 <a id="csl-logo-block-link" href="<?php if(!empty($csl_image_url)){ echo esc_url($csl_image_url); }else{ echo esc_attr("#"); } ?>"> 157 <img id="csl-customsite-logo" class="csl-customsite-logo <?php echo esc_attr($csl_option_hover); ?>" 158 src="<?php echo esc_url($csl_image_field); ?>" style=" <?php if(!empty($csl_option_width)){ echo esc_attr('width:'.$csl_option_width.'px;'); } ?> 159 <?php if(!empty($csl_option_height)){ echo esc_attr('height:'.$csl_option_height.'px;'); } ?> 160 <?php if($csl_option_responsive == 1){ echo esc_attr('width:100%;max-width:100%;height:auto;'); } ?>" /> 161 </a> 162 </div><!-- csl-logo-block Ends --> 163 <?php 164 }else{ 165 ?> 166 <div class="csl-error">Error! No Logo Upload. Please upload logo : <strong>(Dashboard => Appearence => Custom Site Logo)</strong></div> 167 <?php 168 } 169 } 170 add_action('init', 'csl_CustomSiteLogo_show_logo'); -
custom-site-logo/trunk/readme.txt
r2917908 r2923639 75 75 76 76 Update the code standards. 77 78 = 1.0.2 = 79 Release Date: May 09th, 2023 80 81 Bugfixes: 82 83 * Fixes PHP Function.
Note: See TracChangeset
for help on using the changeset viewer.