- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
$title = get_the_title();
if ( $title == "Portfolio") $data['sl_portfolio_style'] = "2 Columns Portfolio";
if ( $title == "3 Columns Portfolio") $data['sl_portfolio_style'] = "3 Columns Portfolio";
if ( $title == "4 Columns Portfolio") $data['sl_portfolio_style'] = "4 Columns Portfolio";
if ( $title == "6 Columns Portfolio") $data['sl_portfolio_style'] = "6 Columns Portfolio";
if ( $title == "Portfolio") query_posts( '&post_type=portfolio-type&posts_per_page=4&paged=' . $paged );
if ( $title == "4 Columns Portfolio") query_posts( '&post_type=portfolio-type&posts_per_page=8&paged=' . $paged );
if ( $title == "6 Columns Portfolio") query_posts( '&post_type=portfolio-type&posts_per_page=12&paged=' . $paged );
if ( $title == "3 Columns Portfolio") query_posts( '&post_type=portfolio-type&posts_per_page=6&paged=' . $paged );
if ( $title == "Portfolio Right Sidebar") $data['sl_portfolio_style'] = "Portfolio with Sidebar";
if ( $title == "Portfolio Right Sidebar") $data['portfolio_sidebar_position'] = "Right Sidebar";
if ( $title == "Portfolio Left Sidebar") $data['sl_portfolio_style'] = "Portfolio with Sidebar";
if ( $title == "Portfolio Left Sidebar") $data['portfolio_sidebar_position'] = "Left Sidebar";
if ( $title == "Portfolio Left Sidebar") query_posts( '&post_type=portfolio-type&posts_per_page=12&paged=' . $paged );
if ( $title == "Portfolio Right Sidebar") query_posts( '&post_type=portfolio-type&posts_per_page=12&paged=' . $paged );
krypt 22.01.2013 23:35 # +2
tsybulskyserg 25.01.2013 12:44 # 0
Lure Of Chaos 23.01.2013 00:02 # +1
т.е. switch по строкам таки кошернее?
> Стоимость темы - 45 уе...
скорее за красивости, если они там есть, а не за код...
guest 25.01.2013 12:00 # +1
Lure Of Chaos 25.01.2013 12:04 # −1
guest 25.01.2013 18:29 # +1
tsybulskyserg 25.01.2013 12:39 # +1
ELked 26.01.2013 13:02 # −4