Rebrand fork as socialiconeco; PHP 8 fix; rename identifiers and fix folder paths

This commit is contained in:
2026-06-29 11:56:46 -03:00
parent 46fbe448bd
commit 451fd0535d
9 changed files with 188 additions and 171 deletions

View File

@@ -1,7 +1,7 @@
<?php
global $siw_social_accounts;
global $sie_social_accounts;
foreach ($siw_social_accounts as $site => $id) {
foreach ($sie_social_accounts as $site => $id) {
if(!isset($instance[$id])) { $instance[$id] = ''; }
elseif($instance[$id] == 'http://') { $instance[$id] = ''; }
}
@@ -12,13 +12,13 @@ if(!isset($instance['labels'])) { $instance['labels'] = ''; }
if(!isset($instance['show_title'])) { $instance['show_title'] = ''; }
?>
<div class="social_icons_widget">
<div class="socialiconeco_widget">
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
<input class="widefat" type="text" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($instance['title']); ?>" /></p>
<?php
$siw_sizes = array(
$sie_sizes = array(
'None' => 'none',
'Small (16px)' => 'small',
'Medium (32px)' => 'medium',
@@ -32,7 +32,7 @@ $siw_sizes = array(
<p class="icon_options"><label for="<?php echo $this->get_field_id('icons'); ?>">Icon Type:</label>
<select id="<?php echo $this->get_field_id('icons'); ?>" name="<?php echo $this->get_field_name('icons'); ?>">
<?php
foreach($siw_sizes as $option => $value) :
foreach($sie_sizes as $option => $value) :
if(esc_attr($instance['icons'] == $value)) { $selected = ' selected="selected"'; }
else { $selected = ''; }
@@ -51,7 +51,7 @@ $siw_sizes = array(
<p class="label_options"><input type="checkbox" id="<?php echo $this->get_field_id('show_title'); ?>" name="<?php echo $this->get_field_name('show_title'); ?>" value="show"<?php echo $checked; ?> /> <label for="<?php echo $this->get_field_id('show_title'); ?>">Hide Title</label></p>
<ul class="social_accounts">
<?php foreach ($siw_social_accounts as $site => $id) : ?>
<?php foreach ($sie_social_accounts as $site => $id) : ?>
<li><label for="<?php echo $this->get_field_id($id); ?>" class="<?php echo $id; ?>"><?php echo $site; ?>:</label>
<input class="widefat" type="text" id="<?php echo $this->get_field_id($id); ?>" name="<?php echo $this->get_field_name($id); ?>" value="<?php echo esc_attr($instance[$id]); ?>" placeholder="http://" /></li>
<?php endforeach; ?>