nooku is a Public Portfolio from Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

Create your own Portfolio or check out other free and subscription products from Assembla that will help accelerate your development projects.

nooku-examples

Commit 414

User picture
  • Author: christianhent
  • 2011-10-01 16:58 (over 2 years ago)

synced backend with fw development branch. added locatable behavior to ports. added com_files support. moved democontent from media to sites/default/images. please read the additional README file.

Files Affected

 
Show contents
413414
6
        $this->addSeparator()
6
        $this->addSeparator()
7
            ->addEnable()
7
            ->addEnable()
8
            ->addDisable()
8
            ->addDisable()
9
            ->addSeparator()
9
            ->addSeparator()
10
            ->addExport();
10
            ->addExport();
11
 
11
 
12
        return parent::getCommands();
12
        return parent::getCommands();
13
    }
13
    }
 
 
14
 
14
}
15
}
413414
25
            'href' => JRoute::_('index.php?option=com_harbour&view=boattypes'),
25
            'href' => JRoute::_('index.php?option=com_harbour&view=boattypes'),
26
            'active' => ($name == 'boattype')
26
            'active' => ($name == 'boattype')
27
        ));
27
        ));
 
 
28
 
 
 
29
        $this->addCommand('Media Manager', array(
 
 
30
            'href'   => JRoute::_('index.php?option=com_harbour&view=manage#!harbour'),
 
 
31
            'active' => ($name == 'manage')
 
 
32
        ));
28
 
33
 
29
        return parent::getCommands();
34
        return parent::getCommands();
30
    }
35
    }
413414
1
<?
1
<?
2
class ComHarbourControllerToolbarPorts extends ComDefaultControllerToolbarDefault
2
class ComHarbourControllerToolbarPorts extends ComDefaultControllerToolbarDefault
3
{
3
{
4
     public function getCommands()
4
    public function getCommands()
5
    {     
5
    {
6
        $this->addSeparator()
6
        $this->addSeparator()
7
            ->addEnable()
7
            ->addEnable()
8
            ->addDisable()
8
            ->addDisable()
9
            ->addSeparator()
9
            ->addSeparator()
10
            ->addExport();
10
            ->addExport();
11
        
11
 
12
        return parent::getCommands();
12
        return parent::getCommands();
13
    }
13
    }
 
 
14
 
 
 
15
 
14
}
16
}
Show contents
Show contents
413414
31
            'name'       => 'harbour_view_ports',
31
            'name'       => 'harbour_view_ports',
32
            'base'       => 'harbour_ports',
32
            'base'       => 'harbour_ports',
33
            //'behaviors'  => array('lockable', 'creatable', 'modifiable', 'sluggable',
'orderable', 'identifiable', $revisable, $taggable),
33
            //'behaviors'  => array('lockable', 'creatable', 'modifiable', 'sluggable',
'orderable', 'identifiable', $revisable, $taggable),
34
            'behaviors'  => array('lockable', 'creatable', 'modifiable', 'sluggable',
'orderable', 'identifiable'),
34
            'behaviors'  => array('lockable', 'creatable', 'modifiable', 'sluggable', 'orderable', 'identifiable', 'locatable'),
