/** * Draws the tabbed panel to change panel * * @return string The drawed panel * */ protected function drawTabsPanel() { $tabs = w3sCommonFunctions::loadScript('cpTabs.yml'); $result = ''; foreach ($tabs as $key => $tab) { $result .= sprintf('<li>%s</li>', link_to_function(w3sCommonFunctions::toI18N($tab["text"]), 'W3sControlPanelTabs.createTab(' . $key . ', this.id)', 'id=' . $tab["id"])); } return sprintf('<ul>%s</ul>', $result); }
/** * Draws the panel commands. * * @return string The drawed commands * */ protected function drawCommands() { return sprintf($this->commandsSkeleton, link_to_function(w3sCommonFunctions::toI18N('Switch template'), 'W3sSlotMapper.switchDiv()'), link_to_function(w3sCommonFunctions::toI18N('Map slots'), 'W3sSlotMapper.map(' . $this->invertedMapExists . ')'), link_to_function(w3sCommonFunctions::toI18N('Save map'), 'W3sSlotMapper.save();'), link_to_function(w3sCommonFunctions::toI18N('Return to editor'), 'W3sSlotMapper.close();')); }
/** * Returns the default text for the image content * * @return string * */ public function getDefaultText() { return sprintf('<img src="%s/common/sample_image.png" width="80" height="80" title="%s" alt="%s" />', sfConfig::get('app_w3s_web_skin_images_dir'), w3sCommonFunctions::toI18N('Type here a title that describes the image'), w3sCommonFunctions::toI18N('Type here a description of the image')); }