7 #include <Wt/WApplication>
11 #include <gdcore/gdImage.h>
22 std::string curImgUrl(wApp->theme()->resourcesUrl() +
"wittyshare/Images/logo.png");
23 setImageRef(curImgUrl);
24 gdImageProperties imgProp = gdImage_size(wApp->docRoot() + curImgUrl);
25 setWidth(WLength(imgProp.width, WLength::Pixel));
26 setHeight(WLength(imgProp.height, WLength::Pixel));
35 if (
WsLayoutProperties::instance()->
get(
"global",
"use_content_directory_view",
"false") ==
"false" )
return wApp->setInternalPath(
"/",
true);
36 wApp->setInternalPath(
"/Logo",
true);
static WsLayoutProperties * instance()
Get the singleton instance.
WsLogo(Wt::WContainerWidget *parent=0)