35
            'filters'    => array(
35
            'filters'    => array(
36
                 'description' => array('html', 'tidy'),
36
                 'description' => array('html', 'tidy'),
37
                 'slug'        => array('slug')
37
                 'slug'        => array('slug')
413414
34
  `image` varchar(25) NOT NULL,
34
  `image` varchar(25) NOT NULL,
35
  `wikilink` varchar(255) NOT NULL,
35
  `wikilink` varchar(255) NOT NULL,
36
  `wikimedia` varchar(255) NOT NULL,
36
  `wikimedia` varchar(255) NOT NULL,
37
  `latitude` varchar(10) NOT NULL,
37
  `title_lat` float(10,6) NOT NULL,
38
  `longitude` varchar(10) NOT NULL,
38
  `title_lng` float(10,6) NOT NULL,
39
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
39
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
40
  `access` int(11) NOT NULL DEFAULT '0',
40
  `access` int(11) NOT NULL DEFAULT '0',
41
  `ordering` bigint(20) unsigned NOT NULL,
41
  `ordering` bigint(20) unsigned NOT NULL,
...
 
...
 
118
INSERT INTO `#__harbour_boats` VALUES(42, 35, 23, 'Oseberg', 'oseberg', 'no.png', 'oseberg_longship.png',
'http://en.wikipedia.org/wiki/Oseberg_ship', 'http://upload.wikimedia.org/wikipedia/commons/9/95/Oseberg_longship.png', '', 5, 1,
0, 39, '<p>The Oseberg burial mound (Norwegian: Oseberghaugen ved Slagen from the Old Norse word haugr meaning mound or barrow) contained numerous
grave goods and two female human skeletons. The ships internment into its burial mound dates from 834, but parts of the ship date from around 800, and the ship
itself is thought to be older. It was excavated by Norwegian archaeologist Haakon Shetelig and Swedish archaeologist Gabriel Gustafson in 1904-1905. This ship
is widely celebrated and has been called one of the finest finds to have survived the Viking Age. The ship and some of its contents are displayed at the Viking
Ship Museum, in Bygdøy.</p><p>The ship is a clinker built ''karv'' ship built almost entirely of oak. It is c. 21.58 m long and
5.10 m broad, with a mast of approximately 10 m. With a sail of c. 90 m², the ship could achieve a speed up to 10 knots. The ship has 15 pairs of oar holes,
which means that 30 people could row the ship. Other fittings include a broad steering oar, iron anchor, gangplank and a bailer. The bow and stern of the ship
are elaborately decorated with complex woodcarvings in the characteristic "gripping beast" style, also known as the Oseberg style. Although seaworthy,
the ship is relatively frail, and it is thought to have been used only for coastal voyages.</p><p>The skeletons of two women were found in the
grave. One, aged 60-70, suffered badly from arthritis and other maladies; the second was aged 25–30. It is not clear which one was the more important in life
or whether one was sacrificed to accompany the other in death (see human sacrifice). The opulence of the burial rite and the grave-goods suggests that this was
a burial of very high status. One woman wore a very fine red wool dress with a lozenge twill pattern (a luxury commodity), and a fine white linen veil in a
gauze weave, while the other wore plainer blue wool dress with a wool veil, showing some stratification in their social status. Neither woman wore anything
entirely made of silk, although small silk strips were appliqued onto a tunic worn under the red dress. Dendrochronological analysis of timbers in the grave
chamber dates the burial to the autumn of 834. Although the high-ranking woman''s identity is unknown, it has been suggested that it is the burial of
Queen A…sa of the Ynglinge clan, mother of Halfdan the Black and grandmother of Harald Fairhair. This theory has been challenged, and some think that she may
have been a priestess. There were also the skeletal remains of 14 horses, an ox and three dogs found on the ship as well.</p><p>Still, recent tests
of the women suggest that they lived in Agder in Norway, just as Queen A…sa of the Ynglinge clan.</p><p>According to Per Holck of Oslo University,
the younger woman''s mitochondrial haplogroup was discovered to be U7. Her ancestors came to Norway from the Pontic littoral, probably Iran. Although
this fact has not been proved, artifacts recently found have provided new insight into the discovery.</p><p>Examinations of the skeletons have
provided more insight into their lives, though much remains a mystery. The younger woman had a broken collarbone, initially thought to be evidence that she was
a human sacrifice, but a closer examination showed that the bone had been healing for some time. Her teeth also showed signs she used a metal toothpick, a rare
9th century luxury.</p><p>The older woman appeared to have cancer, which was the likely cause of death. She also suffered from Morgagni''s
syndrome, a hormonal disorder that would have given her a masculine appearance, including a beard. Both women had a diet composed mainly of meat, another luxury
when most Vikings ate fish. However, there was not enough DNA to tell if they were related, for instance a queen and her daughter.</p><p>The grave
had been disturbed in antiquity, and precious metals were absent. Nevertheless, a great number of everyday items and artifacts were found during the 1904-1905
excavations. These included four elaborately decorated sleighs, a richly carved four-wheel wooden cart, bed-posts, wooden chests. More mundane items such as
agricultural and household tools were also found. A series of textiles included woolen garments, imported silks and narrow tapestries. The Oseberg burial is one
of the few sources of Viking age textiles, and the wooden cart is the only complete Viking age cart found so far. A peacock was also found; this is quite
surprising as peacocks are only native to hot climates, and Norway was certainly not one. It is also one of the few period examples of the use of what has been
dubbed the valknut symbol.</p>', '2010-05-31 09:20:12', 62, '2010-06-04 08:29:26', 62, '0000-00-00 00:00:00', 0, 0,
'6936c61a-3c15-102e-9a8b-d6d19268536a');
118
INSERT INTO `#__harbour_boats` VALUES(42, 35, 23, 'Oseberg', 'oseberg', 'no.png', 'oseberg_longship.png',
'http://en.wikipedia.org/wiki/Oseberg_ship', 'http://upload.wikimedia.org/wikipedia/commons/9/95/Oseberg_longship.png', '', 5, 1,
0, 39, '<p>The Oseberg burial mound (Norwegian: Oseberghaugen ved Slagen from the Old Norse word haugr meaning mound or barrow) contained numerous
grave goods and two female human skeletons. The ships internment into its burial mound dates from 834, but parts of the ship date from around 800, and the ship
itself is thought to be older. It was excavated by Norwegian archaeologist Haakon Shetelig and Swedish archaeologist Gabriel Gustafson in 1904-1905. This ship
is widely celebrated and has been called one of the finest finds to have survived the Viking Age. The ship and some of its contents are displayed at the Viking
Ship Museum, in Bygdøy.</p><p>The ship is a clinker built ''karv'' ship built almost entirely of oak. It is c. 21.58 m long and
5.10 m broad, with a mast of approximately 10 m. With a sail of c. 90 m², the ship could achieve a speed up to 10 knots. The ship has 15 pairs of oar holes,
which means that 30 people could row the ship. Other fittings include a broad steering oar, iron anchor, gangplank and a bailer. The bow and stern of the ship
are elaborately decorated with complex woodcarvings in the characteristic "gripping beast" style, also known as the Oseberg style. Although seaworthy,
the ship is relatively frail, and it is thought to have been used only for coastal voyages.</p><p>The skeletons of two women were found in the
grave. One, aged 60-70, suffered badly from arthritis and other maladies; the second was aged 25–30. It is not clear which one was the more important in life
or whether one was sacrificed to accompany the other in death (see human sacrifice). The opulence of the burial rite and the grave-goods suggests that this was
a burial of very high status. One woman wore a very fine red wool dress with a lozenge twill pattern (a luxury commodity), and a fine white linen veil in a
gauze weave, while the other wore plainer blue wool dress with a wool veil, showing some stratification in their social status. Neither woman wore anything
entirely made of silk, although small silk strips were appliqued onto a tunic worn under the red dress. Dendrochronological analysis of timbers in the grave
chamber dates the burial to the autumn of 834. Although the high-ranking woman''s identity is unknown, it has been suggested that it is the burial of
Queen A…sa of the Ynglinge clan, mother of Halfdan the Black and grandmother of Harald Fairhair. This theory has been challenged, and some think that she may
have been a priestess. There were also the skeletal remains of 14 horses, an ox and three dogs found on the ship as well.</p><p>Still, recent tests
of the women suggest that they lived in Agder in Norway, just as Queen A…sa of the Ynglinge clan.</p><p>According to Per Holck of Oslo University,
the younger woman''s mitochondrial haplogroup was discovered to be U7. Her ancestors came to Norway from the Pontic littoral, probably Iran. Although
this fact has not been proved, artifacts recently found have provided new insight into the discovery.</p><p>Examinations of the skeletons have
provided more insight into their lives, though much remains a mystery. The younger woman had a broken collarbone, initially thought to be evidence that she was
a human sacrifice, but a closer examination showed that the bone had been healing for some time. Her teeth also showed signs she used a metal toothpick, a rare
9th century luxury.</p><p>The older woman appeared to have cancer, which was the likely cause of death. She also suffered from Morgagni''s
syndrome, a hormonal disorder that would have given her a masculine appearance, including a beard. Both women had a diet composed mainly of meat, another luxury
when most Vikings ate fish. However, there was not enough DNA to tell if they were related, for instance a queen and her daughter.</p><p>The grave
had been disturbed in antiquity, and precious metals were absent. Nevertheless, a great number of everyday items and artifacts were found during the 1904-1905
excavations. These included four elaborately decorated sleighs, a richly carved four-wheel wooden cart, bed-posts, wooden chests. More mundane items such as
agricultural and household tools were also found. A series of textiles included woolen garments, imported silks and narrow tapestries. The Oseberg burial is one
of the few sources of Viking age textiles, and the wooden cart is the only complete Viking age cart found so far. A peacock was also found; this is quite
surprising as peacocks are only native to hot climates, and Norway was certainly not one. It is also one of the few period examples of the use of what has been
dubbed the valknut symbol.</p>', '2010-05-31 09:20:12', 62, '2010-06-04 08:29:26', 62, '0000-00-00 00:00:00', 0, 0,
'6936c61a-3c15-102e-9a8b-d6d19268536a');
119
INSERT INTO `#__harbour_boats` VALUES(43, 37, 1, 'MS Nordnorge', 'ms-nordnorge', 'no.png', 'ms_nordnorge.jpg',
'http://en.wikipedia.org/wiki/MS_Nordnorge',
'http://upload.wikimedia.org/wikipedia/commons/thumb/d/df/MS_Nordnorge_Bronnoysund.jpg/300px-MS_Nordnorge_Bronnoysund.jpg', '', 1, 1, 0, 41,
'<p>The MS Nordnorge (literally: Northern Norway) is a Hurtigruten (Norwegian Coastal Express) ship. It was built in 1997 by Kværner Kleven in
Ulsteinvik, Norway, as a sister ship to MS Polarlys and MS Nordkapp. The Nordnorge has a gross tonnage (GT) of 11,386 tons, crew capacity of 57, and can carry
up to 691 passengers.Since 2002 the Nordnorge has been employed in Antarctic cruise service during the northern hemisphere winter.There have been four
Hurtigruten ships with the name of Nordnorge, which is Norwegian for "Northern Norway" - the common name of the three northern Norwegian counties.
During 2009 Nordnorge did not operate on the coast of Norway. Very little information about its employment has been released by the owners but it appears that
the ship was hired out at the end of 2008 as a hotel ship in the Mediterranean, possibly in Venice.</p>\r\n<p>On June 16. 2011 at 19:45 CET, the
Norwegian Public Service broadcaster NRK2 started transmitting live and non-stop footage of MS Nordnorge during it''s 134 hour voyage from Bergen to
Kirkenes. The recording of the broadcast is available to watch here. During the voyage the stream was mostly live except for brief moments when the ship was out
of satellite coverage. During such occasions, a pre-recorded backup from an earlier journey at the same location was shown until live coverage was restored. All
material recorded from the bow camera is licensed under the Creative Commons Attribution - Share Alike licence and is fully available to be downloaded via
Bittorrent.</p>', '2011-06-25 09:26:34', 62, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 0,
'4869fd05-1675-495a-a05c-6b951d4a123f');
119
INSERT INTO `#__harbour_boats` VALUES(43, 37, 1, 'MS Nordnorge', 'ms-nordnorge', 'no.png', 'ms_nordnorge.jpg',
'http://en.wikipedia.org/wiki/MS_Nordnorge',
'http://upload.wikimedia.org/wikipedia/commons/thumb/d/df/MS_Nordnorge_Bronnoysund.jpg/300px-MS_Nordnorge_Bronnoysund.jpg', '', 1, 1, 0, 41,
'<p>The MS Nordnorge (literally: Northern Norway) is a Hurtigruten (Norwegian Coastal Express) ship. It was built in 1997 by Kværner Kleven in
Ulsteinvik, Norway, as a sister ship to MS Polarlys and MS Nordkapp. The Nordnorge has a gross tonnage (GT) of 11,386 tons, crew capacity of 57, and can carry
up to 691 passengers.Since 2002 the Nordnorge has been employed in Antarctic cruise service during the northern hemisphere winter.There have been four
Hurtigruten ships with the name of Nordnorge, which is Norwegian for "Northern Norway" - the common name of the three northern Norwegian counties.
During 2009 Nordnorge did not operate on the coast of Norway. Very little information about its employment has been released by the owners but it appears that
the ship was hired out at the end of 2008 as a hotel ship in the Mediterranean, possibly in Venice.</p>\r\n<p>On June 16. 2011 at 19:45 CET, the
Norwegian Public Service broadcaster NRK2 started transmitting live and non-stop footage of MS Nordnorge during it''s 134 hour voyage from Bergen to
Kirkenes. The recording of the broadcast is available to watch here. During the voyage the stream was mostly live except for brief moments when the ship was out
of satellite coverage. During such occasions, a pre-recorded backup from an earlier journey at the same location was shown until live coverage was restored. All
material recorded from the bow camera is licensed under the Creative Commons Attribution - Share Alike licence and is fully available to be downloaded via
Bittorrent.</p>', '2011-06-25 09:26:34', 62, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 0,
'4869fd05-1675-495a-a05c-6b951d4a123f');
120
 
120
 
121
INSERT INTO `#__harbour_ports` (`harbour_port_id`, `title`, `slug`, `flag`, `image`, `wikilink`, `wikimedia`, `latitude`, `longitude`, `enabled`, `access`, `ordering`, `description`, `created_on`, `created_by`, `modified_on`, `modified_by`, `locked_on`, `locked_by`, `hits`, `uuid`) VALUES
121
INSERT INTO `#__harbour_ports` (`harbour_port_id`, `title`, `slug`, `flag`, `image`, `wikilink`, `wikimedia`, `title_lat`, `title_lng`, `enabled`, `access`, `ordering`, `description`, `created_on`, `created_by`, `modified_on`, `modified_by`, `locked_on`, `locked_by`, `hits`, `uuid`) VALUES
122
(1, 'Hamburg', 'hamburg', 'de.png', 'hamburg.jpg', 'http://en.wikipedia.org/wiki/Port_of_Hamburg',
'http://upload.wikimedia.org/wikipedia/commons/9/99/Hamburg073110.JPG', '53.565278', '10.001389', 1, 0, 4, '<p>The Port
of Hamburg (German mostly: Hamburger Hafen) is a port in Hamburg, Germany, on the river Elbe. The harbour is located 110 kilometres from the mouth of the Elbe.
It is named Germany''s "Gateway to the World" and is the largest port in Germany. It is the third-largest port of Europe (after the port of
Rotterdam and the port of Antwerp), in terms of numbers of containers handled in 2004, it is the second-largest in Europe[3] and ninth-largest worldwide. 9.8
million containers were handled in Hamburg in 2007, a ten percent increase on 2006.</p><p>The harbour covers an area of 73.99 km',
'2010-04-28 09:01:17', 0, '2010-07-07 08:09:39', 62, '0000-00-00 00:00:00', 0, 31, ''),
122
(1, 'Hamburg', 'hamburg', 'de.png', 'hamburg.jpg', 'http://en.wikipedia.org/wiki/Port_of_Hamburg',
'http://upload.wikimedia.org/wikipedia/commons/9/99/Hamburg073110.JPG', '53.565278', '10.001389', 1, 0, 4, '<p>The Port
of Hamburg (German mostly: Hamburger Hafen) is a port in Hamburg, Germany, on the river Elbe. The harbour is located 110 kilometres from the mouth of the Elbe.
It is named Germany''s "Gateway to the World" and is the largest port in Germany. It is the third-largest port of Europe (after the port of
Rotterdam and the port of Antwerp), in terms of numbers of containers handled in 2004, it is the second-largest in Europe[3] and ninth-largest worldwide. 9.8
million containers were handled in Hamburg in 2007, a ten percent increase on 2006.</p><p>The harbour covers an area of 73.99 km',
'2010-04-28 09:01:17', 0, '2010-07-07 08:09:39', 62, '0000-00-00 00:00:00', 0, 31, ''),
123
(2, 'Bremerhaven', 'bremerhaven', 'de.png', 'bremerhaven.jpg', 'http://en.wikipedia.org/wiki/Bremerhaven',
'http://upload.wikimedia.org/wikipedia/commons/3/32/Skyline_bremerhaven_uf1.jpg', '53.55', '8.583333', 1, 0, 3,
'<p>Bremerhaven is the seaport of the free city-state of Bremen, a federal state of Germany. It forms an enclave in the state of Lower Saxony and is
located at the mouth of the River Weser on its eastern bank, opposite the town of Nordenham. Though a relatively new city, it has a long history as a trade port
and today is one of the most important German ports, playing a crucial role in Germany''s trade. The town was founded in 1827, but there were
settlements, such as Lehe, in the vicinity as early as the 12th century. These tiny villages were built on small islands in the swampy estuary. In 1381 the city
of Bremen  captured de facto rule at the lower Weser stream, including Lehe, later therefore called Bremerlehe. Early in 1653 Swedish 
Bremen-Verden''s troops captured Bremerlehe by force.</p>', '2010-04-28 09:01:39', 0, '2010-11-16 10:46:22', 62,
'0000-00-00 00:00:00', 0, 2, ''),
123
(2, 'Bremerhaven', 'bremerhaven', 'de.png', 'bremerhaven.jpg', 'http://en.wikipedia.org/wiki/Bremerhaven',
'http://upload.wikimedia.org/wikipedia/commons/3/32/Skyline_bremerhaven_uf1.jpg', '53.55', '8.583333', 1, 0, 3,
'<p>Bremerhaven is the seaport of the free city-state of Bremen, a federal state of Germany. It forms an enclave in the state of Lower Saxony and is
located at the mouth of the River Weser on its eastern bank, opposite the town of Nordenham. Though a relatively new city, it has a long history as a trade port
and today is one of the most important German ports, playing a crucial role in Germany''s trade. The town was founded in 1827, but there were
settlements, such as Lehe, in the vicinity as early as the 12th century. These tiny villages were built on small islands in the swampy estuary. In 1381 the city
of Bremen  captured de facto rule at the lower Weser stream, including Lehe, later therefore called Bremerlehe. Early in 1653 Swedish 
Bremen-Verden''s troops captured Bremerlehe by force.</p>', '2010-04-28 09:01:39', 0, '2010-11-16 10:46:22', 62,
'0000-00-00 00:00:00', 0, 2, ''),
124
(3, 'Rotterdam', 'rotterdam', 'nl.png', 'rotterdam.jpg', 'http://en.wikipedia.org/wiki/Rotterdam',
'http://upload.wikimedia.org/wikipedia/commons/a/a2/Open_market_in_rotterdam.JPG', '51.921667', '4.481111', 1, 0, 1,
'<p>Rotterdam is a city and municipality in the Dutch province of South Holland, situated in the west of the Netherlands. The municipality is the
second largest in the country, with a population of 603,425 as of March 2010. The greater Rotterdam area, best known as Rotterdam-Rijnmond contains around 1.3
million people (by some standards it rather approaches 2 million inhabitants). It forms the southern part of the Randstad, the sixth-largest  metropolitan area
in Europe, with a population of 6.7 million.</p><p>The port of Rotterdam is the largest in Europe. From 1962 to 2004 it was the worlds busiest port
until surpassed by Shanghai. Rotterdam is on the banks of the river Nieuwe Maas, one of the channels in the delta formed by the Rhine and Meuse rivers. The name
Rotterdam derives from a dam in the Rotte river.</p>', '2010-04-28 09:02:06', 0, '2010-11-16 10:30:55', 62, '0000-00-00
00:00:00', 0, 2, ''),
124
(3, 'Rotterdam', 'rotterdam', 'nl.png', 'rotterdam.jpg', 'http://en.wikipedia.org/wiki/Rotterdam',
'http://upload.wikimedia.org/wikipedia/commons/a/a2/Open_market_in_rotterdam.JPG', '51.921667', '4.481111', 1, 0, 1,
'<p>Rotterdam is a city and municipality in the Dutch province of South Holland, situated in the west of the Netherlands. The municipality is the
second largest in the country, with a population of 603,425 as of March 2010. The greater Rotterdam area, best known as Rotterdam-Rijnmond contains around 1.3
million people (by some standards it rather approaches 2 million inhabitants). It forms the southern part of the Randstad, the sixth-largest  metropolitan area
in Europe, with a population of 6.7 million.</p><p>The port of Rotterdam is the largest in Europe. From 1962 to 2004 it was the worlds busiest port
until surpassed by Shanghai. Rotterdam is on the banks of the river Nieuwe Maas, one of the channels in the delta formed by the Rhine and Meuse rivers. The name
Rotterdam derives from a dam in the Rotte river.</p>', '2010-04-28 09:02:06', 0, '2010-11-16 10:30:55', 62, '0000-00-00
00:00:00', 0, 2, ''),
...
 
...
 
198
COUNT( DISTINCT b.harbour_boat_id ) AS boats
198
COUNT( DISTINCT b.harbour_boat_id ) AS boats
199
FROM `#__harbour_ports` AS tbl
199
FROM `#__harbour_ports` AS tbl
200
LEFT JOIN `#__harbour_boats` AS b ON b.harbour_port_id = tbl.harbour_port_id
200
LEFT JOIN `#__harbour_boats` AS b ON b.harbour_port_id = tbl.harbour_port_id
201
GROUP BY harbour_port_id
201
GROUP BY harbour_port_id
 
 
202
 
 
 
203
INSERT INTO `#__files_containers` (`files_container_id`, `slug`, `title`, `path`, `parameters`) VALUES
 
 
204
(2, 'boats', 'Boats', 'images/harbour/boats', '{"upload_extensions":"bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls","upload_maxsize":"10485760","allowed_mimetypes":"image\\/jpeg,image\\/gif,image\\/png,imagee\\/bmp,application\\/x-shockwave-flash,application\\/msword,application\\/excel,application\\/pdf,application\\/powerpoint,text\\/plain,application\\/x-zip","illegal_mimetypes":"text\\/html","restrict_uploads":1,"check_mime":1,"allowed_media_usergroup":3}'),
 
 
205
(3, 'ports', 'Ports', 'images/harbour/ports', '{"upload_extensions":"bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls","upload_maxsize":"10485760","allowed_mimetypes":"image\\/jpeg,image\\/gif,image\\/png,imagee\\/bmp,application\\/x-shockwave-flash,application\\/msword,application\\/excel,application\\/pdf,application\\/powerpoint,text\\/plain,application\\/x-zip","illegal_mimetypes":"text\\/html","restrict_uploads":1,"check_mime":1,"allowed_media_usergroup":3}'),
 
 
206
(4, 'boattypes', 'Boattypes', 'images/harbour/types', '{"upload_extensions":"bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls","upload_maxsize":"10485760","allowed_mimetypes":"image\\/jpeg,image\\/gif,image\\/png,imagee\\/bmp,application\\/x-shockwave-flash,application\\/msword,application\\/excel,application\\/pdf,application\\/powerpoint,text\\/plain,application\\/x-zip","illegal_mimetypes":"text\\/html","restrict_uploads":1,"check_mime":1,"allowed_media_usergroup":3}'),
 
 
207
(5, 'harbour', 'Harbour', 'images/harbour', '{"upload_extensions":"bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls","upload_maxsize":"10485760","allowed_mimetypes":"image\\/jpeg,image\\/gif,image\\/png,imagee\\/bmp,application\\/x-shockwave-flash,application\\/msword,application\\/excel,application\\/pdf,application\\/powerpoint,text\\/plain,application\\/x-zip","illegal_mimetypes":"text\\/html","restrict_uploads":1,"check_mime":1,"allowed_media_usergroup":3}');
413414
75
                ->where('flag', '=', '', 'OR')
75
                ->where('flag', '=', '', 'OR')
76
                ->where('wikilink', '=', '', 'OR')
76
                ->where('wikilink', '=', '', 'OR')
77
                ->where('wikimedia', '=', '', 'OR')
77
                ->where('wikimedia', '=', '', 'OR')
78
                ->where('latitude', '=', '', 'OR')
78
                ->where('title_lat', '=', '', 'OR')
79
                ->where('longitude', '=', '', 'OR')
79
                ->where('title_lng', '=', '', 'OR')
80
                ->where('description', '=', '', 'OR'); 
80
                ->where('description', '=', '', 'OR');
81
        }
81
        }
82
 
82
 
83
        parent::_buildQueryWhere($query);
83
        parent::_buildQueryWhere($query);
413414
11
 
11
 
12
/**
12
/**
13
 * Description
13
 * Description
14
 *   
14
 *
15
 * @author       Christian Hent <hent.dev@googlemail.com>
15
 * @author       Christian Hent <hent.dev@googlemail.com>
16
 * @category    Nooku
16
 * @category    Nooku
17
 * @package        Nooku_Examples
17
 * @package        Nooku_Examples
...
 
...
 
72
            'directory'  => KRequest::root()->path.'/images/stories/',
72
            'directory'  => KRequest::root()->path.'/images/stories/',
73
            'attribs'    => array('id' => $config->name)
73
            'attribs'    => array('id' => $config->name)
74
        ));
74
        ));
75
            
75
 
76
        //$base = KRequest::url()->setPath($config->directory)->get(KHttpUrl::PART_BASE);
76
        //$base = KRequest::url()->setPath($config->directory)->get(KHttpUrl::PART_BASE);
77
        $base = KRequest::root().str_replace(JPATH_ROOT, '', $config->directory);
77
        $base = KRequest::root().str_replace(JPATH_ROOT, '', $config->directory);
78
         
78
 
79
        jimport( 'joomla.filesystem.folder' );
79
        jimport( 'joomla.filesystem.folder' );
80
        $files  = JFolder::files( str_replace( KRequest::root()->path, '', JPATH_ROOT).DS.$config->directory );
80
        $files  = JFolder::files( str_replace( KRequest::root()->path, '', JPATH_ROOT).DS.$config->directory );
81
        $options[]    = $this->option(array('text' => '- '.JText::_( 'Select image').' -')); 
81
        $options[]    = $this->option(array('text' => '- '.JText::_( 'Select image').' -'));
82
            
82
 
83
        foreach ($files as $file) 
83
        foreach ($files as $file)
84
        {
84
        {
85
            if (preg_match("#".$config->extensions."#i", $file)) 
85
            if (preg_match("#".$config->extensions."#i", $file))
86
            {
86
            {
87
                $options[]     = $this->option(array('text' => $file, 'value' => $file));
87
                $options[]     = $this->option(array('text' => $file, 'value' => $file));
88
                $preload[]    = $base.$file;
88
                $preload[]    = $base.$file;
...
 
...
 
89
            }
89
            }
90
        }
90
        }
91
 
91
 
92
         if (!$config->javascript) 
92
         if (!$config->javascript)
93
        {
93
        {
94
            $config->javascript = "
94
            $config->javascript = "
95
            new Asset.images(".json_encode($preload).");
95
            new Asset.images(".json_encode($preload).");
...
 
...
 
99
                });
99
                });
100
            });
100
            });
101
            ";
101
            ";
102
            
102
 
103
            //KFactory::get('lib.joomla.document')->addScriptDeclaration($config->javascript);
103
            //KFactory::get('lib.joomla.document')->addScriptDeclaration($config->javascript);
104
            //temp fix
104
            //temp fix
105
            JFactory::getDocument()->addScriptDeclaration($config->javascript);
105
            JFactory::getDocument()->addScriptDeclaration($config->javascript);
...
 
...
 
112
            'attribs'   => $config->attribs
112
            'attribs'   => $config->attribs
113
        ));
113
        ));
114
 
114
 
115
        return $list; 
115
        return $list;
116
    }
116
    }
117
    
117
 
118
    
118
 
119
}
119
}
413414
57
            <?=@helper('com://admin/harbour.template.helper.listbox.conditions', array('name' => 'harbour_condition_id',
'selected' => $boat->harbour_condition_id, 'attribs' => array('class' => 'required'))) ?><br />
57
            <?=@helper('com://admin/harbour.template.helper.listbox.conditions', array('name' => 'harbour_condition_id',
'selected' => $boat->harbour_condition_id, 'attribs' => array('class' => 'required'))) ?><br />
58
 
58
 
59
            <label for="flag" class="mainlabel"><?= @text('Boat Flag'); ?></label>
59
            <label for="flag" class="mainlabel"><?= @text('Boat Flag'); ?></label>
60
            <?=@helper('listbox.images', array('name' => 'flag', 'directory' => 'media://com_harbour/images/flags/', 'attribs' => array('class' => 'required')) ) ?>
60
            <?=@helper('listbox.images', array('name' => 'flag', 'directory' => '/sites/default/images/harbour/flags/', 'attribs' => array('class' => 'required')) ) ?>
61
            <img src="media://com_harbour/images/flags/<?= $boat->flag;?>" id="flag-preview" />
61
            <img src="../sites/default/images/harbour/flags/<?= $boat->flag;?>" id="flag-preview" />
62
 
62
 
63
        </div>
63
        </div>
64
 
64
 
...
 
...
 
66
            <h3><?= @text('Media'); ?></h3>
66
            <h3><?= @text('Media'); ?></h3>
67
 
67
 
68
            <label for="image" class="mainlabel"><?= @text('Boat Image'); ?></label>            
68
            <label for="image" class="mainlabel"><?= @text('Boat Image'); ?></label>            
69
            <?=@helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'image', 'directory' => 'media://com_harbour/images/boats/')) ?><br />
69
            <?=@helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'image', 'directory' => '/sites/default/images/harbour/boats/')) ?><br />
70
 
70
 
71
            <label for="image-preview" class="mainlabel"><?= @text('Boat Image Preview') ?></label>
71
            <label for="image-preview" class="mainlabel"><?= @text('Boat Image Preview') ?></label>
72
            <img src="media://com_harbour/images/boats/<?= $boat->image ?>" id="image-preview" /><br /><br />
72
            <img src="../sites/default/images/harbour/boats/<?= $boat->image ?>" id="image-preview" /><br /><br />
73
 
73
 
74
            <label for="wikilink" class="mainlabel"><?= @text('Boat WikiLink'); ?></label>
74
            <label for="wikilink" class="mainlabel"><?= @text('Boat WikiLink'); ?></label>
75
            <input id="wikilink" type="text" name="wikilink" class="wikilink" value="<?= $boat->wikilink;
?>" /><br />
75
            <input id="wikilink" type="text" name="wikilink" class="wikilink" value="<?= $boat->wikilink;
?>" /><br />
413414
72
 
72
 
73
            <td align="left">
73
            <td align="left">
74
                <span class="editlinktip hasTip" title="<?= @text('Edit the Boat Tooltip Title')?> <?=
@escape($boat->title); ?>::<?= @escape(substr($boat->description, 0, 300)).'...'; ?>">
74
                <span class="editlinktip hasTip" title="<?= @text('Edit the Boat Tooltip Title')?> <?=
@escape($boat->title); ?>::<?= @escape(substr($boat->description, 0, 300)).'...'; ?>">
75
                    <img src="media://com_harbour/images/flags/<?= $boat->flag;?>" />
75
                    <img src="../sites/default/images/harbour/flags/<?= $boat->flag;?>" />
76
                    <a href="<?= @route('view=boat&id='.$boat->id); ?>">
76
                    <a href="<?= @route('view=boat&id='.$boat->id); ?>">
77
                        <?=$boat->title?>
77
                        <?=$boat->title?>
78
                    </a>
78
                    </a>
413414
21
        <tr class="<?php echo 'row'.$m; ?>" style="line-height: 28px;">
21
        <tr class="<?php echo 'row'.$m; ?>" style="line-height: 28px;">
22
            <td>
22
            <td>
23
                <span class="editlinktip hasTip" title="<?= @text('Edit the boat type tooltip title')?> <?=
@escape($boat->title); ?>::">
23
                <span class="editlinktip hasTip" title="<?= @text('Edit the boat type tooltip title')?> <?=
@escape($boat->title); ?>::">
24
                    <img src="media://com_harbour/images/flags/<?= $boat->flag;?>" />
24
                    <img src="../sites/default/images/harbour/flags/<?= $boat->flag;?>" />
25
                    <a href="<?= @route('view=boat&id='.$boat->id); ?>"><?=$boat->title?></a>
25
                    <a href="<?= @route('view=boat&id='.$boat->id); ?>"><?=$boat->title?></a>
26
                </span>
26
                </span>
27
            </td>
27
            </td>
413414
27
        <div class="panel clearfix">
27
        <div class="panel clearfix">
28
            <h3><?= @text('Boattype Media'); ?></h3>
28
            <h3><?= @text('Boattype Media'); ?></h3>
29
            <label for="image_field" class="mainlabel"><?= @text('Boattype Image'); ?></label>
29
            <label for="image_field" class="mainlabel"><?= @text('Boattype Image'); ?></label>
30
            <?= @helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'image', 'directory' => 'media://com_harbour/images/types/') ) ?><br />
30
            <?= @helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'image', 'directory' => '/sites/default/images/harbour/types/') ) ?><br />
31
            <label for="image-preview" class="mainlabel"><?= @text('Boattype Image Preview'); ?></label>
31
            <label for="image-preview" class="mainlabel"><?= @text('Boattype Image Preview'); ?></label>
32
            <img src="media://com_harbour/images/types/<?= $boattype->image;?>" id="image-preview" /><br /><br />
32
            <img src="../sites/default/images/harbour/types/<?= $boattype->image;?>" id="image-preview" /><br /><br />
33
 
33
 
34
            <label for="wikilink_field" class="mainlabel"><?= @text('Boattype Wikilink'); ?></label>
34
            <label for="wikilink_field" class="mainlabel"><?= @text('Boattype Wikilink'); ?></label>
35
            <input id="wikilink_field" type="text" name="wikilink" class="wikilink" value="<?=
$boattype->wikilink; ?>" /><br />
35
            <input id="wikilink_field" type="text" name="wikilink" class="wikilink" value="<?=
$boattype->wikilink; ?>" /><br />
413414
21
{
21
{
22
    public function display()
22
    public function display()
23
    {
23
    {
24
        
24
 
25
        //Set the joomla menu to visible
25
        //Set the joomla menu to visible
26
        KRequest::set('get.hidemainmenu', 0);
26
        KRequest::set('get.hidemainmenu', 0);
27
 
27
 
...
 
...
 
31
        foreach($list as $type)
31
        foreach($list as $type)
32
        {
32
        {
33
            $list     = KFactory::get('com://admin/harbour.model.'.$type);
33
            $list     = KFactory::get('com://admin/harbour.model.'.$type);
34
            $drafts      = KFactory::get('com://admin/harbour.model.'.$type)->set('draft', 1)->getTotal();
34
            $drafts   = KFactory::get('com://admin/harbour.model.'.$type)->draft(1)->getTotal();
35
            $total    = KFactory::get('com://admin/harbour.model.'.$type)->getTotal();
35
            $total    = KFactory::get('com://admin/harbour.model.'.$type)->getTotal();
36
 
36
 
37
            $this->assign(array(
37
            $this->assign(array(
413414
9
 
9
 
10
<div class="-koowa-box-flex -koowa-box-scroll">
10
<div class="-koowa-box-flex -koowa-box-scroll">
11
 
11
 
12
<div style="text-align: left; width:55%;float:left; margin-left: 10px; margin-right: 10px;">
12
<div style="text-align: left; width:55%;float:left; margin-left: 10px; margin-right: 0px;">
13
    <?= @helper('tabs.startPane', array('id' => 'quick')) ?>
13
    <?= @helper('tabs.startPane', array('id' => 'quick')) ?>
14
    
14
 
15
    <?= @helper('tabs.startPanel', array('title' => @text('Quick Details'))) ?>
15
    <?= @helper('tabs.startPanel', array('title' => @text('Quick Details'))) ?>
16
        <div style="text-align:left; height:350px;">
16
        <div style="text-align:left; height:350px;">
17
            <?= @template('com://admin/harbour.views.dashboard.default_stats'); ?><br />
17
            <?= @template('com://admin/harbour.views.dashboard.default_stats'); ?><br />
18
        </div>
18
        </div>
19
     <?= @helper('tabs.endPanel') ?>
19
     <?= @helper('tabs.endPanel') ?>
20
    
20
 
 
 
21
 
21
    <?= @helper('tabs.startPanel', array('title' => @text('Drafts Boats'))) ?>
22
    <?= @helper('tabs.startPanel', array('title' => @text('Drafts Boats'))) ?>
22
        <div style="text-align:center; height:350px;">
23
        <div style="text-align:center; height:350px;">
23
            <?= @overlay(array('url' =>
@route('&view=boats&sort=modified_on&draft=1&limit=8&layout=widget#draft-boats'))) ?>
24
            <?= @overlay(array('url' =>
@route('&view=boats&sort=modified_on&draft=1&limit=8&layout=widget#draft-boats'))) ?>
24
        </div>
25
        </div>
25
    <?= @helper('tabs.endPanel') ?>
26
    <?= @helper('tabs.endPanel') ?>
26
        
27
 
27
    <?= @helper('tabs.startPanel', array('title' => @text('Drafts Ports'))) ?>    
28
    <?= @helper('tabs.startPanel', array('title' => @text('Drafts Ports'))) ?>
28
        <div style="text-align:center; height:350px;">
29
        <div style="text-align:center; height:350px;">
29
            <?= @overlay(array('url' => @route('&view=ports&draft=1&limit=8&layout=widget#draft-ports'))) ?>
30
            <?= @overlay(array('url' => @route('&view=ports&draft=1&limit=8&layout=widget#draft-ports'))) ?>
30
        </div>
31
        </div>
31
    <?= @helper('tabs.endPanel') ?>
32
    <?= @helper('tabs.endPanel') ?>
32
    
33
 
33
    <?= @helper('tabs.startPanel', array('title' => @text('Log Boats'))) ?>
34
    <?= @helper('tabs.startPanel', array('title' => @text('Log Boats'))) ?>
34
        <div style="text-align:center; height:350px;">
35
        <div style="text-align:center; height:350px;">
35
            <div id="logs-boats"><?//= $boatslog ?></div>
36
            <div id="logs-boats"><?//= $boatslog ?></div>
...
 
...
 
38
 
39
 
39
    <?= @helper('tabs.startPanel', array('title' => @text('Log Ports'))) ?>
40
    <?= @helper('tabs.startPanel', array('title' => @text('Log Ports'))) ?>
40
        <div style="text-align:center; height:350px;">
41
        <div style="text-align:center; height:350px;">
41
            <div id="logs-ports"><?//= $portslog ?></div>   
42
            <div id="logs-ports"><?//= $portslog ?></div>
42
        </div>
43
        </div>
43
     <?= @helper('tabs.endPanel') ?>
44
     <?= @helper('tabs.endPanel') ?>
44
    
45
 
45
    <?= @helper('tabs.endPane') ?>
46
    <?= @helper('tabs.endPane') ?>
 
 
47
 
 
 
48
    <br />
 
 
49
 
 
 
50
    <div id="portscluster"><?= $portscluster ?></div>
46
 
51
 
47
    <br />
 
 
48
    
 
 
49
    <div><?= $portscluster ?></div>
 
 
50
</div>
52
</div>
51
 
53
 
 
 
54
 
52
<div style="width:40%; height: 100%; float:right; margin-top: 10px; margin-left: 10px; margin-right: 10px;" class="panel">
55
<div style="width:40%; height: 100%; float:right; margin-top: 10px; margin-left: 10px; margin-right: 10px;" class="panel">
53
    <h3>&nbsp;</h3>
56
    <h3>&nbsp;</h3>
54
    <div style="margin: 10px;">
57
    <div style="margin: 10px;">
...
 
...
 
56
    </div>
59
    </div>
57
</div>
60
</div>
58
 
61
 
59
</div>
62
</div>
 
 
63
 
413414
1
<? /** $Id: default_welcome.php 175 2010-10-27 01:38:02Z johanjanssens $ */ ?>
1
<? /** $Id: default_welcome.php 175 2010-10-27 01:38:02Z johanjanssens $ */ ?>
2
<? defined('KOOWA') or die('Restricted access'); ?>
2
<? defined('KOOWA') or die('Restricted access'); ?>
3
<img  class="logo" alt="<?= @text('Harbour Logo Alt Text');?>" src="media://com_harbour/images/dashboard/harbour_logo.png" />
3
<img  class="logo" alt="<?= @text('Harbour Logo Alt Text');?>" src="../sites/default/images/harbour/dashboard/harbour_logo.png" />
4
<h1 class="about"><?= @text('About Title') ?></h1>
4
<h1 class="about"><?= @text('About Title') ?></h1>
5
<?= @text('About Text') ?>
5
<?= @text('About Text') ?>
6
<h2 style="text-align: right;"><?= @text('Contributors Title') ?></h2>
6
<h2 style="text-align: right;"><?= @text('Contributors Title') ?></h2>
Show contents
Show contents
Show contents
413414
51
            <h3><?= @text('SPEC'); ?></h3>
51
            <h3><?= @text('SPEC'); ?></h3>
52
 
52
 
53
            <label for="flag" class="mainlabel"><?= @text('Port Flag'); ?></label>
53
            <label for="flag" class="mainlabel"><?= @text('Port Flag'); ?></label>
54
            <?=@helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'flag', 'directory' => 'media://com_harbour/images/flags/', 'attribs' => array('class' => 'required')) ) ?>
