Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Posted By: PieperLyhow can i make for the first site in pagination "/page/" and for other sites
for ($i = 1; $i <= $num_pages; $i++){
if ($i == $current_page){
$output .= '<span class="page-link"> ['.$i.'] </span>';
} else{
$args['plog_page'] = $i;
$output .= '<a href="'.generate_url($level, $id, $args).'" class="page-link">'.$i.'</a> ';
}
}
for ($i = 1; $i <= $num_pages; $i++){
if ($i == $current_page){
$output .= '<span class="page-link"> ['.$i.'] </span>';
} else if ($i == 1) {
$output .= '<a href="'.generate_url($level, $id).'" class="page-link">'.$i.'</a> ';
} else {
$args['plog_page'] = $i;
$output .= '<a href="'.generate_url($level, $id, $args).'" class="page-link">'.$i.'</a> ';
}
}
for ($i = 1; $i <= $num_pages; $i++){
if ($i == $current_page){
$output .= '<span class="page-link"> ['.$i.'] </span>';
} else if ($i == 1) {
$output .= '<a href="'.generate_url($level, $id).'" class="page-link">'.$i.'</a> ';
} else {
$args['plog_page'] = $i;
$output .= '<a href="'.generate_url($level, $id, $args).'" class="page-link">'.$i.'</a> ';
}
}
for ($i = 1; $i <= $num_pages; $i++){
if ($i == $current_page){
$output .= '<span class="page-link"> ['.$i.'] </span>';
} else {
if ($i != 1) {
$args['plog_page'] = $i;
}
$output .= '<a href="'.generate_url($level, $id, $args).'" class="page-link">'.$i.'</a> ';
}
}
1 to 8 of 8