From: vincent@cubedesigners.com Date: Wed, 6 Jul 2022 08:25:29 +0000 (+0000) Subject: wait #5341 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2bf0a3fd98c0793d4c4279e3cc3f157b95a9c0e2;p=fluidbook-v3.git wait #5341 @1 --- diff --git a/css/fonts/icons/Glyphter.eot b/css/fonts/icons/Glyphter.eot new file mode 100644 index 0000000..64c114a Binary files /dev/null and b/css/fonts/icons/Glyphter.eot differ diff --git a/css/fonts/icons/Glyphter.svg b/css/fonts/icons/Glyphter.svg new file mode 100644 index 0000000..304d6d5 --- /dev/null +++ b/css/fonts/icons/Glyphter.svg @@ -0,0 +1 @@ +Generated by Glyphter \ No newline at end of file diff --git a/css/fonts/icons/Glyphter.ttf b/css/fonts/icons/Glyphter.ttf new file mode 100644 index 0000000..e27ec1c Binary files /dev/null and b/css/fonts/icons/Glyphter.ttf differ diff --git a/css/fonts/icons/Glyphter.woff b/css/fonts/icons/Glyphter.woff new file mode 100644 index 0000000..e29d8d2 Binary files /dev/null and b/css/fonts/icons/Glyphter.woff differ diff --git a/css/fonts/icons/style.css b/css/fonts/icons/style.css index a7edfa3..6046fd9 100644 --- a/css/fonts/icons/style.css +++ b/css/fonts/icons/style.css @@ -188,3 +188,23 @@ .fb-zone-zoom:before { content: "\53"; } +@font-face { + font-family: 'Glyphter'; + src: url('Glyphter.eot'); + src: url('Glyphter.eot?#iefix') format('embedded-opentype'), + url('Glyphter.woff') format('woff'), + url('Glyphter.ttf') format('truetype'), + url('Glyphter.svg#Glyphter') format('svg'); + font-weight: normal; + font-style: normal; +} +[class*='fb-icon-']:before{ + display: inline-block; + font-family: 'Glyphter' !important; + font-style: normal; + font-weight: normal; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale +} +.fb-icon-chef:before{content:'\0041';} \ No newline at end of file diff --git a/framework/application/controllers/MaintenanceController.php b/framework/application/controllers/MaintenanceController.php index 8ac5424..b583f35 100644 --- a/framework/application/controllers/MaintenanceController.php +++ b/framework/application/controllers/MaintenanceController.php @@ -26,24 +26,29 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController set_time_limit(0); ignore_user_abort(true); - $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'SiWyC@@1uW'); + $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'mT3HuyUdCd'); $references = Fluidbook_Model_Reference::factory()->find(); - $fluidbooks = array(); - foreach ($references as $reference) { - $ids = $reference->getFluidbookId(); - foreach ($ids as $locale => $id) { - if (!$id) { - continue; + if (isset($_GET['id'])) { + $fluidbooks = explode(',', $_GET['id']); + } else { + $fluidbooks = array(); + foreach ($references as $reference) { + $ids = $reference->getFluidbookId(); + foreach ($ids as $locale => $id) { + if (!$id) { + continue; + } + $fluidbooks[] = $id; } - $fluidbooks[] = $id; } } $fluidbooks = array_values(array_unique($fluidbooks)); + print_r($fluidbooks); $n = 0; foreach ($fluidbooks as $fluidbook) { - if ($n > 20) { + if ($n > 20 && !isset($_GET['all'])) { break; } try { @@ -51,7 +56,7 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController $dir = PUBLIC_PATH . '/references/' . $fluidbook . '-' . CubeIT_Text::str2URL(trim($meta->title)); try { - $res = $ws->installBookIfNeeded($fluidbook, $dir, 'auto'); + $res = $ws->installBookIfNeeded($fluidbook, $dir, isset($_GET['force']) ? time() : 'auto'); if ($res) { $n++; } @@ -69,7 +74,7 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController public static function importReference($id) { - $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'SiWyC@@1uW'); + $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'mT3HuyUdCd'); $meta = $ws->getMetadata($id); $dir = PUBLIC_PATH . '/references/' . $id . '-' . CubeIT_Text::str2URL(trim($meta->title)); $res = $ws->installBook($id, $dir, 'online', 3, function () use ($id) { @@ -78,6 +83,6 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController `$deleteCmd`; }); - echo $id . ' : ' . $dir . ' // ' . print_r($res,true); + echo $id . ' : ' . $dir . ' // ' . print_r($res, true); } }