54
            <?=@helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'flag', 'directory' => '/sites/default/images/harbour/flags/', 'attribs' => array('class' => 'required')) ) ?>
55
            <img src="media://com_harbour/images/flags/<?= $port->flag;?>" id="flag-preview" /><br />
55
            <img src="../sites/default/images/harbour/flags/<?= $port->flag;?>" id="flag-preview" /><br />
56
 
56
 
57
            <label for="latitude" class="mainlabel"><?= @text('Port Geo Lat') ?></label>
57
            <label for="latitude" class="mainlabel"><?= @text('Port Geo Lat') ?></label>
58
            <input id="latitude" type="text" name="latitude" class="geocode validate-numeric" value="<?= $port->latitude ?>" /><br />
58
            <input id="title_lat" type="text" name="title_lat" class="geocode validate-numeric" value="<?= $port->title_lat ?>" /><br />
59
 
59
 
60
            <label for="longitude" class="mainlabel"><?= @text('Port Geo Lng') ?></label>
60
            <label for="longitude" class="mainlabel"><?= @text('Port Geo Lng') ?></label>
61
            <input id="longitude" type="text" name="longitude" class="geocode validate-numeric" value="<?= $port->longitude ?>" />
61
            <input id="title_lng" type="text" name="title_lng" class="geocode validate-numeric" value="<?= $port->title_lng ?>" />
62
        </div>
62
        </div>
63
 
63
 
64
        <div class="panel clearfix">
64
        <div class="panel clearfix">
...
 
...
 
65
            <h3><?= @text('Media'); ?></h3>
65
            <h3><?= @text('Media'); ?></h3>
66
 
66
 
67
            <label for="image" class="mainlabel"><?= @text('Port Image'); ?></label>
67
            <label for="image" class="mainlabel"><?= @text('Port Image'); ?></label>
68
            <?=@helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'image', 'directory' => 'media://com_harbour/images/ports/') ) ?><br />
68
            <?=@helper('com://admin/harbour.template.helper.listbox.images', array('name' => 'image', 'directory' => '/sites/default/images/harbour/ports/') ) ?><br />
69
 
69
 
70
            <label for="image-preview" class="mainlabel"><?= @text('Port Image Preview') ?></label>
70
            <label for="image-preview" class="mainlabel"><?= @text('Port Image Preview') ?></label>
71
            <img src="media://com_harbour/images/ports/<?= $port->image ?>" id="image-preview" /><br /><br />
71
            <img src="../sites/default/images/harbour/ports/<?= $port->image ?>" id="image-preview" /><br /><br />
72
 
72
 
73
            <label for="wikilink" class="mainlabel"><?= @text('Port Wikilink') ?></label>
73
            <label for="wikilink" class="mainlabel"><?= @text('Port Wikilink') ?></label>
74
            <input id="wikilink" type="text" name="wikilink" class="wikilink" value="<?= $port->wikilink
?>" /><br />
74
            <input id="wikilink" type="text" name="wikilink" class="wikilink" value="<?= $port->wikilink
?>" /><br />
413414
62
            </td>
62
            </td>
63
            <td align="left">
63
            <td align="left">
64
                <span class="editlinktip hasTip" title="<?= @text('Edit the port tooltip title')?> <?=
@escape($port->title); ?>::<?= @escape(substr($port->description, 0, 300)).'...'; ?>">
64
                <span class="editlinktip hasTip" title="<?= @text('Edit the port tooltip title')?> <?=
@escape($port->title); ?>::<?= @escape(substr($port->description, 0, 300)).'...'; ?>">
65
                    <img src="media://com_harbour/images/flags/<?= $port->flag ?>" />
65
                    <img src="../sites/default/images/harbour/flags/<?= $port->flag ?>" />
66
                    <a href="<?= @route('view=port&id='.$port->id); ?>">
66
                    <a href="<?= @route('view=port&id='.$port->id); ?>">
67
                        <?=$port->title?>
67
                        <?=$port->title?>
68
                    </a>
68
                    </a>
413414
10
    <? foreach ($ports as $port) : ?>
10
    <? foreach ($ports as $port) : ?>
11
    <li class="<?= $state->port == $port->id ? 'active' : ''; ?>">
11
    <li class="<?= $state->port == $port->id ? 'active' : ''; ?>">
12
        <a href="<?= @route('port='.$port->id ) ?>">
12
        <a href="<?= @route('port='.$port->id ) ?>">
13
            <img src="media://com_harbour/images/flags/<?= $port->flag ?>" />
13
            <img src="../sites/default/images/harbour/flags/<?= $port->flag ?>" />
14
            <?= @escape($port->title) ?>
14
            <?= @escape($port->title) ?>
15
        </a>
15
        </a>
16
    </li>
16
    </li>
413414
21
        <tr class="<?php echo 'row'.$m; ?>" style="line-height: 28px;">
21
        <tr class="<?php echo 'row'.$m; ?>" style="line-height: 28px;">
22
            <td>
22
            <td>
23
                <span class="editlinktip hasTip" title="<?= @text('Edit the port tooltip title')?> <?=
@escape($port->title); ?>::">
23
                <span class="editlinktip hasTip" title="<?= @text('Edit the port tooltip title')?> <?=
@escape($port->title); ?>::">
24
                    <img src="media://com_harbour/images/flags/<?= $port->flag;?>" />
24
                    <img src="../sites/default/images/harbour/flags/<?= $port->flag;?>" />
25
                    <a href="<?= @route('view=port&id='.$port->id); ?>"><?=$port->title?></a>
25
                    <a href="<?= @route('view=port&id='.$port->id); ?>"><?=$port->title?></a>
26
                </span>
26
                </span>
27
            </td>
27
            </td>
413414
107
BOATTYPE IMAGE PREVIEW=Preview
107
BOATTYPE IMAGE PREVIEW=Preview
108
BOATTYPE WIKILINK=Wikilink
108
BOATTYPE WIKILINK=Wikilink
109
#
109
#
110
# BOATTYPE(S) END
110
# BOATTYPE(S) END
 
 
111
 
 
 
112
# LOCATABLE BEHAVIOR
 
 
113
MSG_CURL_INFO=Address data converted into geographic coordinates. Total transaction time in seconds:&nbsp;
 
 
114
MSG_CURL_NOT_AVAILABLE=PHP cURL extension not available. Please contact your support staff and ask them to enable it for your account.
 
 
115
MSG_CURL_ERROR=cURL error:&nbsp;
 
 
116
MSG_DATA_NOT_CONVERTED=&nbsp;Address data not converted into geographic coordinates.
413414
32
    border-width: 1px;
