Drupal - Screen breakpoints condition

0 votes
160 views
added Jul 25, 2019 in Drupal by LC Marshal Captain (25,770 points)
<?php if(isDesktop()){
    include(drupal_get_path('theme', 'mytheme') . '/templates/include/news_desktop.inc.php');
  }else{
    include(drupal_get_path('theme', 'mytheme') . '/templates/include/news_mobile.inc.php');
  }
?>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...