Пример #1
0
function wpsc_replace_bloginfo_title($input, $show)
{
    global $wpdb, $wp_query;
    if ($show == 'description') {
        $output = wpsc_obtain_the_title();
        if ($output != null) {
            return $output;
        }
    }
    return $input;
}
Пример #2
0
/**
 * Deprecated function
 *
 * @deprecated 3.8.9
 */
function wpsc_post_title_seo($title)
{
    _wpsc_deprecated_function(__FUNCTION__, '3.8.9');
    global $wpdb, $page_id, $wp_query;
    $new_title = wpsc_obtain_the_title();
    if ($new_title != '') {
        $title = $new_title;
    }
    return esc_html($title);
}
 function wpsc_change_aioseop_home_title($title)
 {
     global $aiosp, $aioseop_options;
     if (get_class($aiosp) == 'All_in_One_SEO_Pack' && $aiosp->is_static_front_page()) {
         $aiosp_home_title = $aiosp->internationalize($aioseop_options['aiosp_home_title']);
         $new_title = wpsc_obtain_the_title();
         if ($new_title != '') {
             $title = str_replace($aiosp_home_title, $new_title, $title);
         }
     }
     return $title;
 }
Пример #4
0
<?php

echo "<?xml version='1.0'?>";
?>
<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:g="http://base.google.com/ns/1.0">
    <channel>
        <title><![CDATA[<?php 
bloginfo('name');
?>
 - <?php 
echo wpsc_obtain_the_title();
?>
]]></title>
        <link><![CDATA[<?php 
echo wpsc_this_page_url();
?>
]]></link>
        <description></description>
        <generator><![CDATA[<?php 
_e('WP eCommerce', 'wpsc') . " " . WPSC_PRESENTABLE_VERSION;
?>
]]></generator>
        <atom:link href='<?php 
echo wpsc_this_page_url();
?>
' rel='self' type='application/rss+xml' />
<?php 
while (wpsc_have_products()) {
    wpsc_the_product();
    ?>
          <item>