Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.87 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.7.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Shopware\Themes\LivingTheme;
  15.  
  16.  
  17. class Theme extends \Shopware\Components\Theme
  18. {
  19. protected $extend = 'Responsive';
  20. protected $name = 'Living | Customizable Responsive Theme';
  21. protected $description = '';
  22. protected $author = 'TC-Innovations GmbH';
  23. protected $license = '';
  24. protected $injectBeforePlugins = true;
  25. protected $inheritanceConfig = false;
  26. protected $javascript = array(
  27. 'src/js/jquery.stickyMenu.js',
  28. 'src/js/jquery.scrollTopButton.js',
  29. 'src/js/jquery.siteBarWidget.js',
  30. 'src/js/jquery.buttonDisplaySearch.js',
  31. 'src/js/jquery.leftbarFilter.js',
  32. 'src/js/jquery.product-compare-add.js'
  33. );
  34. private $fieldSetDefaults = array(
  35. 'padding' => '10',
  36. 'margin' => '5',
  37. 'layout' => 'column',
  38. 'flex' => 0,
  39. 'defaults' => array(
  40. 'columnWidth' => 1,
  41. 'labelWidth' => 250,
  42. 'margin' => '0 15 2 0'
  43. )
  44. );
  45. private $themeColorDefaults = array( 'brand-primary' => '#404b58' );
  46.  
  47. public function createConfig(\Shopware\Components\Form\Container\TabContainer $container)
  48. {
  49. $video = $this->createFieldSet( 'fieldset_themeinfo_video', '', array( 'attributes' => array_merge( $this->fieldSetDefaults, array(
  50. 'padding' => '0',
  51. 'autoScroll' => false,
  52. 'height' => 120,
  53. 'layout' => 'anchor',
  54. 'defaults' => array( 'anchor' => '100%' )
  55. ) ) ) );
  56. $video->addElement( $this->createTextAreaField( 'themeinfo_video', '', '', array( 'attributes' => array(
  57. 'xtype' => 'container',
  58. 'html' => '<div style="background-color: #0d5a93; width: 100%; height: 100%; position: relative; top: 0; left: 0; right: 0; bottom: 0; text-align: left;"><a href="https://tc-innovations.de/shopware-themes/themeware/living/video-tutorial?swpauth=' . base64_encode( (isset( $_SERVER['SERVER_NAME'] ) ? $_SERVER['SERVER_NAME'] : '') ) . '" target="_blank"><img src="../engine/Shopware/Plugins/Community/Frontend/TcinnLivingTheme/Themes/Frontend/LivingTheme/_private/snippets/backend/anleitung-youtube.jpg" style="width: 981px; height: 120px;"></a></div>',
  59. 'lessCompatible' => false
  60. ) ) ) );
  61. $fieldSet = $this->createFieldSet( 'fieldset_themeinfo', '', array( 'attributes' => array_merge( $this->fieldSetDefaults, array( 'height' => 585 ) ) ) );
  62. $fieldSet->addElement( $this->createTextAreaField( 'theme_support_text', '', '', array( 'attributes' => array(
  63. 'xtype' => 'container',
  64. 'html' => '<style type="text/css"> .tcinn-container{font-size: 15px;line-height: 1.5;}.tcinn-container p{line-height: 1.5;margin-bottom: 10px;}.tcinn-container h1,.tcinn-container h2{line-height: 1.5;font-size: 17px;font-weight: bold;margin: 20px 0 5px 0;}.tcinn-container #tcinn-boxleft{width: 61%;float: left;}.tcinn-container #tcinn-boxright{width: 34%;float: right;}.tcinn-container a.button:hover,img[src="../engine/Shopware/Plugins/Community/Frontend/TcinnLivingTheme/Themes/Frontend/LivingTheme/_private/snippets/backend/anleitung-youtube.jpg"]:hover{filter:alpha(opacity=70); -moz-opacity: 0.70; opacity: 0.70; -webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-ms-transition: all 0.3s ease;-o-transition: all 0.3s ease;transition: all 0.3s ease;}</style><div class="tcinn-container"><div id="tcinn-boxleft"><h1>ThemeWare Living</h1><p>Herzlichen Glückwunsch! Mit ThemeWare Living haben Sie sich für ein extrem anpassbares und verkaufsförderndes Responsive Theme entschieden, welches Ihnen zusätzlich eine große Palette an Funktionen bietet, für die Sie sonst im Plugin-Store viel Geld bezahlen müssten. Diese Plugins und auch alle zukünftigen, sind bei ThemeWare Living bereits kostenfrei enthalten!</p><h2>Geeignet für Einsteiger und Profis</h2><p>Alle Grundeinstellungen, die wir Ihnen bei der Theme-Installation mitliefern, sind durchdacht und entsprechen unserer Empfehlung. Wenn Sie Shopware-Einsteiger sind, sollten Sie sich vor Änderungen an der Konfiguration kurz den entsprechenden Teil des Video-Tutorials ansehen. So kann kaum etwas schiefgehen. Falls doch, rufen Sie uns einfach an!</p><p>Vor allem Profis und andere Agenturen lieben unsere Lösungen! Sie können nahezu jeden Wunsch ohne viel Anpassungsaufwand umsetzen. Wenn doch etwas fehlt, können vorläufig individuelle Quellcodes hinterlegt werden. Feature-Requests werden in kürzester Zeit bearbeitet und umgesetzt.</p><h2>Design-Service und Anpassungen aller Art</h2><p>Sie möchten, dass wir Ihnen das Theme perfekt nach Ihren Wünsch gestalten oder haben sonstige Änderungswünsche? Rufen Sie uns am besten an oder schicken Sie eine E-Mail mit Ihren Wünschen!</p></div><div id="tcinn-boxright"><h2>PSD-Dateien downloaden</h2><p>Alle im Theme enthaltenen Grafiken, die einen Einfluss auf die Gestaltung haben, können Sie in Form von PSD-Dateien kostenfrei herunterladen, unbegrenzt anpassen und dauerhaft nutzen.</p><a class="button" href="https://tc-innovations.de/shopware-themes/themeware/living/themeware-living-psd-files.zip" style="padding: 0 20px; display: inline-block; cursor: pointer; text-decoration: none; font-size: 16px; color: #fff; background: #0d5a93; line-height: 2.6; border: 1px solid #074c80; text-shadow: 1px 1px 0 rgba(0,0,0,0.2); border-radius: 1px; font-weight: bold;" target="_blank">Kostenfreien Download starten</a><h2>Exzellenter Support</h2><p>Falls Sie Unterstützung benötigen, stehen wir Ihnen jederzeit gerne per E-Mail, Support-Ticket und vor allem auch telefonisch zur Verfügung.</p><p>E-Mail: <a style="color: rgb(71, 92, 106);" href="mailto:support@tc-innovations.de?subject=ThemeWare Living - Supportanfrage">support@tc-innovations.de</a><br>Telefon: 02131 - 52 68660<br>Web: <a style="color: rgb(71, 92, 106);" href="https://tc-innovations.de/shopware-agentur?swpauth=' . base64_encode( (isset( $_SERVER['SERVER_NAME'] ) ? $_SERVER['SERVER_NAME'] : '') ) . '" target="_blank">www.tc-innovations.de</a></p></div></div>',
  65. 'style' => 'font-size: 12px; color: #475c6a; padding:0 15px 15px 15px;',
  66. 'lessCompatible' => false
  67. ) ) ) );
  68. $tab_welcome = $this->createTab( 'tab_themeware', 'ThemeWare', array( 'attributes' => array( 'autoScroll' => true ) ) );
  69. $tab_welcome->addElement( $video );
  70. $tab_welcome->addElement( $fieldSet );
  71. $container->addTab( $tab_welcome );
  72. $fieldSetLogo = $this->createFieldSet( 'fieldset_logo_allgemein', 'Allgemein', array( 'attributes' => array_merge( $this->fieldSetDefaults, array(
  73. 'layout' => 'column',
  74. 'height' => 180,
  75. 'flex' => 0,
  76. 'defaults' => array(
  77. 'columnWidth' => 0.5,
  78. 'labelWidth' => 180,
  79. 'margin' => '3 30 3 3'
  80. )
  81. ) ) ) );
  82. $fieldSetLogo->addElement( $this->createSelectField( 'shoplogo_text_or_image', 'Darstellungsart des Logos', 0, array(
  83. array(
  84. 'value' => 0,
  85. 'text' => 'Bild-Logo'
  86. ),
  87. array(
  88. 'value' => 1,
  89. 'text' => 'Text-Logo'
  90. )
  91. ), array( 'attributes' => array( 'helpText' => 'Ausgabe des Shop-Logos als Bild-Logo oder Text-Logo im Webseitenkopf.' ) ) ) );
  92. $fieldSetLogo->addElement( $this->createTextField( 'shoplogo_text', 'Webseitenname (Text-Logo)', 'Theme<strong>Ware</strong>', array( 'attributes' => array(
  93. 'lessCompatible' => false,
  94. 'helpText' => 'Geben Sie hier den Webseitennamen an, der als Logo im Webseitenkopf (Header) angezeigt werden soll.<br><br>Beachten Sie, dass als Darstellungsart des Logos "Text-Logo" aktiviert sein muss.<br><br>Arbeiten Sie hier mit HTML um einige Wörter Fett zu hinterlegen. Beispiel: Theme<strong>Ware</strong>'
  95. ) ) ) );
  96. $fieldSetLogo->addElement( $this->createTextField( 'shoplogo_image_width', 'Breite', '400px', array( 'attributes' => array( 'helpText' => 'Geben Sie hier die Breite des Text- und Bild-Logos in Pixel an. Dieser Wert sollte nicht über "300px" liegen.<br><br>Bei der Darstellungsart Text-Logo, wird das Logo in dem Container links ausgerichtet.' ) ) ) );
  97. $fieldSetLogo->addElement( $this->createNumberField( 'shoplogo_image_margin_top', 'Abstand von oben', '15', array( 'attributes' => array( 'helpText' => 'Bestimmen Sie hier die Position des Logos von oben.<br><br>Sie können auch mit negativen Angaben arbeiten. Beispiel: -20' ) ) ) );
  98. $fieldSetLogo->addElement( $this->createNumberField( 'shoplogo_image_margin_top_minheader', 'Abstand von oben (Checkout)', '9', array( 'attributes' => array( 'helpText' => 'Bestimmen Sie hier die Position des Logos von oben im Checkout. Nur bei Checkoutstep Header anzeigen verfügbar.<br><br>Sie können auch mit negativen Angaben arbeiten. Beispiel: -20' ) ) ) );
  99. $fieldSetLogo->addElement( $this->createTextField( 'shoplogo_image_width_minheader', 'Maximal-Breite (Checkout)', '220px', array( 'attributes' => array( 'helpText' => 'Geben Sie hier die Breite des Text- und Bild-Logos in Pixel an. Dieser Wert sollte nicht über "240px" liegen.<br><br>Bei der Darstellungsart Text-Logo, wird das Logo in dem Container links ausgerichtet.' ) ) ) );
  100. $fieldSetLogo->addElement( $this->createTextField( 'shoplogo_image_height', 'Höhe', 'auto', array( 'attributes' => array( 'helpText' => 'Geben Sie hier eine abweichende Höhe des Logos an. Der Wert "auto" ermittelt die Höhe automatisch.<br><br>Beim TextLogo ist dieder Wert die Line-Height.' ) ) ) );
  101. $fieldSetLogo->addElement( $this->createSelectField( 'shoplogo_image_hover_typ', 'Mouseover-Effekt Bildlogo', 1, array(
  102. array(
  103. 'value' => 1,
  104. 'text' => 'Deckkraft reduzieren'
  105. ),
  106. array(
  107. 'value' => 2,
  108. 'text' => 'Kein Effekt'
  109. )
  110. ) ) );
  111. $fieldSet = $this->createFieldSet( 'fieldset_shoplogo', 'Images', array( 'attributes' => array_merge( $this->fieldSetDefaults, array(
  112. 'layout' => 'column',
  113. 'height' => 290,
  114. 'flex' => 0,
  115. 'defaults' => array(
  116. 'columnWidth' => 0.5,
  117. 'labelWidth' => 120,
  118. 'margin' => '3 30 3 3'
  119. )
  120. ) ) ) );
  121. $fieldSet->addElement( $this->createMediaField( 'desktopLogo', 'Desktop', '/engine/Shopware/Plugins/Community/Frontend/TcinnLivingTheme/Themes/Frontend/LivingTheme/frontend/_public/src/img/logos/logo-moebel.jpg', array( 'attributes' => array( 'lessCompatible' => false ) ) ) );
  122. $fieldSet->addElement( $this->createMediaField( 'tabletLandscapeLogo', 'Tablet Landscape', '/engine/Shopware/Plugins/Community/Frontend/TcinnLivingTheme/Themes/Frontend/LivingTheme/frontend/_public/src/img/logos/logo-moebel.jpg', array( 'attributes' => array( 'lessCompatible' => false ) ) ) );
  123. $fieldSet->addElement( $this->createMediaField( 'tabletLogo', 'Tablet', '/engine/Shopware/Plugins/Community/Frontend/TcinnLivingTheme/Themes/Frontend/LivingTheme/frontend/_public/src/img/logos/logo-moebel.jpg', array( 'attributes' => array( 'lessCompatible' => false ) ) ) );
  124. $fieldSet->addElement( $this->createMediaField( 'mobileLogo', 'Smartphone', '/engine/Shopware/Plugins/Community/Frontend/TcinnLivingTheme/Themes/Frontend/LivingTheme/frontend/_public/src/img/logos/logo-moebel.jpg', array( 'attributes' => array( 'lessCompatible' => false ) ) ) );
  125. $fieldSetLogoFontStyling = $this->createFieldSet( 'fieldset_text_logo_styling', 'Text-Logo Styling', array( 'attributes' => array_merge( $this->fieldSetDefaults, array(
  126. 'layout' => 'column',
  127. 'height' => 270,
  128. 'flex' => 0,
  129. 'defaults' => array(
  130. 'columnWidth' => 0.5,
  131. 'labelWidth' => 180,
  132. 'margin' => '10 30 10 3'
  133. )
  134. ) ) ) );
  135. $fieldSetLogoFontStyling->addElement( $this->createColorPickerField( 'shoplogo_font_color', 'Textlogo-Farbe', '@brand-primary' ) );
  136. $fieldSetLogoFontStyling->addElement( $this->createColorPickerField( 'shoplogo_font_color_hover', 'Textlogo-Farbe Hover', 'darken(@brand-primary, 10%)' ) );
  137. $fieldSetLogoFontStyling->addElement( $this->createPixelField( 'shoplogo_font_size_desktop', 'Schriftgröße Desktop', '38px', array( 'attributes' => array( 'supportText' => 'Viewport (> 1260px)' ) ) ) );
  138. $fieldSetLogoFontStyling->addElement( $this->createPixelField( 'shoplogo_font_size_tablet_landscape', 'Schriftgröße Tablet Querformat', '24px', array( 'attributes' => array( 'supportText' => 'Viewport (1259px > 1024px)' ) ) ) );
  139. $fieldSetLogoFontStyling->addElement( $this->createPixelField( 'shoplogo_font_size_tablet_portrait', 'Schriftgröße Tablet Hochformat', '18px', array( 'attributes' => array( 'supportText' => 'Viewport (1023px > 768px)' ) ) ) );
  140. $fieldSetLogoFontStyling->addElement( $this->createPixelField( 'shoplogo_font_size_phone', 'Schriftgröße Smartphone', '16px', array( 'attributes' => array( 'supportText' => 'Viewport (> 767px)' ) ) ) );
  141. $fieldSetLogoFontStyling->addElement( $this->createSelectField( 'shoplogo_text_font_weight', 'Schriftdicke', '400', array(
  142. array(
  143. 'value' => '400',
  144. 'text' => 'Normal'
  145. ),
  146. array(
  147. 'value' => '600',
  148. 'text' => 'Fett'
  149. ...............................................................................................
  150. ............................................
  151. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement