Figured it out: went into zpMobile themeoptions.php and added:
setThemeOptionDefault('zenpage_homepage', 'none');
to the function Themeoptions and
gettext('Homepage') => array('key' => 'zenpage_homepage', 'type' => OPTION_TYPE_CUSTOM, 'desc' => gettext("Choose here any <em>un-published Zenpage page</em> (listed by <em>titlelink</em>) to act as your site's homepage instead the normal gallery index.")."<p class='notebox'>".gettext("<strong>Note:</strong> This of course overrides the <em>News on index page</em> option and your theme must be setup for this feature! Visit the theming tutorial for details.")."</p>"),
to the getoptionssupported function
then threw in
if($option == "zenpage_homepage") {
$unpublishedpages = query_full_array("SELECT titlelink FROM ".prefix('pages')." WHERE <code>show</code> != 1 ORDER by <code>sort_order</code>");
if(empty($unpublishedpages)) {
echo gettext("No unpublished pages available");
// clear option if no unpublished pages are available or have been published meanwhile
// so that the normal gallery index appears and no page is accidentally set if set to unpublished again.
setOption("zenpage_homepage", "none", false);
} else {
echo '<input type="hidden" name="'.CUSTOM_OPTION_PREFIX.'selector-zenpage_homepage" value="0" />' . "\n";
echo '<select id="'.$option.'" name="zenpage_homepage">'."\n";
if($currentValue === "none") {
$selected = " selected = 'selected'";
} else {
$selected = "";
}
echo "<option$selected>".gettext("none")."</option>";
foreach($unpublishedpages as $page) {
if($currentValue === $page["titlelink"]) {
$selected = " selected = 'selected'";
} else {
$selected = "";
}
echo "<option$selected>".$page["titlelink"]."</option>";
}
echo "</select>\n";
}
}
into function handleOption
All that did not work exactly, it printed a list of my pages on the splash page... until I figured out that I had to get rid of this code from pages.php
<?php if(empty($_GET['title'])) { ?>
<h2><?php echo gettext('Pages'); ?></h2>
<br />
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
<?php printPageMenu("list-top","","menu-active","submenu","menu-active",NULL,true,false,NULL); ?>
</ul>
<?php } else { ?>
now it works like a charm. I also bogarted the custom menu plugin and made a mobile version that lists my pages in the menu.
I figure someone could use this in the future. It was all theme tweaking, basically stealing from zenpage.