";
$html .= "";
$html .= "";
$html .= "";
$html .= "";
$html .= "";
return $html;
}
/**
* @usage Generate Post sharing control option
*
* @param $params
*
* @return string
*/
public static function PostSharing( $params ) {
extract( $params );
$sns = array(
'icon-facebook' => 'Facebook',
'icon-twitter' => 'Twitter',
'icon-fontello-delicious' => 'Delicious',
'icon-fontello-yahoo' => 'Yahoo',
'icon-fontello-quora' => 'Quora',
'icon-fontello-digg' => 'Digg',
'icon-fontello-reddit' => 'Reddit',
'icon-fontello-xing' => 'Xing',
'icon-fontello-flickr' => 'Flickr',
'icon-fontello-evernote' => 'Evernote',
'icon-fontello-stumbleupon' => 'Stumble Upon',
'icon-fontello-mixi' => 'Mixi',
'icon-pinterest' => 'Pinterest',
'icon-googleplus' => 'Google+',
'icon-linkedin' => 'LinkedIn',
'icon-fontello-instagram' => 'Instagram',
'icon-fontello-yelp' => 'Yelp',
'icon-fontello-myspace' => 'My Space',
'icon-fontello-skype' => 'Skype',
'icon-envelope' => 'Email'
);
$html = "
";
return $html;
}
public static function HeaderStyles( $params ) {
WP_Filesystem();
global $wp_filesystem;
extract( $params );
$default = ! isset( $params['default'] ) ? 1 : $params['default'];
$navheads = scandir( get_template_directory() . '/templates/headers/' );
if ( file_exists( get_stylesheet_directory() . '/templates/headers/' ) ) {
$navheads = array_merge( $navheads, scandir( get_stylesheet_directory() . '/templates/headers/' ) );
}
$html = "";
return $html;
}
public static function SidebarDropdown( $params ) {
global $wp_registered_sidebars;
$sidebars = array();
foreach ( $wp_registered_sidebars as $sidebar ) {
$sid = $sidebar['id'];
$sidebars[ $sid ] = $sidebar['name'];
}
$html = "";
return $html;
}
public static function GetFonts() {
$ini_directory = get_template_directory() . '/theme-data/';
$font_array = parse_ini_file( "$ini_directory/fonts.php", true );
return $font_array;
}
public static function CustomBackground( $params ) {
extract( $params );
if ( ! isset( $selected ) || ! is_array( $selected ) || count( $selected ) == 0 ) {
$selected = array(
'image' => '',
'position_h' => '',
'position_v' => '',
'attachment' => '',
'repeat' => '',
'color' => ''
);
}
$html = "";
$html .= "
";
$html .= '
';
$html .= "
";
$html .= "
";
$html .= "
";
$html .= "
";
$html .= "
";
$html .= "
";
$html .= "
";
$html .= "
";
$bgs = scandir( ATTIRE_TEMPLATE_DIR . '/images/bg/' );
$html .= "
";
foreach ( $bgs as $file ) {
if ( $file != '.' && $file != '..' ) {
$url = get_template_directory_uri() . '/images/bg/' . $file;
$html .= "
";
}
}
$html .= "
";
$params['value'] = $selected['color'];
$html .= "
";
$html .= "";
$html .= "
";
$html .= "
";
$html .= "
";
return $html;
}
}