/**
 * Construct and display options for the flickr photos shortcode and widget.
 * 
 * Filters 4bzCore plugin's options.
 *
 * @since 1.1.0
 *
 * @param string $opts_str Required. 4bzCore plugin's default options.
 * @param array $opts Optional. Only relative if displaying a widget's options because these shortcode options are not saved to the database, they are used in the shortcode builder to generate the shortcode string.
 * @param object $widget Optional. Widget object if displaying options for a widget.
 */
function blogcentral_options_flickr_photos($opts_str, $opts, $widget)
{
    $opts['name'] = 'flickr_photos';
    $opts_str = '';
    $opts_str .= "<div class='blogcentral-wrap text-format'>";
    ob_start();
    blogcentral_display_custom_text_class_options($opts, $widget);
    $opts_str .= ob_get_clean();
    $opts_str .= '<p class="section-title div3">' . __('General', BLOGCENTRAL_TXT_DOMAIN) . '</p> 
		<table class="form-table"><tbody>
			<tr>
				<th>' . __('Limit', BLOGCENTRAL_TXT_DOMAIN) . '</th>
				<td><label>' . __('Number of items to display', BLOGCENTRAL_TXT_DOMAIN) . "</label> <input type='text'";
    if (isset($opts['limit'])) {
        $opts_str .= " value='" . esc_attr($opts['limit']) . "'";
    }
    $opts_str .= " name='" . blogcentral_get_field_name_wrap('limit', "blogcentral[flickr_photos]", $widget) . "' />";
    $opts_str .= '</td>
			</tr>
		</table>';
    $opts_str .= "<table class='form-table'>\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>" . __('User id', BLOGCENTRAL_TXT_DOMAIN) . '</th>
					<td><label>' . __('User id', BLOGCENTRAL_TXT_DOMAIN) . '</label>
								<input type="text"';
    if (isset($opts['user_id'])) {
        $opts_str .= ' value="' . esc_attr($opts['user_id']) . '"';
    }
    $opts_str .= ' name="' . blogcentral_get_field_name_wrap('user_id', "blogcentral[flickr_photos]", $widget) . '" /></td>
						</tr></tbody></table></div>';
    return $opts_str;
}
    /**
     * Construct and display options specific to the contact information shortcode and widget.
     *
     * @since 1.0.0
     *
     * @param array $opts Optional. Saved options.
     * @param object $widget Optional. Widget object if displaying options for a widget.
     */
    function blogcentral_display_contact_info_layout_opts($opts = null, &$widget = false)
    {
        $name = $opts['name'] = isset($opts['name']) ? esc_html($opts['name']) : 'contact_info';
        ?>
		
		<label><?php 
        _e('Layout', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label>
		<div class="group">
			<input type="radio" value="1" name="<?php 
        echo blogcentral_get_field_name_wrap('contact_info_layout', "blogcentral[{$name}]", $widget);
        ?>
"<?php 
        checked($opts['contact_info_layout'], '1');
        ?>
 />
			<label><?php 
        _e('horizontal', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label><br />
			<input type="radio" value="2" name="<?php 
        echo blogcentral_get_field_name_wrap('contact_info_layout', "blogcentral[{$name}]", $widget);
        ?>
"<?php 
        checked($opts['contact_info_layout'], '2');
        ?>
 />
			<label><?php 
        _e('vertical', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label>
		</div>

		<div>
			<div class="group">
				<input type="checkbox" name="<?php 
        echo blogcentral_get_field_name_wrap('show_address', "blogcentral[{$name}]", $widget);
        ?>
"<?php 
        checked($opts['show_address'], 'on');
        ?>
 /> 
				<label><?php 
        _e('Display address', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label><br />
				<input type="checkbox" name="<?php 
        echo blogcentral_get_field_name_wrap('show_phone', "blogcentral[{$name}]", $widget);
        ?>
"<?php 
        checked($opts['show_phone'], 'on');
        ?>
 /> 
				<label><?php 
        _e('Display phone', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label><br />
				<input type="checkbox" name="<?php 
        echo blogcentral_get_field_name_wrap('show_email', "blogcentral[{$name}]", $widget);
        ?>
"<?php 
        checked($opts['show_email'], 'on');
        ?>
 /> 
				<label><?php 
        _e('Display email', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label><br />
				<input type="checkbox" name="<?php 
        echo blogcentral_get_field_name_wrap('show_url', "blogcentral[{$name}]", $widget);
        ?>
"<?php 
        checked($opts['show_url'], 'on');
        ?>
 /> 
				<label><?php 
        _e('Display website', BLOGCENTRAL_TXT_DOMAIN);
        ?>
</label><br />
				<?php 
        blogcentral_display_social_share_opts($opts, $widget);
        ?>
			</div>		
		</div>
		<?php 
    }