]> _ Git - cubeextranet.git/commitdiff
#1404
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 10 May 2017 19:00:27 +0000 (19:00 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 10 May 2017 19:00:27 +0000 (19:00 +0000)
inc/ws/Controlleur/class.ws.url.php
inc/ws/Util/class.ws.exporter.php
inc/ws/Util/html5/app/class.ws.html5.app.compiler.php

index f00478e93ebcc0b01e4ccf8f2825e33f8f3994c0..62f155ae817cddbc51e41ee84db1ce646c2e374b 100644 (file)
@@ -333,6 +333,7 @@ class wsUrl {
                $res .= '<tr><td class="min nowrap">' . __('Couleur de fond') . '</td><td>#' . form::field(array('settings[couleurD]', 'couleurD'), 6, 6, $collection->settings['couleurD']) . '</td></tr>';
                $res .= '<tr><td class="min nowrap">' . __('Nombre de publication par ligne') . '</td><td>' . form::field(array('settings[perline]', 'perline'), 1, 1, $collection->settings['perline']) . '</td></tr>';
                $res .= '<tr><td class="min nowrap">' . __('Contenu HTML alternatif') . '</td><td>' . form::textArea(array('settings[htmlalt]', 'htmlalt'), 100, 30, $collection->settings['htmlalt']) . '</td></tr>';
+               $res .= '<tr><td class="min nowrap">' . __('HTML Head') . '</td><td>' . form::textArea(array('settings[htmlhead]', 'htmlhead'), 100, 6, $collection->settings['htmlhead']) . '</td></tr>';
                $res .= '<tr><td class="min nowrap">' . __('Fichiers pour le contenu alternatif') . '</td><td><input type="file" name="filesalt" />' . form::hidden(array('theme[filesalt]', 'theme_' . $i), $collection->theme['filesalt']) . self::viewCollectionFile($collection->theme['filesalt'], $collection->collection_id) . '</td></tr>';
 
                $res .= '</table>';
index e395b803b84f6c14cda0522c936e4eb1864ca853..3675113dc0eb7be0a96aa099ccc045008fc11c48 100644 (file)
@@ -104,7 +104,7 @@ class wsExporter {
                );
                if ($os == 'ios') {
                        $phonegap->addFeature(CubeIT_Mobile_Phonegap::FEATURE_EXTERNALFILEUTIL);
-                       $phonegap->addFeature(CubeIT_Mobile_Phonegap_IOS::FEATURE_WKWEBVIEW);
+                       //$phonegap->addFeature(CubeIT_Mobile_Phonegap_IOS::FEATURE_WKWEBVIEW);
                } else if ($os == 'android') {
                        $phonegap->addFeature(CubeIT_Mobile_Phonegap::FEATURE_WEBINTENT);
                }
index 846b7c80445b667228b8e5c385865993b91852fe..eebdb5975615eff7298d7fa637ba56ed90e93ae7 100644 (file)
@@ -162,6 +162,9 @@ class wsHTML5AppCompiler {
                        $config['collection'] = $c;
                }
                $config['appver'] = $this->collection->settings['version'];
+               $index = file_get_contents($this->vdir . '/index.html');
+               $index = str_replace('  <!--$head-->', $this->collection->settings['htmlhead'], $index);
+               file_put_contents($this->vdir . '/index.html', $index);
                file_put_contents($this->vdir . '/data/app.js', 'DATAS = ' . CubeIT_Util_Json::encode($config) . ';');
        }