Chcę aby pod obrazkiem prócz buttona share na facebooka był też button lubie to mam w skrypcie tak
<div class="like-this-shit-bitch">
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<a name="fb_share" class="fb-share" share_url="
<?php echo $url ?>">
<?php echo $config['Site']['facebookButtonText'] ?></a>
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<?php
$class = '';
$title = __('Dodaj do ulubionych');
if(isset($post['Favorite'])) { if( ! empty($post['Favorite']['user_id']) and
! empty($post['Favorite']['post_id'])) { $class .= ' added';
$title = __('Usuń z ulubionych');
}
}
?>
Po zrobieniu tak \/
<div class="like-this-shit-bitch">
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<a name="fb_share" class="fb-share" share_url="
<?php echo $url ?>">
<?php echo $config['Site']['facebookButtonText'] ?></a>
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<iframe src="
<?php echo $url ?>">
<?php echo $config['Site']['facebookButtonText'] ?>&layout=button_count&show_faces=true&width=450&action=like&font&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
<?php
$class = '';
$title = __('Dodaj do ulubionych');
if(isset($post['Favorite'])) { if( ! empty($post['Favorite']['user_id']) and
! empty($post['Favorite']['post_id'])) { $class .= ' added';
$title = __('Usuń z ulubionych');
}
}
?>
Pokazuje mi się małe okienko mojej strony więc jest źle ;p
a może tak
<div class="like-this-shit-bitch">
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<a name="fb_share" class="fb-share" share_url="
<?php echo $url ?>">
<?php echo $config['Site']['facebookButtonText'] ?></a>
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
<iframe src="
<?php echo $url ?>">
<?php echo $config['Site']['facebookButtonText'] ?>&layout=button_count&show_faces=true&width=450&action=like&font&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
<?php
$class = '';
$title = __('Dodaj do ulubionych');
if(isset($post['Favorite'])) { if( ! empty($post['Favorite']['user_id']) and
! empty($post['Favorite']['post_id'])) { $class .= ' added';
$title = __('Usuń z ulubionych');
}
}
?>
niewiem nie próbowałem ale wątpie
moja znajomość takich przeróbek jest zerowa wieć nie śmiać się
Ale jak by mógł ktoś pomóc to zgóry dziękuję