/** * * @return string */ protected function getCSSClasses() { $classes = array(); $classes[] = 'addthis_toolbox'; $classes[] = 'addthis_default_style'; if ($this->big->getValue()) { $classes[] = 'addthis_32x32_style'; } else { $classes[] = 'addthis_16x16_style'; } $classes[] = 'wfmk_block'; if ($this->right->getValue()) { $classes[] = 'wfmk_right'; } elseif ($this->left->getValue()) { $classes[] = 'wfmk_left'; } if ($this->vertical->getValue()) { $classes[] = 'vertical '; } else { // not vertical, so accepting long and counter options if ($this->long->getValue()) { $classes[] = 'long'; } if ($this->counter->getValue()) { $classes[] = 'counter'; } } return Tools::ArrayToCSSClasses($classes); }
/** * * @return string */ protected function getClass() { if ($this->right->getValue()) { return 'class="wfmk_right" '; } elseif ($this->left->getValue()) { return 'class="wfmk_left" '; } else { return ''; } }
/** * @return string */ public function getCSSClasses() { $classes = array(); $classes[] = 'gravatar'; if ($this->right->getValue()) { $classes[] = 'wfmk_right'; } elseif ($this->left->getValue()) { $classes[] = 'wfmk_left'; } return Tools::ArrayToCSSClasses($classes); }
/** * * @return string */ protected function getCSSClasses() { $classes = array(); $classes[] = 'jamendo'; $classes[] = 'wfmk_block'; if ($this->right->getValue()) { $classes[] = 'wfmk_right'; } elseif ($this->left->getValue()) { $classes[] = 'wfmk_left'; } return Tools::ArrayToCSSClasses($classes); }
/** * * @return string */ public function getCSSClasses() { $classes = array(); $classes[] = 'dailymotion'; $classes[] = 'wfmk_block'; $classes[] = 'wfmk_frame'; if ($this->right->getValue()) { $classes[] = 'wfmk_right'; } elseif ($this->left->getValue()) { $classes[] = 'wfmk_left'; } return Tools::ArrayToCSSClasses($classes); }
/** * * @return string */ protected function getClass() { $classes = array(); $classes[] = 'wfmk_button'; if ($this->right->getValue()) { $classes[] = 'wfmk_right'; } elseif ($this->left->getValue()) { $classes[] = 'wfmk_left'; } $classes[] = 'wfmk_button_' . $this->color->getOutput(); $classes = Tools::ArrayToCSSClasses($classes); return 'class="' . $classes . '"'; }
/** * * @return string */ protected function getFloatClass() { if ($this->right->getValue()) { return 'wfmk_right'; } elseif ($this->left->getValue()) { return 'wfmk_left'; } }
/** @test */ public function it_is_a_correct_object() { $field = new Option('test', 'Test'); $field->render(); $this->assertSame('test', $field->getValue()); $this->assertSame('administr/form::option', $field->getView()); $this->assertInstanceOf(AbstractType::class, $field); }
/** * * @return string */ protected function getType() { // "source" parameter is required ; at this point, source->getParameter() will return parameter "source" or "search' $source = $this->source->getParameter(); if ($source->getName() == "user") { if ($this->faves->getValue()) { return 'faves'; } elseif ($this->list->getValue()) { return 'list'; } elseif ($this->follow->getValue()) { return 'follow'; } else { return 'profile'; } } else { // $source->getName() == "search" return 'search'; } }
/** * @covers Phossa\Console\Option::getValue */ public function testGetValue() { $this->object->setValue('bingo'); $this->assertEquals('bingo', $this->object->getValue()); }