32
    border-width: 1px;
33
    border-style: solid;
33
    border-style: solid;
34
    border-color: #ececec;
34
    border-color: #ececec;
35
    -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
35
    /*-webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
36
    -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
36
    -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
37
    box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
37
    box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;*/
38
    width: 580px;
38
    width: 100%;
39
 
39
 
40
    font-family: Arial;
40
    font-family: Arial;
41
    border-radius: 2px;
41
    border-radius: 2px;
...
 
...
 
46
 
46
 
47
#map
47
#map
48
{
48
{
49
    width: 580px;
49
    width: 100%;
50
    height: 321px;
50
    height: 340px;
51
}
51
}
52
 
52
 
53
/** Table styles, redudant now but I will use this later for the joomla overrides, wip **/
53
/** Table styles, redudant now but I will use this later for the joomla overrides, wip **/
Show contents
413414
11
    <? foreach($ports as $port) : ?>
11
    <? foreach($ports as $port) : ?>
12
    {
12
    {
13
        "title":<?= json_encode($port->title) ?>,
13
        "title":<?= json_encode($port->title) ?>,
14
        "latitude": <?= json_encode($port->latitude) ?>,
14
        "latitude": <?= json_encode($port->title_lat) ?>,
15
        "longitude":<?= json_encode($port->longitude) ?>,
15
        "longitude":<?= json_encode($port->title_lng) ?>,
16
        "description":<?= json_encode(substr($port->description, 0, 450).' ...') ?>,
16
        "description":<?= json_encode(substr($port->description, 0, 450).' ...') ?>,
17
        "slug":<?= json_encode($port->slug) ?>,
17
        "slug":<?= json_encode($port->slug) ?>,
18
        "wikilink":<?= json_encode($port->wikilink) ?>,
18
        "wikilink":<?= json_encode($port->wikilink) ?>,