Пример #1
0
							<td class="bold" valign="top">Append text to total counter when big number styles are active:<br/><span class="label" style="font-size:400;">This option allows you to add custom text below counter when big number styles are active. For example you can add text shares.</span></td>
							<td class="essb_general_options"><?php 
ESSB_Settings_Helper::drawCheckboxField('activate_total_counter_text');
ESSB_Settings_Helper::drawCustomInputField('activate_total_counter_text_value');
?>
<br/> <span class="label">ex: shares, likes</span><br />
								<img
								src="<?php 
echo ESSB_PLUGIN_URL;
?>
/assets/images/admin_help_images-06.png" /></td>
						</tr>
						<tr class="even table-border-bottom" id="essb-counter5">
							<td class="bold" valign="top">Display total counter after this value of shares is reached:<br/><span class="label" style="font-weight:400">You can hide your total counter until amount of shares is reached. This option is active only when you enter value in this field - if blank total counter is always displayed.</span></td>
							<td class="essb_general_options"><?php 
ESSB_Settings_Helper::drawInputField('total_counter_hidden_till');
?>
</td>
						</tr>
					</table>
					</section>
				</div>


			</div>
		</div>
	</div>
	</form>
</div>
<script type="text/javascript">
jQuery("#essb-easy-wizard").steps({
Пример #2
0
</td>
								</tr>
							<tr class="even table-border-bottom">
							<td class="bold" valign="top">Combine into single file all plugin
								static CSS files:
								<div class="essb-new">
									<span></span>
								</div>
								<div class="essb-beta">
									<span></span>
								</div>
								<br /> <span class="label" style="font-weight: 400;">This option
									will combine all plugin static CSS files into single file.</span>
							</td>
							<td><?php 
ESSB_Settings_Helper::drawCheckboxField('essb_cache_static');
?>
</td>
						</tr>
							</table>
						</section>
						<!--  wizard end -->
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<script type="text/javascript">
jQuery("#essb-easy-wizard").steps({
Пример #3
0
    jQuery('#essb-fans-sortables').sortable();
    jQuery('#essb-native-sortables').sortable();
    
    <?php 
$section = isset($_REQUEST['section']) ? $_REQUEST['section'] : '1';
if ($section == '') {
    $section = '1';
}
?>
    essb_option_activate('<?php 
echo $section;
?>
');    

    //jQuery.lockfixed("#sticky-navigation",{offset: {top: 40, bottom: 100}});
    jQuery('.essb-options-header').scrollToFixed( { marginTop: 30 } );
});

</script>

<style type="text/css">

#essb-native-sortables li {
	display: inline-block;
	font-weight: bold;
}
</style>

<?php 
ESSB_Settings_Helper::registerColorSelector();
Пример #4
0
		<div id="essb-container-3" class="essb-data-container">


					<table border="0" cellpadding="5" cellspacing="0" width="100%">
						<col width="25%" />
						<col width="75%" /><tr>
							<td colspan="2" class="sub"><?php 
_e('Fans Counter Color Customization', ESSB_TEXT_DOMAIN);
?>
</td>
						</tr>
						<tr class="even table-border-bottom">
							<td class="bold">Activate fans counter color customizer:<br/><span class="label" style="font-weight: 400;">Color customizations will not be included unless you activate this option. You are able to activate customization on specific post/pages even if this option is not set to active.
							</span></td>
							<td class="essb_options_general"><?php 
ESSB_Settings_Helper::drawCheckboxField('activate_fanscounter_customizer');
?>
						</td>
						</tr>
						
						<tr class="table-border-bottom">
							<td colspan="2" class="sub2">Single network color options</td>
						</tr>
<?php 
essb_customizer_for_fanscounter();
?>
					</table>
				</div>
			</div>
		</div>
	</form>
Пример #5
0
function essb_advanced_display_on_single_mobileposition($selectedPt, $textOfHeading, $options)
{
    $options_by_pt = array();
    if (is_array($options)) {
        if (isset($options['opt_by_mp'])) {
            $options_by_pt = $options['opt_by_mp'];
        }
    }
    echo '<tr class="table-border-bottom" data-group="' . $selectedPt . '">';
    echo '	<td colspan="2" class="sub2">' . $textOfHeading . '</td>';
    echo '</tr>';
    echo '<tr class="even table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold" valign="top">Display only those buttons for this button position:<br/><span class="label" style="font-weight: 400;">Select networks that you wish to appear only for this button position. If network is selected this will overwrite default selected networks and display only selected here.</span></td>';
    echo '<td class="essb_general_options"><ul id="' . $selectedPt . '_networks" class="essb_list_horizontal">';
    if (is_array($options)) {
        if (!is_array($options['networks'])) {
            $default_networks = EasySocialShareButtons::default_options();
            $options['networks'] = $default_networks['networks'];
        }
        $pt_networks = isset($options_by_pt[$selectedPt . '_networks']) ? $options_by_pt[$selectedPt . '_networks'] : array();
        foreach ($options['networks'] as $k => $v) {
            $is_checked = in_array($k, $pt_networks, true) ? ' checked="checked"' : '';
            $network_name = isset($v[1]) ? $v[1] : $k;
            echo '<li><p style="margin: .2em 5% .2em 0;">
			<input id="network_selection_' . $k . '" value="' . $k . '" name="opt_by_mp[' . $selectedPt . '_networks][]" type="checkbox"
			' . $is_checked . ' />
			<label for="network_selection_' . $k . '"><span class="essb_icon essb_icon_' . $k . '"></span>' . $network_name . '</label>
			</p></li>';
        }
    }
    echo '</ul></td>';
    echo '</tr>';
    $templates = array();
    $templates[''] = "Default template from settings";
    $templates['1'] = "Default";
    $templates['2'] = "Metro";
    $templates['3'] = "Modern";
    $templates['4'] = "Round";
    $templates['5'] = "Big";
    $templates['6'] = "Metro (Retina)";
    $templates['7'] = "Big (Retina)";
    $templates['8'] = "Light (Retina)";
    $templates['9'] = "Flat (Retina)";
    $templates['10'] = "Tiny (Retina)";
    $templates['11'] = "Round (Retina)";
    $templates['12'] = "Modern (Retina)";
    $templates['13'] = "Circles (Retina)";
    $templates['14'] = "Blocks (Retina)";
    $templates['15'] = "Dark (Retina)";
    $templates['16'] = "Grey Circles (Retina)";
    $templates['17'] = "Grey Blocks (Retina)";
    $templates['18'] = "Clear (Retina)";
    $templates['19'] = "Copy (Retina)";
    $pt_template = isset($options_by_pt[$selectedPt . '_template']) ? $options_by_pt[$selectedPt . '_template'] : '';
    echo '<tr class="odd table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold">Template:</td>';
    echo '<td class="essb_general_options">' . ESSB_Settings_Helper::generateCustomSelectField($selectedPt . '_template', $templates, false, 'opt_by_mp', $pt_template) . '</td>';
    echo '</tr>';
    $yesno_list = array();
    $yesno_list[''] = "Default value from settings";
    $yesno_list['yes'] = "Yes";
    $yesno_list['no'] = "No";
    $pt_fullwidth = isset($options_by_pt[$selectedPt . '_fullwidth']) ? $options_by_pt[$selectedPt . '_fullwidth'] : '';
    echo '<tr class="even table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold">Full width share buttons:</td>';
    echo '<td class="essb_general_options">' . ESSB_Settings_Helper::generateCustomSelectField($selectedPt . '_fullwidth', $yesno_list, false, 'opt_by_mp', $pt_fullwidth) . '</td>';
    echo '</tr>';
    $pt_fullwidth_value = isset($options_by_pt[$selectedPt . '_fullwidth_value']) ? $options_by_pt[$selectedPt . '_fullwidth_value'] : '';
    echo '<tr class="odd table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold">Full width share buttons width correction:</td>';
    echo '<td class="essb_general_options">' . ESSB_Settings_Helper::generateCustomInputField($selectedPt . '_fullwidth_value', false, 'opt_by_mp', $pt_fullwidth_value) . '</td>';
    echo '</tr>';
    $pt_hidenames = isset($options_by_pt[$selectedPt . '_hidenames']) ? $options_by_pt[$selectedPt . '_hidenames'] : '';
    echo '<tr class="even table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold">Hide Network Names:</td>';
    echo '<td class="essb_general_options">' . ESSB_Settings_Helper::generateCustomSelectField($selectedPt . '_hidenames', $yesno_list, false, 'opt_by_mp', $pt_hidenames) . '</td>';
    echo '</tr>';
    $pt_counters_pos = isset($options_by_pt[$selectedPt . '_counters_pos']) ? $options_by_pt[$selectedPt . '_counters_pos'] : '';
    $counters_pos = array();
    $counters_pos[''] = "Default value from settings";
    $counters_pos['left'] = "Left";
    $counters_pos['right'] = "Right";
    $counters_pos['inside'] = "Inside button";
    $counters_pos['insidename'] = "Inside button with Network Names";
    $counters_pos['hidden'] = "Hidden";
    $counters_pos['leftm'] = "Left Modern";
    $counters_pos['rightm'] = "Right Modern";
    $counters_pos['top'] = "Top Modern";
    $counters_pos['topm'] = "Top Mini";
    $counters_pos['bottom'] = "Bottom";
    echo '<tr class="odd table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold">Counters Position:<br/><span class="label" style="font-weight: 400;">Only when counters are active.</label></td>';
    echo '<td class="essb_general_options">' . ESSB_Settings_Helper::generateCustomSelectField($selectedPt . '_counters_pos', $counters_pos, false, 'opt_by_mp', $pt_counters_pos) . '</td>';
    echo '</tr>';
    $pt_total_counters_pos = isset($options_by_pt[$selectedPt . '_total_counters_pos']) ? $options_by_pt[$selectedPt . '_total_counters_pos'] : '';
    $total_counters_pos = array();
    $total_counters_pos[''] = "Default value from settings";
    $total_counters_pos['left'] = "Left";
    $total_counters_pos['right'] = "Right";
    $total_counters_pos['leftbig'] = "Left Big Number";
    $total_counters_pos['rightbig'] = "Right Big Number";
    $total_counters_pos['hidden'] = "Hidden";
    echo '<tr class="even table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold">Total Counter Position:<br/><span class="label" style="font-weight: 400;">Only when counters are active.</label></td>';
    echo '<td class="essb_general_options">' . ESSB_Settings_Helper::generateCustomSelectField($selectedPt . '_total_counters_pos', $total_counters_pos, false, 'opt_by_mp', $pt_total_counters_pos) . '</td>';
    echo '</tr>';
    echo '<tr class="odd table-border-bottom" data-group="' . $selectedPt . '">';
    echo '<td class="bold" valign="top">Rename displayed texts for network names:<br/><span class="label" style="font-weight: 400;">Set texts that will appear on selected display method instead of default network names.</span></td>';
    echo '<td class="essb_general_options"><ul>';
    $y = $n = '';
    if (is_array($options)) {
        if (!is_array($options['networks'])) {
            $default_networks = EasySocialShareButtons::default_options();
            $options['networks'] = $default_networks['networks'];
        }
        foreach ($options['networks'] as $k => $v) {
            $pt_networks = isset($options_by_pt[$selectedPt . '_names']) ? $options_by_pt[$selectedPt . '_names'] : array();
            $network_name = isset($pt_networks[$k]) ? $pt_networks[$k] : '';
            $display_name = isset($v[1]) ? $v[1] : $k;
            echo '<li><p style="margin: .2em 5% .2em 0;">
			<input id="network_selection_' . $k . '" value="' . esc_attr(stripslashes($network_name)) . '" name="opt_by_mp[' . $selectedPt . '_names][' . $k . ']" type="text"
			class="input-element" />
			<label for="network_selection_' . $k . '"><span class="essb_icon essb_icon_' . $k . '"></span>' . esc_attr(stripslashes($display_name)) . '</label>
			</p></li>';
        }
    }
    echo '</ul></td>';
    echo '</tr>';
}