(.*?)#s", '', $css ); } add_filter( 'gallery_style', 'evolve_remove_gallery_css' ); /** * evolve_menu - adds css class to the
{$file}
does not seem to exist. Please make sure this file exist in " . get_stylesheet_directory() . "\n";
$error = apply_filters( 'evolve_get_error', (string) $error ); // Available filter: evolve_get_error
if ( isset( $file ) && file_exists( get_stylesheet_directory() . "/{$file}.php" ) )
locate_template( get_stylesheet_directory() . "/{$file}.php" );
else
echo $error;
}
/**
* evlinclude_all() A function to include all files from a directory path
*
* @since 0.2.3
* @credits k2
*/
function evlinclude_all( $path, $ignore = false ) {
/* Open the directory */
$dir = @dir( $path ) or die( 'Could not open required directory ' . $path );
/* Get all the files from the directory */
while ( ( $file = $dir->read() ) !== false ) {
/* Check the file is a file, and is a PHP file */
if ( is_file( $path . $file ) and ( !$ignore or !in_array( $file, $ignore ) ) and preg_match( '/\.php$/i', $file ) ) {
require_once( $path . $file );
}
}
$dir->close(); // Close the directory, we're done.
}
/**
* Gets the profile URI for the document being displayed.
* @link http://microformats.org/wiki/profile-uris Profile URIs
*
* @since 0.2.4
* @param integer $echo 0|1
* @return string profile uris seperatd by spaces
**/
function evlget_profile_uri( $echo = 1 ) {
// hAtom profile
$profile[] = 'http://purl.org/uF/hAtom/0.1/';
// hCard, hCalendar, rel-tag, rel-license, rel-nofollow, VoteLinks, XFN, XOXO profile
$profile[] = 'http://purl.org/uF/2008/03/';
$profile = join( ' ', apply_filters( 'profile_uri', $profile ) ); // Available filter: profile_uri
if ( $echo ) echo $profile;
else return $profile;
}
function evolve_copy() {
$options = get_option('evolve');
if (!empty($options['evl_affiliate_id'])) { $ad_affiliate_id = '?ap_id='.$options['evl_affiliate_id']; } else { $ad_affiliate_id = ''; }
$credits = 'EvoLve theme by Theme4Press • Powered by WordPress '. get_bloginfo( 'name' ) .'
'. get_bloginfo( 'description' ) .'