concrete5 逆引きリファレンス
現在適用されているテーマのパスを取得する
2021/05/04 18:25
    今のページに適用されているテーマのフルパスを取得する。
    
    現在ページに適用されているページのフルパスを取得する。
$v = View::getInstance();
echo $v->getThemePath(); 現在のテーマがpicbaseというテーマを適用している場合。
/application/themes/picbase
が返される。
テーマ内にある画像を表示する場合。
<?php
$v = View::getInstance();
$themePath = $v->getThemePath();
?>
<img src="<?php echo $themePath ?>/images/logo.png">このようなコードで、テーマ内のimagesフォルダのlogo.pngを表示できます。
New Content
2021/07/02 16:59
                                
                            
                            
                        2021/06/23 21:58
                                
                            
                            
                        2021/06/22 22:01
                                
                            
                            
                        2021/06/17 22:38
                                
                            
                            
                        2021/06/15 22:00