Search found 11 matches

by CCDzine
Sun May 05, 2024 12:43 am
Forum: Themes
Topic: Display regular pages on a static page that is not the homepage
Replies: 3
Views: 368

Re: Display regular pages on a static page that is not the homepage

Try using a different variable for a new instance of the Page class as $page is reserved as a global for the page you are in...

$post = new Page( $key ).
by CCDzine
Fri Apr 12, 2024 1:46 am
Forum: General
Topic: Option: "Disallow Comments" as default setting
Replies: 4
Views: 1460

Re: Option: "Disallow Comments" as default setting

There is an unused 'allowComments' setting in the pages class. Find it in the $dbFields array in bl-kernel/pages.class.php.
by CCDzine
Thu Oct 26, 2023 9:39 pm
Forum: Themes
Topic: Change site URL inside the theme (BlogX)
Replies: 1
Views: 18621

Re: Change site URL inside the theme (BlogX)

Instead of `Theme::siteUrl()` in navbar.php try...

Code: Select all

echo $site->url();
by CCDzine
Tue Oct 24, 2023 12:57 am
Forum: General
Topic: Delete a folder image in a article
Replies: 5
Views: 9317

Re: Delete a folder image in a article

Maybe this bug is a feature of Bludit Pro & Time machine plugin.
by CCDzine
Mon Oct 02, 2023 12:02 pm
Forum: Themes
Topic: Change Font in Massively theme
Replies: 3
Views: 15563

Re: Change Font in Massively theme

Did you do a hard refresh in the browser to replace the cached stylesheet?
by CCDzine
Fri Sep 22, 2023 7:46 pm
Forum: Themes
Topic: popeye theme text width in blog posts
Replies: 7
Views: 23404

Re: popeye theme text width in blog posts

Did you put it in a style element?

Code: Select all

<style>
    @media (min-width: 992px) {
        .col-lg-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 75%;
    }
}
</style>
by CCDzine
Thu Sep 21, 2023 5:41 pm
Forum: Themes
Topic: popeye theme text width in blog posts
Replies: 7
Views: 23404

Re: popeye theme text width in blog posts

The width comes from the Bootstrap stylesheet.

Code: Select all

@media (min-width: 992px) {
  .col-lg-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
Change instances of '50%' to what you like. Or better to override with your own, additional stylesheet.of a style block in the <head>.
by CCDzine
Mon Sep 18, 2023 3:51 pm
Forum: Themes
Topic: How to get blog slug name?
Replies: 4
Views: 19458

Re: How to get blog slug name?

Try getting the field value. $site->getField( 'uriBlog' ); . This is what I do to use the slug as the menu entry... $blog_uri = $site->getField( 'uriBlog' ); if ( ! empty( $blog_uri ) ) { // Use sprintf() if you need to echo later. printf( '<li><a href="%s">%s</a></li>', $site->url() . str...
by CCDzine
Wed Sep 13, 2023 3:41 am
Forum: General
Topic: Bludit v4 - Alpha version
Replies: 32
Views: 256872

Re: Bludit v4 - Alpha version

<?php if(!isset($_GET['page'])){ $getPage = 1; } else { $getPage = $_GET['page']; } ?> <ul class="list-group flex-md-row"> <?php if($getPage != 1) { ?> <li class="list-group-item"> <a class="btn btn-dark" href="<?php echo Theme::siteUrl(); ?>?page=1">First</a...
by CCDzine
Tue Sep 12, 2023 3:35 pm
Forum: Languages
Topic: Translate Formatted Strings
Replies: 2
Views: 5277

Re: Translate Formatted Strings

Thank you. That got me thinking about it the other way around. I ended up with...

Code: Select all

$string = $L->get( 'default-string' );
if ( strstr( $L->get( 'replace-string' ), '%replace%' ) ) {
	$string = str_replace( '%replace%', my_function(), $L->get( 'replace-string' ) );
}